CMS 3D CMS Logo

Public Member Functions | Private Attributes | Static Private Attributes

SiStripTKNumbers Class Reference

#include <SiStripTKNumbers.h>

List of all members.

Public Member Functions

int napvs (const SiStripDetId &detid) const
int napvs (const int id) const
int nfibres (const int id) const
int nfibres (const SiStripDetId &detid) 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.

                                   {

  SiStripDetId tk(DetId::Tracker,0);
  _nmodules[tk.rawId()] = (3540-816)+816+5208+6400;
  _nfibres[tk.rawId()] = (9192-2208)+2208+12906+15104;
  _nmodules[tk.subdetId()] = _nmodules[tk.rawId()];
  _nfibres[tk.subdetId()] = _nfibres[tk.rawId()];

  SiStripDetId tib(DetId::Tracker,SiStripDetId::TIB);
  _nmodules[tib.rawId()] = 3540-816;
  _nfibres[tib.rawId()] = 9192-2208;
  _nmodules[tib.subdetId()] = _nmodules[tib.rawId()];
  _nfibres[tib.subdetId()] = _nfibres[tib.rawId()];

  SiStripDetId tid(DetId::Tracker,SiStripDetId::TID);
  _nmodules[tid.rawId()] = 816;
  _nfibres[tid.rawId()] = 2208;
  _nmodules[tid.subdetId()] = _nmodules[tid.rawId()];
  _nfibres[tid.subdetId()] = _nfibres[tid.rawId()];

  SiStripDetId tob(DetId::Tracker,SiStripDetId::TOB);
  _nmodules[tob.rawId()] = 5208;
  _nfibres[tob.rawId()] = 12906;
  _nmodules[tob.subdetId()] = _nmodules[tob.rawId()];
  _nfibres[tob.subdetId()] = _nfibres[tob.rawId()];

  SiStripDetId tec(DetId::Tracker,SiStripDetId::TEC);
  _nmodules[tec.rawId()] = 6400;
  _nfibres[tec.rawId()] = 15104;
  _nmodules[tec.subdetId()] = _nmodules[tec.rawId()];
  _nfibres[tec.subdetId()] = _nfibres[tec.rawId()];

  TECDetId tecp(1,0,0,0,0,0,0);
  _nmodules[tecp.rawId()] = 3200;
  _nfibres[tecp.rawId()] = 7552;

  TECDetId tecm(2,0,0,0,0,0,0);
  _nmodules[tecm.rawId()] = 3200;
  _nfibres[tecm.rawId()] = 7552;

}

Member Function Documentation

int SiStripTKNumbers::napvs ( const SiStripDetId detid) const

Definition at line 80 of file SiStripTKNumbers.cc.

References _apvsperfibre, and nfibres().

                                                           {
  
  return nfibres(detid)*_apvsperfibre;
}
int SiStripTKNumbers::napvs ( const int  id) const

Definition at line 85 of file SiStripTKNumbers.cc.

References _apvsperfibre, and nfibres().

                                              {

  return nfibres(id)*_apvsperfibre;
}
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().

                                                             {

  int subd = detid.subdetId();
  if(_nfibres.find(subd)!=_nfibres.end()) return _nfibres.find(subd)->second;

  return 0;
}
int SiStripTKNumbers::nfibres ( const int  id) const

Definition at line 73 of file SiStripTKNumbers.cc.

References _nfibres.

                                                {

  if(_nfibres.find(id)!=_nfibres.end()) return _nfibres.find(id)->second;

  return 0;
}
int SiStripTKNumbers::nmodules ( const int  id) const

Definition at line 58 of file SiStripTKNumbers.cc.

References _nmodules.

                                                 {

  if(_nmodules.find(id)!=_nmodules.end()) return _nmodules.find(id)->second;

  return 0;
}
int SiStripTKNumbers::nmodules ( const SiStripDetId detid) const

Definition at line 50 of file SiStripTKNumbers.cc.

References _nmodules, and DetId::subdetId().

                                                              {

  int subd = detid.subdetId();
  if(_nmodules.find(subd)!=_nmodules.end()) return _nmodules.find(subd)->second;

  return 0;
}
int SiStripTKNumbers::nstrips ( const int  id) const

Definition at line 95 of file SiStripTKNumbers.cc.

References _apvsperfibre, _stripsperapv, and nfibres().

int SiStripTKNumbers::nstrips ( const SiStripDetId detid) const

Member Data Documentation

const int SiStripTKNumbers::_apvsperfibre = 2 [static, private]

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 [static, private]

Definition at line 33 of file SiStripTKNumbers.h.

Referenced by nstrips().