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

Constructor & Destructor Documentation

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

Definition at line 632 of file SiPixelDigitizerAlgorithm.cc.

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

632  {
633  // pixel aging
634  // Don't use Hard coded values, read aging in from python or don't use any
635  if(AddAging) {
636  int NumberOfTotLayers = NumberOfBarrelLayers + NumberOfEndcapDisks;
638 
639  int i=0;
640  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix1");
641  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix2");
642  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix3");
643  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_BPix4");
644 
645  // to be removed when Gaelle will have the phase2 digitizer
646  if (NumberOfBarrelLayers>=5){
647  if (NumberOfTotLayers>20){throw cms::Exception("Configuration") <<"SiPixelDigitizer was given more layers than it can handle";}
648  // For Phase2 tracker layers just set the outermost BPix aging 0.
649  for (int j=5 ; j<=NumberOfBarrelLayers ; j++){
650  thePixelPseudoRadDamage[j-1]=0.;
651  }
652  }
653  //
654  i=FPixIndex;
655  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_FPix1");
656  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_FPix2");
657  thePixelPseudoRadDamage[i++] = conf.getParameter<double>("thePixelPseudoRadDamage_FPix3");
658 
659  //To be removed when Phase2 digitizer will be available
660  if (NumberOfEndcapDisks>=4){
661  if (NumberOfTotLayers>20){throw cms::Exception("Configuration") <<"SiPixelDigitizer was given more layers than it can handle";}
662  // For Phase2 tracker layers just set the extra FPix disk aging to 0. BE CAREFUL THESE VALUES ARE HARDCODED ALSO ELSEWHERE IN THIS FILE
663  for (int j=4+FPixIndex ; j<=NumberOfEndcapDisks+NumberOfBarrelLayers ; j++){
664  thePixelPseudoRadDamage[j-1]=0.;
665  }
666  }
667  }
668  // the first "NumberOfBarrelLayers" settings [0],[1], ... , [NumberOfBarrelLayers-1] are for the barrel pixels
669  // the next "NumberOfEndcapDisks" settings [NumberOfBarrelLayers],[NumberOfBarrelLayers+1], ... [NumberOfEndcapDisks+NumberOfBarrelLayers-1]
670 }
T getParameter(std::string const &) const

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