CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripTKNumbers.cc
Go to the documentation of this file.
1 //#include <map>
2 
10 
12 
14  _nmodules[tk.rawId()] = (3540-816)+816+5208+6400;
15  _nfibres[tk.rawId()] = (9192-2208)+2208+12906+15104;
16  _nmodules[tk.subdetId()] = _nmodules[tk.rawId()];
17  _nfibres[tk.subdetId()] = _nfibres[tk.rawId()];
18 
20  _nmodules[tib.rawId()] = 3540-816;
21  _nfibres[tib.rawId()] = 9192-2208;
22  _nmodules[tib.subdetId()] = _nmodules[tib.rawId()];
23  _nfibres[tib.subdetId()] = _nfibres[tib.rawId()];
24 
26  _nmodules[tid.rawId()] = 816;
27  _nfibres[tid.rawId()] = 2208;
28  _nmodules[tid.subdetId()] = _nmodules[tid.rawId()];
29  _nfibres[tid.subdetId()] = _nfibres[tid.rawId()];
30 
32  _nmodules[tob.rawId()] = 5208;
33  _nfibres[tob.rawId()] = 12906;
34  _nmodules[tob.subdetId()] = _nmodules[tob.rawId()];
35  _nfibres[tob.subdetId()] = _nfibres[tob.rawId()];
36 
38  _nmodules[tec.rawId()] = 6400;
39  _nfibres[tec.rawId()] = 15104;
40  _nmodules[tec.subdetId()] = _nmodules[tec.rawId()];
41  _nfibres[tec.subdetId()] = _nfibres[tec.rawId()];
42 
43  TECDetId tecp(1,0,0,0,0,0,0);
44  _nmodules[tecp.rawId()] = 3200;
45  _nfibres[tecp.rawId()] = 7552;
46 
47  TECDetId tecm(2,0,0,0,0,0,0);
48  _nmodules[tecm.rawId()] = 3200;
49  _nfibres[tecm.rawId()] = 7552;
50 
51 }
52 
54 
55  int subd = detid.subdetId();
56  if(_nmodules.find(subd)!=_nmodules.end()) return _nmodules.find(subd)->second;
57 
58  return 0;
59 }
60 
61 int SiStripTKNumbers::nmodules(const int id) const {
62 
63  if(_nmodules.find(id)!=_nmodules.end()) return _nmodules.find(id)->second;
64 
65  return 0;
66 }
67 
69 
70  int subd = detid.subdetId();
71  if(_nfibres.find(subd)!=_nfibres.end()) return _nfibres.find(subd)->second;
72 
73  return 0;
74 }
75 
76 int SiStripTKNumbers::nfibres(const int id) const {
77 
78  if(_nfibres.find(id)!=_nfibres.end()) return _nfibres.find(id)->second;
79 
80  return 0;
81 }
82 
84 
85  return nfibres(detid)*_apvsperfibre;
86 }
87 
88 int SiStripTKNumbers::napvs(const int id) const {
89 
90  return nfibres(id)*_apvsperfibre;
91 }
92 
94 
95  return nfibres(detid)*_apvsperfibre*_stripsperapv;
96 }
97 
98 int SiStripTKNumbers::nstrips(const int id) const {
99 
101 }
102 
static const int _apvsperfibre
int napvs(const SiStripDetId &detid) const
uint32_t rawId() const
get the raw id
Definition: DetId.h:45
int nstrips(const SiStripDetId &detid) const
int nfibres(const SiStripDetId &detid) const
static const int _stripsperapv
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
std::map< int, int > _nmodules
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
int nmodules(const SiStripDetId &detid) const
std::map< int, int > _nfibres