CMS 3D CMS Logo

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

Constructor & Destructor Documentation

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

Definition at line 545 of file SiPixelDigitizerAlgorithm.cc.

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

545  {
546  // pixel aging
547  // Don't use Hard coded values, read aging in from python or don't use any
548  if(AddAging) {
549  int NumberOfTotLayers = NumberOfBarrelLayers + NumberOfEndcapDisks;
551 
552  int i=0;
553  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix1");
554  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix2");
555  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix3");
556  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix4");
557 
558  // to be removed when Gaelle will have the phase2 digitizer
559  if (NumberOfBarrelLayers>=5){
560  if (NumberOfTotLayers>20){throw cms::Exception("Configuration") <<"SiPixelDigitizer was given more layers than it can handle";}
561  // For Phase2 tracker layers just set the outermost BPix aging 0.
562  for (int j=5 ; j<=NumberOfBarrelLayers ; j++){
563  thePixelPseudoRadDamage[j-1]=0.;
564  }
565  }
566  //
567  i=FPixIndex;
568  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_FPix1");
569  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_FPix2");
570  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_FPix3");
571 
572  //To be removed when Phase2 digitizer will be available
573  if (NumberOfEndcapDisks>=4){
574  if (NumberOfTotLayers>20){throw cms::Exception("Configuration") <<"SiPixelDigitizer was given more layers than it can handle";}
575  // For Phase2 tracker layers just set the extra FPix disk aging to 0. BE CAREFUL THESE VALUES ARE HARDCODED ALSO ELSEWHERE IN THIS FILE
576  for (int j=4+FPixIndex ; j<=NumberOfEndcapDisks+NumberOfBarrelLayers ; j++){
577  thePixelPseudoRadDamage[j-1]=0.;
578  }
579  }
580  }
581  // the first "NumberOfBarrelLayers" settings [0],[1], ... , [NumberOfBarrelLayers-1] are for the barrel pixels
582  // the next "NumberOfEndcapDisks" settings [NumberOfBarrelLayers],[NumberOfBarrelLayers+1], ... [NumberOfEndcapDisks+NumberOfBarrelLayers-1]
583 }
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
int j
Definition: DBlmapReader.cc:9

Member Data Documentation

unsigned int SiPixelDigitizerAlgorithm::PixelAging::FPixIndex

Definition at line 283 of file SiPixelDigitizerAlgorithm.h.

Referenced by SiPixelDigitizerAlgorithm::pixel_aging().

float SiPixelDigitizerAlgorithm::PixelAging::thePixelPseudoRadDamage[20]

Definition at line 282 of file SiPixelDigitizerAlgorithm.h.

Referenced by SiPixelDigitizerAlgorithm::pixel_aging().