CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 11 of file SiStripTKNumbers.cc.

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

11  {
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 }
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 83 of file SiStripTKNumbers.cc.

References _apvsperfibre, and nfibres().

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

Definition at line 88 of file SiStripTKNumbers.cc.

References _apvsperfibre, and nfibres().

88  {
89 
90  return nfibres(id)*_apvsperfibre;
91 }
static const int _apvsperfibre
int nfibres(const SiStripDetId &detid) const
int SiStripTKNumbers::nfibres ( const SiStripDetId detid) const

Definition at line 68 of file SiStripTKNumbers.cc.

References _nfibres, and DetId::subdetId().

Referenced by napvs(), and nstrips().

68  {
69 
70  int subd = detid.subdetId();
71  if(_nfibres.find(subd)!=_nfibres.end()) return _nfibres.find(subd)->second;
72 
73  return 0;
74 }
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 > _nfibres
int SiStripTKNumbers::nfibres ( const int  id) const

Definition at line 76 of file SiStripTKNumbers.cc.

References _nfibres.

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

Definition at line 53 of file SiStripTKNumbers.cc.

References _nmodules, and DetId::subdetId().

53  {
54 
55  int subd = detid.subdetId();
56  if(_nmodules.find(subd)!=_nmodules.end()) return _nmodules.find(subd)->second;
57 
58  return 0;
59 }
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
int SiStripTKNumbers::nmodules ( const int  id) const

Definition at line 61 of file SiStripTKNumbers.cc.

References _nmodules.

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

Definition at line 98 of file SiStripTKNumbers.cc.

References _apvsperfibre, _stripsperapv, and nfibres().

98  {
99 
101 }
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().