CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
SiPixelDigitizerAlgorithm::PixelAging Struct Reference

Public Member Functions

 PixelAging (const edm::ParameterSet &conf, bool AddPixelAging, int NumberOfBarrelLayers, int NumberOfEndcapDisks)
 

Public Attributes

unsigned int FPixIndex
 
float thePixelPseudoRadDamage [20]
 

Detailed Description

Internal use only.

Definition at line 286 of file SiPixelDigitizerAlgorithm.h.

Constructor & Destructor Documentation

◆ PixelAging()

SiPixelDigitizerAlgorithm::PixelAging::PixelAging ( const edm::ParameterSet conf,
bool  AddPixelAging,
int  NumberOfBarrelLayers,
int  NumberOfEndcapDisks 
)

Definition at line 732 of file SiPixelDigitizerAlgorithm.cc.

735  {
736  // pixel aging
737  // Don't use Hard coded values, read aging in from python or don't use any
738  if (AddAging) {
739  int NumberOfTotLayers = NumberOfBarrelLayers + NumberOfEndcapDisks;
741 
742  int i = 0;
743  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix1");
744  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix2");
745  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix3");
746  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix4");
747 
748  // to be removed when Gaelle will have the phase2 digitizer
749  if (NumberOfBarrelLayers >= 5) {
750  if (NumberOfTotLayers > 20) {
751  throw cms::Exception("Configuration") << "SiPixelDigitizer was given more layers than it can handle";
752  }
753  // For Phase2 tracker layers just set the outermost BPix aging 0.
754  for (int j = 5; j <= NumberOfBarrelLayers; j++) {
755  thePixelPseudoRadDamage[j - 1] = 0.;
756  }
757  }
758  //
759  i = FPixIndex;
760  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_FPix1");
761  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_FPix2");
762  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_FPix3");
763 
764  //To be removed when Phase2 digitizer will be available
765  if (NumberOfEndcapDisks >= 4) {
766  if (NumberOfTotLayers > 20) {
767  throw cms::Exception("Configuration") << "SiPixelDigitizer was given more layers than it can handle";
768  }
769  // For Phase2 tracker layers just set the extra FPix disk aging to 0. BE CAREFUL THESE VALUES ARE HARDCODED ALSO ELSEWHERE IN THIS FILE
770  for (int j = 4 + FPixIndex; j <= NumberOfEndcapDisks + NumberOfBarrelLayers; j++) {
771  thePixelPseudoRadDamage[j - 1] = 0.;
772  }
773  }
774  }
775  // the first "NumberOfBarrelLayers" settings [0],[1], ... , [NumberOfBarrelLayers-1] are for the barrel pixels
776  // the next "NumberOfEndcapDisks" settings [NumberOfBarrelLayers],[NumberOfBarrelLayers+1], ... [NumberOfEndcapDisks+NumberOfBarrelLayers-1]
777 }

References Exception, edm::ParameterSet::getParameter(), mps_fire::i, dqmiolumiharvest::j, SiPixelDigitizerAlgorithm::NumberOfBarrelLayers, and SiPixelDigitizerAlgorithm::NumberOfEndcapDisks.

Member Data Documentation

◆ FPixIndex

unsigned int SiPixelDigitizerAlgorithm::PixelAging::FPixIndex

Definition at line 289 of file SiPixelDigitizerAlgorithm.h.

◆ thePixelPseudoRadDamage

float SiPixelDigitizerAlgorithm::PixelAging::thePixelPseudoRadDamage[20]

Definition at line 288 of file SiPixelDigitizerAlgorithm.h.

mps_fire.i
i
Definition: mps_fire.py:355
SiPixelDigitizerAlgorithm::PixelAging::thePixelPseudoRadDamage
float thePixelPseudoRadDamage[20]
Definition: SiPixelDigitizerAlgorithm.h:288
SiPixelDigitizerAlgorithm::NumberOfBarrelLayers
const int NumberOfBarrelLayers
Definition: SiPixelDigitizerAlgorithm.h:340
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
SiPixelDigitizerAlgorithm::NumberOfEndcapDisks
const int NumberOfEndcapDisks
Definition: SiPixelDigitizerAlgorithm.h:341
Exception
Definition: hltDiff.cc:246
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
SiPixelDigitizerAlgorithm::PixelAging::FPixIndex
unsigned int FPixIndex
Definition: SiPixelDigitizerAlgorithm.h:289