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 DetId &detid) const
 
int napvs (const int id) const
 
int nfibres (const DetId &detid) const
 
int nfibres (const int id) const
 
int nmodules (const DetId &detid) const
 
int nmodules (const int id) const
 
int nstrips (const DetId &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 7 of file SiStripTKNumbers.cc.

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

7  {
8 
9  DetId tk(DetId::Tracker,0);
10  _nmodules[tk.rawId()] = (3540-816)+816+5208+6400;
11  _nfibres[tk.rawId()] = (9192-2208)+2208+12906+15104;
12  _nmodules[tk.subdetId()] = _nmodules[tk.rawId()];
13  _nfibres[tk.subdetId()] = _nfibres[tk.rawId()];
14 
16  _nmodules[tib.rawId()] = 3540-816;
17  _nfibres[tib.rawId()] = 9192-2208;
18  _nmodules[tib.subdetId()] = _nmodules[tib.rawId()];
19  _nfibres[tib.subdetId()] = _nfibres[tib.rawId()];
20 
22  _nmodules[tid.rawId()] = 816;
23  _nfibres[tid.rawId()] = 2208;
24  _nmodules[tid.subdetId()] = _nmodules[tid.rawId()];
25  _nfibres[tid.subdetId()] = _nfibres[tid.rawId()];
26 
28  _nmodules[tob.rawId()] = 5208;
29  _nfibres[tob.rawId()] = 12906;
30  _nmodules[tob.subdetId()] = _nmodules[tob.rawId()];
31  _nfibres[tob.subdetId()] = _nfibres[tob.rawId()];
32 
34  _nmodules[tec.rawId()] = 6400;
35  _nfibres[tec.rawId()] = 15104;
36  _nmodules[tec.subdetId()] = _nmodules[tec.rawId()];
37  _nfibres[tec.subdetId()] = _nfibres[tec.rawId()];
38 
39  DetId tecp(DetId(DetId::Tracker, StripSubdetector::TEC).rawId() | ( (1& 0x3) << 18));
40  _nmodules[tecp.rawId()] = 3200;
41  _nfibres[tecp.rawId()] = 7552;
42 
43  DetId tecm(DetId(DetId::Tracker, StripSubdetector::TEC).rawId() | ( (2& 0x3) << 18));
44  _nmodules[tecm.rawId()] = 3200;
45  _nfibres[tecm.rawId()] = 7552;
46 
47 }
std::map< int, int > _nmodules
Definition: DetId.h:18
std::map< int, int > _nfibres

Member Function Documentation

int SiStripTKNumbers::napvs ( const DetId detid) const

Definition at line 79 of file SiStripTKNumbers.cc.

References _apvsperfibre, and nfibres().

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

Definition at line 84 of file SiStripTKNumbers.cc.

References _apvsperfibre, and nfibres().

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

Definition at line 64 of file SiStripTKNumbers.cc.

References _nfibres, and DetId::subdetId().

Referenced by napvs(), and nstrips().

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

Definition at line 72 of file SiStripTKNumbers.cc.

References _nfibres.

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

Definition at line 49 of file SiStripTKNumbers.cc.

References _nmodules, and DetId::subdetId().

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

Definition at line 57 of file SiStripTKNumbers.cc.

References _nmodules.

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

Definition at line 94 of file SiStripTKNumbers.cc.

References _apvsperfibre, _stripsperapv, and nfibres().

94  {
95 
97 }
static const int _apvsperfibre
static const int _stripsperapv
int nfibres(const DetId &detid) const

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().