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 288 of file SiPixelDigitizerAlgorithm.h.

Constructor & Destructor Documentation

◆ PixelAging()

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

Definition at line 713 of file SiPixelDigitizerAlgorithm.cc.

716  {
717  // pixel aging
718  // Don't use Hard coded values, read aging in from python or don't use any
719  if (AddAging) {
720  int NumberOfTotLayers = NumberOfBarrelLayers + NumberOfEndcapDisks;
722 
723  int i = 0;
724  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix1");
725  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix2");
726  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix3");
727  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix4");
728 
729  // to be removed when Gaelle will have the phase2 digitizer
730  if (NumberOfBarrelLayers >= 5) {
731  if (NumberOfTotLayers > 20) {
732  throw cms::Exception("Configuration") << "SiPixelDigitizer was given more layers than it can handle";
733  }
734  // For Phase2 tracker layers just set the outermost BPix aging 0.
735  for (int j = 5; j <= NumberOfBarrelLayers; j++) {
736  thePixelPseudoRadDamage[j - 1] = 0.;
737  }
738  }
739  //
740  i = FPixIndex;
741  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_FPix1");
742  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_FPix2");
743  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_FPix3");
744 
745  //To be removed when Phase2 digitizer will be available
746  if (NumberOfEndcapDisks >= 4) {
747  if (NumberOfTotLayers > 20) {
748  throw cms::Exception("Configuration") << "SiPixelDigitizer was given more layers than it can handle";
749  }
750  // For Phase2 tracker layers just set the extra FPix disk aging to 0. BE CAREFUL THESE VALUES ARE HARDCODED ALSO ELSEWHERE IN THIS FILE
751  for (int j = 4 + FPixIndex; j <= NumberOfEndcapDisks + NumberOfBarrelLayers; j++) {
752  thePixelPseudoRadDamage[j - 1] = 0.;
753  }
754  }
755  }
756  // the first "NumberOfBarrelLayers" settings [0],[1], ... , [NumberOfBarrelLayers-1] are for the barrel pixels
757  // the next "NumberOfEndcapDisks" settings [NumberOfBarrelLayers],[NumberOfBarrelLayers+1], ... [NumberOfEndcapDisks+NumberOfBarrelLayers-1]
758 }

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 291 of file SiPixelDigitizerAlgorithm.h.

◆ thePixelPseudoRadDamage

float SiPixelDigitizerAlgorithm::PixelAging::thePixelPseudoRadDamage[20]

Definition at line 290 of file SiPixelDigitizerAlgorithm.h.

mps_fire.i
i
Definition: mps_fire.py:428
SiPixelDigitizerAlgorithm::PixelAging::thePixelPseudoRadDamage
float thePixelPseudoRadDamage[20]
Definition: SiPixelDigitizerAlgorithm.h:290
SiPixelDigitizerAlgorithm::NumberOfBarrelLayers
const int NumberOfBarrelLayers
Definition: SiPixelDigitizerAlgorithm.h:332
SiPixelDigitizerAlgorithm::NumberOfEndcapDisks
const int NumberOfEndcapDisks
Definition: SiPixelDigitizerAlgorithm.h:333
Exception
Definition: hltDiff.cc:245
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
SiPixelDigitizerAlgorithm::PixelAging::FPixIndex
unsigned int FPixIndex
Definition: SiPixelDigitizerAlgorithm.h:291