CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Static Private Attributes
SiStripTKNumbers Class Reference

#include <SiStripTKNumbers.h>

Public Member Functions

int napvs (const SiStripDetId &detid) const
 
int napvs (const int id) const
 
int nfibres (const SiStripDetId &detid) const
 
int nfibres (const int id) const
 
int nmodules (const SiStripDetId &detid) const
 
int nmodules (const int id) const
 
int nstrips (const SiStripDetId &detid) const
 
int nstrips (const int id) const
 
 SiStripTKNumbers ()
 

Private Attributes

std::map< int, int > _nfibres
 
std::map< int, int > _nmodules
 

Static Private Attributes

static const int _apvsperfibre = 2
 
static const int _stripsperapv = 128
 

Detailed Description

Definition at line 8 of file SiStripTKNumbers.h.

Constructor & Destructor Documentation

SiStripTKNumbers::SiStripTKNumbers ( )

Definition at line 8 of file SiStripTKNumbers.cc.

References _nfibres, _nmodules, DetId::rawId(), DetId::subdetId(), SiStripDetId::TEC, SiStripDetId::TIB, SiStripDetId::TID, SiStripDetId::TOB, and DetId::Tracker.

8  {
9 
11  _nmodules[tk.rawId()] = (3540-816)+816+5208+6400;
12  _nfibres[tk.rawId()] = (9192-2208)+2208+12906+15104;
13  _nmodules[tk.subdetId()] = _nmodules[tk.rawId()];
14  _nfibres[tk.subdetId()] = _nfibres[tk.rawId()];
15 
17  _nmodules[tib.rawId()] = 3540-816;
18  _nfibres[tib.rawId()] = 9192-2208;
19  _nmodules[tib.subdetId()] = _nmodules[tib.rawId()];
20  _nfibres[tib.subdetId()] = _nfibres[tib.rawId()];
21 
23  _nmodules[tid.rawId()] = 816;
24  _nfibres[tid.rawId()] = 2208;
25  _nmodules[tid.subdetId()] = _nmodules[tid.rawId()];
26  _nfibres[tid.subdetId()] = _nfibres[tid.rawId()];
27 
29  _nmodules[tob.rawId()] = 5208;
30  _nfibres[tob.rawId()] = 12906;
31  _nmodules[tob.subdetId()] = _nmodules[tob.rawId()];
32  _nfibres[tob.subdetId()] = _nfibres[tob.rawId()];
33 
35  _nmodules[tec.rawId()] = 6400;
36  _nfibres[tec.rawId()] = 15104;
37  _nmodules[tec.subdetId()] = _nmodules[tec.rawId()];
38  _nfibres[tec.subdetId()] = _nfibres[tec.rawId()];
39 
40  TECDetId tecp(1,0,0,0,0,0,0);
41  _nmodules[tecp.rawId()] = 3200;
42  _nfibres[tecp.rawId()] = 7552;
43 
44  TECDetId tecm(2,0,0,0,0,0,0);
45  _nmodules[tecm.rawId()] = 3200;
46  _nfibres[tecm.rawId()] = 7552;
47 
48 }
std::map< int, int > _nmodules
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
std::map< int, int > _nfibres

Member Function Documentation

int SiStripTKNumbers::napvs ( const SiStripDetId detid) const

Definition at line 80 of file SiStripTKNumbers.cc.

References _apvsperfibre, and nfibres().

80  {
81 
82  return nfibres(detid)*_apvsperfibre;
83 }
static const int _apvsperfibre
int nfibres(const SiStripDetId &detid) const
int SiStripTKNumbers::napvs ( const int  id) const

Definition at line 85 of file SiStripTKNumbers.cc.

References _apvsperfibre, and nfibres().

85  {
86 
87  return nfibres(id)*_apvsperfibre;
88 }
static const int _apvsperfibre
int nfibres(const SiStripDetId &detid) const
int SiStripTKNumbers::nfibres ( const SiStripDetId detid) const

Definition at line 65 of file SiStripTKNumbers.cc.

References _nfibres, and DetId::subdetId().

Referenced by napvs(), and nstrips().

65  {
66 
67  int subd = detid.subdetId();
68  if(_nfibres.find(subd)!=_nfibres.end()) return _nfibres.find(subd)->second;
69 
70  return 0;
71 }
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
std::map< int, int > _nfibres
int SiStripTKNumbers::nfibres ( const int  id) const

Definition at line 73 of file SiStripTKNumbers.cc.

References _nfibres.

73  {
74 
75  if(_nfibres.find(id)!=_nfibres.end()) return _nfibres.find(id)->second;
76 
77  return 0;
78 }
std::map< int, int > _nfibres
int SiStripTKNumbers::nmodules ( const SiStripDetId detid) const

Definition at line 50 of file SiStripTKNumbers.cc.

References _nmodules, and DetId::subdetId().

50  {
51 
52  int subd = detid.subdetId();
53  if(_nmodules.find(subd)!=_nmodules.end()) return _nmodules.find(subd)->second;
54 
55  return 0;
56 }
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
std::map< int, int > _nmodules
int SiStripTKNumbers::nmodules ( const int  id) const

Definition at line 58 of file SiStripTKNumbers.cc.

References _nmodules.

58  {
59 
60  if(_nmodules.find(id)!=_nmodules.end()) return _nmodules.find(id)->second;
61 
62  return 0;
63 }
std::map< int, int > _nmodules
int SiStripTKNumbers::nstrips ( const SiStripDetId detid) const
int SiStripTKNumbers::nstrips ( const int  id) const

Definition at line 95 of file SiStripTKNumbers.cc.

References _apvsperfibre, _stripsperapv, and nfibres().

95  {
96 
98 }
static const int _apvsperfibre
int nfibres(const SiStripDetId &detid) const
static const int _stripsperapv

Member Data Documentation

const int SiStripTKNumbers::_apvsperfibre = 2
staticprivate

Definition at line 32 of file SiStripTKNumbers.h.

Referenced by napvs(), and nstrips().

std::map<int, int> SiStripTKNumbers::_nfibres
private

Definition at line 29 of file SiStripTKNumbers.h.

Referenced by nfibres(), and SiStripTKNumbers().

std::map<int, int> SiStripTKNumbers::_nmodules
private

Definition at line 28 of file SiStripTKNumbers.h.

Referenced by nmodules(), and SiStripTKNumbers().

const int SiStripTKNumbers::_stripsperapv = 128
staticprivate

Definition at line 33 of file SiStripTKNumbers.h.

Referenced by nstrips().