BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/MdcGeom/MdcGeom/MdcCellAddr.h
Go to the documentation of this file.
1#ifndef MDCCELLADDR_H
2#define MDCCELLADDR_H
3
4//--------------------------------------------------------------------------
5//
6// Environment:
7// This software was developed for the BaBar collaboration. If you
8// use all or part of it, please give an appropriate acknowledgement.
9//
10// Copyright Information:
11// Copyright (C) 1999 <INFN>
12//
13// History:
14// Migration for BESIII MDC
15//
16//------------------------------------------------------------------------
17
18// ---------------------
19// -- Class Interface --
20// ---------------------
21
22
23/**
24 * C++ source file code MdcCellAddr.
25 * This class is only a container for three static functions to map a Mdc
26 * cell address to its layer/wire numbers. Needed to break some circular
27 * dependency within the Mdc code
28 *
29 * This software was developed for the BaBar collaboration. If you
30 * use all or part of it, please give an appropriate acknowledgement.
31 *
32 * Copyright (C) 1999 [INFN & Padova University]
33//
34// History:
35// Migration for BESIII MDC
36 *
37 * @see MdcCellAddrMdcCellAddr
38 *
39 * @version $Id: MdcCellAddr.h,v 1.2 2009/12/17 00:38:40 zhangy Exp $
40 *
41 * @author (R. Stroili) (originator);
42 *
43 */
44
46
47//--------------------
48// Instance Members --
49//--------------------
50
51public:
52
53 // Constructors
54 MdcCellAddr( void );
55
56 // Destructor
57 virtual ~MdcCellAddr( ) {;}
58
59 // Operators
60
61//------------------
62// Static Members --
63//------------------
64
65public:
66
67 // Selectors (const)
68 static int wireIs(const int &cell) { return cell%1000; }
69 static int layerIs(const int &cell) { return cell/1000; }
70 static int cellIs(const int &wire, const int &layer) { return
71 layer*1000+wire; }
72
73};
74
75#endif // MDCCELLADDR_H
static int cellIs(const int &wire, const int &layer)
MdcCellAddr(void)
Definition: MdcCellAddr.cxx:35