CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
Phase2TrackerDigitizerAlgorithm Class Referenceabstract

#include <Phase2TrackerDigitizerAlgorithm.h>

Inheritance diagram for Phase2TrackerDigitizerAlgorithm:
Pixel3DDigitizerAlgorithm PixelDigitizerAlgorithm PSPDigitizerAlgorithm PSSDigitizerAlgorithm SSDigitizerAlgorithm

Classes

struct  SubdetEfficiencies
 

Public Member Functions

virtual void accumulateSimHits (const std::vector< PSimHit >::const_iterator inputBegin, const std::vector< PSimHit >::const_iterator inputEnd, const size_t inputBeginGlobalIndex, const uint32_t tofBin, const Phase2TrackerGeomDetUnit *pixdet, const GlobalVector &bfield)
 
virtual void digitize (const Phase2TrackerGeomDetUnit *pixdet, std::map< int, DigitizerUtility::DigiSimInfo > &digi_map, const TrackerTopology *tTopo)
 
virtual void init (const edm::EventSetup &es)=0
 
virtual void initializeEvent (CLHEP::HepRandomEngine &eng)
 
virtual bool isAboveThreshold (const DigitizerUtility::SimHitInfo *hitInfo, float charge, float thr) const
 
void loadAccumulator (uint32_t detId, const std::map< int, float > &accumulator)
 
 Phase2TrackerDigitizerAlgorithm (const edm::ParameterSet &conf_common, const edm::ParameterSet &conf_specific, edm::ConsumesCollector iC)
 
virtual bool select_hit (const PSimHit &hit, double tCorr, double &sigScale) const
 
virtual ~Phase2TrackerDigitizerAlgorithm ()
 

Protected Types

using Frame = GloballyPositioned< double >
 
using Parameters = std::vector< edm::ParameterSet >
 
using signal_map_type = std::map< int, DigitizerUtility::Amplitude, std::less< int > >
 
using signalMaps = std::map< uint32_t, signal_map_type >
 

Protected Member Functions

virtual void add_cross_talk (const Phase2TrackerGeomDetUnit *pixdet)
 
virtual void add_noise (const Phase2TrackerGeomDetUnit *pixdet)
 
virtual void add_noisy_cells (const Phase2TrackerGeomDetUnit *pixdet, float thePixelThreshold)
 
int convertSignalToAdc (uint32_t detID, float signal_in_elec, float threshold)
 
virtual std::vector< DigitizerUtility::SignalPointdrift (const PSimHit &hit, const Phase2TrackerGeomDetUnit *pixdet, const GlobalVector &bfield, const std::vector< DigitizerUtility::EnergyDepositUnit > &ionization_points) const
 
LocalVector DriftDirection (const Phase2TrackerGeomDetUnit *pixdet, const GlobalVector &bfield, const DetId &detId) const
 
virtual std::vector< float > fluctuateEloss (int particleId, float momentum, float eloss, float length, int NumberOfSegments) const
 
virtual void induce_signal (const PSimHit &hit, const size_t hitIndex, const uint32_t tofBin, const Phase2TrackerGeomDetUnit *pixdet, const std::vector< DigitizerUtility::SignalPoint > &collection_points)
 
virtual void module_killing_conf (uint32_t detID)
 
virtual void module_killing_DB (const Phase2TrackerGeomDetUnit *pixdet)
 
virtual void pixel_inefficiency (const SubdetEfficiencies &eff, const Phase2TrackerGeomDetUnit *pixdet, const TrackerTopology *tTopo)
 
virtual void pixel_inefficiency_db (uint32_t detID)
 
virtual std::vector< DigitizerUtility::EnergyDepositUnitprimary_ionization (const PSimHit &hit) const
 

Protected Attributes

signalMaps _signal
 
const bool addNoise_
 
const bool addNoisyPixels_
 
const bool addPixelInefficiency_
 
const bool addThresholdSmearing_
 
const bool addXtalk_
 
const bool alpha2Order_
 
Parameters badPixels_
 
const float clusterWidth_
 
const Parameters deadModules_
 
const SiPixelFedCablingMapfedCablingMap_
 
const std::unique_ptr< SiG4UniversalFluctuationfluctuate_
 
const bool fluctuateCharge_
 
std::unique_ptr< CLHEP::RandGaussQ > gaussDistribution_
 
const TrackerGeometrygeom_
 
const float GeVperElectron_
 
const float interstripCoupling_
 
const bool makeDigiSimLinks_
 
bool pixelFlag_
 
const double pseudoRadDamage_
 
const double pseudoRadDamageRadius_
 
CLHEP::HepRandomEngine * rengine_
 
const float Sigma0_
 
const float SigmaCoeff_
 
const SiPhase2OuterTrackerLorentzAnglesiPhase2OTLorentzAngle_
 
const SiPixelQualitysiPixelBadModule_
 
const SiPixelLorentzAnglesiPixelLorentzAngle_
 
std::unique_ptr< CLHEP::RandGaussQ > smearedThreshold_Barrel_
 
std::unique_ptr< CLHEP::RandGaussQ > smearedThreshold_Endcap_
 
const SubdetEfficiencies subdetEfficiencies_
 
const float tanLorentzAnglePerTesla_Barrel_
 
const float tanLorentzAnglePerTesla_Endcap_
 
const int theAdcFullScale_
 
const float theElectronPerADC_
 
const double theHIPThresholdInE_Barrel_
 
const double theHIPThresholdInE_Endcap_
 
const float theNoiseInElectrons_
 
const std::unique_ptr< GaussianTailNoiseGeneratortheNoiser_
 
const int thePhase2ReadoutMode_
 
const float theReadoutNoise_
 
const std::unique_ptr< SiPixelGainCalibrationOfflineSimServicetheSiPixelGainCalibrationService_
 
const float theThresholdInE_Barrel_
 
const float theThresholdInE_Endcap_
 
const double theThresholdSmearing_Barrel_
 
const double theThresholdSmearing_Endcap_
 
const float theTofLowerCut_
 
const float theTofUpperCut_
 
const double tMax_
 
const bool use_deadmodule_DB_
 
const bool use_ineff_from_db_
 
const bool use_LorentzAngle_DB_
 
const bool use_module_killing_
 

Detailed Description

Definition at line 54 of file Phase2TrackerDigitizerAlgorithm.h.

Member Typedef Documentation

◆ Frame

Definition at line 105 of file Phase2TrackerDigitizerAlgorithm.h.

◆ Parameters

Definition at line 106 of file Phase2TrackerDigitizerAlgorithm.h.

◆ signal_map_type

using Phase2TrackerDigitizerAlgorithm::signal_map_type = std::map<int, DigitizerUtility::Amplitude, std::less<int> >
protected

Definition at line 103 of file Phase2TrackerDigitizerAlgorithm.h.

◆ signalMaps

using Phase2TrackerDigitizerAlgorithm::signalMaps = std::map<uint32_t, signal_map_type>
protected

Definition at line 104 of file Phase2TrackerDigitizerAlgorithm.h.

Constructor & Destructor Documentation

◆ Phase2TrackerDigitizerAlgorithm()

Phase2TrackerDigitizerAlgorithm::Phase2TrackerDigitizerAlgorithm ( const edm::ParameterSet conf_common,
const edm::ParameterSet conf_specific,
edm::ConsumesCollector  iC 
)

Definition at line 59 of file Phase2TrackerDigitizerAlgorithm.cc.

62  : _signal(),
63  makeDigiSimLinks_(conf_common.getUntrackedParameter<bool>("makeDigiSimLinks", true)),
64  use_ineff_from_db_(conf_specific.getParameter<bool>("Inefficiency_DB")),
65  use_module_killing_(conf_specific.getParameter<bool>("KillModules")), // boolean to kill or not modules
66  use_deadmodule_DB_(conf_specific.getParameter<bool>("DeadModules_DB")), // boolean to access dead modules from DB
67  // boolean to access Lorentz angle from DB
68  use_LorentzAngle_DB_(conf_specific.getParameter<bool>("LorentzAngle_DB")),
69 
70  // get dead module from cfg file
71  deadModules_(use_deadmodule_DB_ ? Parameters() : conf_specific.getParameter<Parameters>("DeadModules")),
72 
73  // Common pixel parameters
74  // These are parameters which are not likely to be changed
75  GeVperElectron_(3.61E-09), // 1 electron(3.61eV, 1keV(277e, mod 9/06 d.k.
76  alpha2Order_(conf_specific.getParameter<bool>("Alpha2Order")), // switch on/off of E.B effect
77  addXtalk_(conf_specific.getParameter<bool>("AddXTalk")),
78  // Interstrip Coupling - Not used in PixelDigitizerAlgorithm
79  interstripCoupling_(conf_specific.getParameter<double>("InterstripCoupling")),
80 
81  Sigma0_(conf_specific.getParameter<double>("SigmaZero")), // Charge diffusion constant 7->3.7
82  SigmaCoeff_(conf_specific.getParameter<double>("SigmaCoeff")), // delta in the diffusion across the strip pitch
83  // (set between 0 to 0.9, 0-->flat Sigma0, 1-->Sigma_min=0 & Sigma_max=2*Sigma0
84  // D.B.: Dist300 replaced by moduleThickness, may not work with partially depleted sensors but works otherwise
85  // Dist300(0.0300), // normalized to 300micron Silicon
86 
87  // Charge integration spread on the collection plane
88  clusterWidth_(conf_specific.getParameter<double>("ClusterWidth")),
89 
90  // Allowed modes of readout which has following values :
91  // 0 ---> Digital or binary readout
92  // -1 ---> Analog readout, current digitizer (Inner Pixel) (TDR version) with no threshold subtraction
93  // Analog readout with dual slope with the "second" slope being 1/2^(n-1) and threshold subtraction (n = 1, 2, 3,4)
94  thePhase2ReadoutMode_(conf_specific.getParameter<int>("Phase2ReadoutMode")),
95 
96  // ADC calibration 1adc count(135e.
97  // Corresponds to 2adc/kev, 270[e/kev]/135[e/adc](2[adc/kev]
98  // Be careful, this parameter is also used in SiPixelDet.cc to
99  // calculate the noise in adc counts from noise in electrons.
100  // Both defaults should be the same.
101  theElectronPerADC_(conf_specific.getParameter<double>("ElectronPerAdc")),
102 
103  // ADC saturation value, 255(8bit adc.
104  theAdcFullScale_(conf_specific.getParameter<int>("AdcFullScale")),
105 
106  // Noise in electrons:
107  // Pixel cell noise, relevant for generating noisy pixels
108  theNoiseInElectrons_(conf_specific.getParameter<double>("NoiseInElectrons")),
109 
110  // Fill readout noise, including all readout chain, relevant for smearing
111  theReadoutNoise_(conf_specific.getParameter<double>("ReadoutNoiseInElec")),
112 
113  // Threshold in units of noise:
114  // thePixelThreshold(conf.getParameter<double>("ThresholdInNoiseUnits")),
115  // Pixel threshold in electron units.
116  theThresholdInE_Endcap_(conf_specific.getParameter<double>("ThresholdInElectrons_Endcap")),
117  theThresholdInE_Barrel_(conf_specific.getParameter<double>("ThresholdInElectrons_Barrel")),
118 
119  // Add threshold gaussian smearing:
120  theThresholdSmearing_Endcap_(conf_specific.getParameter<double>("ThresholdSmearing_Endcap")),
121  theThresholdSmearing_Barrel_(conf_specific.getParameter<double>("ThresholdSmearing_Barrel")),
122 
123  // Add HIP Threshold in electron units.
124  theHIPThresholdInE_Endcap_(conf_specific.getParameter<double>("HIPThresholdInElectrons_Endcap")),
125  theHIPThresholdInE_Barrel_(conf_specific.getParameter<double>("HIPThresholdInElectrons_Barrel")),
126 
127  // theTofCut 12.5, cut in particle TOD +/- 12.5ns
128  theTofLowerCut_(conf_specific.getParameter<double>("TofLowerCut")),
129  theTofUpperCut_(conf_specific.getParameter<double>("TofUpperCut")),
130 
131  // Get the Lorentz angle from the cfg file:
133  use_LorentzAngle_DB_ ? 0.0 : conf_specific.getParameter<double>("TanLorentzAnglePerTesla_Endcap")),
135  use_LorentzAngle_DB_ ? 0.0 : conf_specific.getParameter<double>("TanLorentzAnglePerTesla_Barrel")),
136 
137  // Add noise
138  addNoise_(conf_specific.getParameter<bool>("AddNoise")),
139 
140  // Add noisy pixels
141  addNoisyPixels_(conf_specific.getParameter<bool>("AddNoisyPixels")),
142 
143  // Fluctuate charge in track subsegments
144  fluctuateCharge_(conf_specific.getUntrackedParameter<bool>("FluctuateCharge", true)),
145 
146  // Control the pixel inefficiency
147  addPixelInefficiency_(conf_specific.getParameter<bool>("AddInefficiency")),
148 
149  // Add threshold gaussian smearing:
150  addThresholdSmearing_(conf_specific.getParameter<bool>("AddThresholdSmearing")),
151 
152  // Add some pseudo-red damage
153  pseudoRadDamage_(conf_specific.exists("PseudoRadDamage") ? conf_specific.getParameter<double>("PseudoRadDamage")
154  : double(0.0)),
155  pseudoRadDamageRadius_(conf_specific.exists("PseudoRadDamageRadius")
156  ? conf_specific.getParameter<double>("PseudoRadDamageRadius")
157  : double(0.0)),
158 
159  // delta cutoff in MeV, has to be same as in OSCAR(0.030/cmsim=1.0 MeV
160  // tMax(0.030), // In MeV.
161  // tMax(conf.getUntrackedParameter<double>("DeltaProductionCut",0.030)),
162  tMax_(conf_common.getParameter<double>("DeltaProductionCut")),
163 
164  badPixels_(conf_specific.getParameter<Parameters>("CellsToKill")),
165 
166  fluctuate_(fluctuateCharge_ ? std::make_unique<SiG4UniversalFluctuation>() : nullptr),
167  theNoiser_(addNoise_ ? std::make_unique<GaussianTailNoiseGenerator>() : nullptr),
169  use_ineff_from_db_ ? std::make_unique<SiPixelGainCalibrationOfflineSimService>(conf_specific, iC) : nullptr),
170  subdetEfficiencies_(conf_specific) {
171  LogDebug("Phase2TrackerDigitizerAlgorithm")
172  << "Phase2TrackerDigitizerAlgorithm constructed\n"
173  << "Configuration parameters:\n"
174  << "Threshold/Gain = "
175  << "threshold in electron Endcap = " << theThresholdInE_Endcap_
176  << "\nthreshold in electron Barrel = " << theThresholdInE_Barrel_ << " ElectronPerADC " << theElectronPerADC_
177  << " ADC Scale (in bits) " << theAdcFullScale_ << " The delta cut-off is set to " << tMax_ << " pix-inefficiency "
179 }

References addPixelInefficiency_, LogDebug, theAdcFullScale_, theElectronPerADC_, theThresholdInE_Barrel_, theThresholdInE_Endcap_, and tMax_.

◆ ~Phase2TrackerDigitizerAlgorithm()

Phase2TrackerDigitizerAlgorithm::~Phase2TrackerDigitizerAlgorithm ( )
virtual

Definition at line 181 of file Phase2TrackerDigitizerAlgorithm.cc.

181  {
182  LogDebug("Phase2TrackerDigitizerAlgorithm") << "Phase2TrackerDigitizerAlgorithm deleted";
183 }

References LogDebug.

Member Function Documentation

◆ accumulateSimHits()

void Phase2TrackerDigitizerAlgorithm::accumulateSimHits ( const std::vector< PSimHit >::const_iterator  inputBegin,
const std::vector< PSimHit >::const_iterator  inputEnd,
const size_t  inputBeginGlobalIndex,
const uint32_t  tofBin,
const Phase2TrackerGeomDetUnit pixdet,
const GlobalVector bfield 
)
virtual

Definition at line 189 of file Phase2TrackerDigitizerAlgorithm.cc.

194  {
195  // produce SignalPoint's for all SimHit's in detector
196  // Loop over hits
197  uint32_t detId = pixdet->geographicalId().rawId();
198  size_t simHitGlobalIndex = inputBeginGlobalIndex; // This needs to be stored to create the digi-sim link later
199 
200  // find the relevant hits
201  std::vector<PSimHit> matchedSimHits;
202  std::copy_if(inputBegin, inputEnd, std::back_inserter(matchedSimHits), [detId](auto const& hit) -> bool {
203  return hit.detUnitId() == detId;
204  });
205  // loop over a much reduced set of SimHits
206  for (auto const& hit : matchedSimHits) {
207  LogDebug("Phase2DigitizerAlgorithm") << hit.particleType() << " " << hit.pabs() << " " << hit.energyLoss() << " "
208  << hit.tof() << " " << hit.trackId() << " " << hit.processType() << " "
209  << hit.detUnitId() << hit.entryPoint() << " " << hit.exitPoint();
210  double signalScale = 1.0;
211  // fill collection_points for this SimHit, indpendent of topology
212  if (select_hit(hit, (pixdet->surface().toGlobal(hit.localPosition()).mag() * c_inv), signalScale)) {
213  const auto& ionization_points = primary_ionization(hit); // fills ionization_points
214 
215  // transforms ionization_points -> collection_points
216  const auto& collection_points = drift(hit, pixdet, bfield, ionization_points);
217 
218  // compute induced signal on readout elements and add to _signal
219  // hit needed only for SimHit<-->Digi link
220  induce_signal(hit, simHitGlobalIndex, tofBin, pixdet, collection_points);
221  }
222  ++simHitGlobalIndex;
223  }
224 }

References c_inv, drift(), GeomDet::geographicalId(), induce_signal(), LogDebug, mag(), primary_ionization(), DetId::rawId(), select_hit(), GeomDet::surface(), and Surface::toGlobal().

◆ add_cross_talk()

void Phase2TrackerDigitizerAlgorithm::add_cross_talk ( const Phase2TrackerGeomDetUnit pixdet)
protectedvirtual

Reimplemented in PixelDigitizerAlgorithm.

Definition at line 610 of file Phase2TrackerDigitizerAlgorithm.cc.

610  {
611  uint32_t detID = pixdet->geographicalId().rawId();
612  signal_map_type& theSignal = _signal[detID];
613  signal_map_type signalNew;
614  const Phase2TrackerTopology* topol = &pixdet->specificTopology();
615  int numRows = topol->nrows();
616 
617  for (auto& s : theSignal) {
618  float signalInElectrons = s.second.ampl(); // signal in electrons
619 
620  std::pair<int, int> hitChan;
621  if (pixelFlag_)
622  hitChan = PixelDigi::channelToPixel(s.first);
623  else
624  hitChan = Phase2TrackerDigi::channelToPixel(s.first);
625 
626  float signalInElectrons_Xtalk = signalInElectrons * interstripCoupling_;
627  // subtract the charge which will be shared
628  s.second.set(signalInElectrons - signalInElectrons_Xtalk);
629 
630  if (hitChan.first != 0) {
631  auto XtalkPrev = std::make_pair(hitChan.first - 1, hitChan.second);
632  int chanXtalkPrev = pixelFlag_ ? PixelDigi::pixelToChannel(XtalkPrev.first, XtalkPrev.second)
633  : Phase2TrackerDigi::pixelToChannel(XtalkPrev.first, XtalkPrev.second);
634  signalNew.emplace(chanXtalkPrev, DigitizerUtility::Amplitude(signalInElectrons_Xtalk, nullptr, -1.0));
635  }
636  if (hitChan.first < numRows - 1) {
637  auto XtalkNext = std::make_pair(hitChan.first + 1, hitChan.second);
638  int chanXtalkNext = pixelFlag_ ? PixelDigi::pixelToChannel(XtalkNext.first, XtalkNext.second)
639  : Phase2TrackerDigi::pixelToChannel(XtalkNext.first, XtalkNext.second);
640  signalNew.emplace(chanXtalkNext, DigitizerUtility::Amplitude(signalInElectrons_Xtalk, nullptr, -1.0));
641  }
642  }
643  for (auto const& l : signalNew) {
644  int chan = l.first;
645  auto iter = theSignal.find(chan);
646  if (iter != theSignal.end()) {
647  theSignal[chan] += l.second.ampl();
648  } else {
649  theSignal.emplace(chan, DigitizerUtility::Amplitude(l.second.ampl(), nullptr, -1.0));
650  }
651  }
652 }

References _signal, officialStyle::chan, Phase2TrackerDigi::channelToPixel(), PixelDigi::channelToPixel(), GeomDet::geographicalId(), interstripCoupling_, cmsLHEtoEOSManager::l, PixelTopology::nrows(), pixelFlag_, Phase2TrackerDigi::pixelToChannel(), PixelDigi::pixelToChannel(), DetId::rawId(), alignCSCRings::s, and PixelGeomDetUnit::specificTopology().

Referenced by digitize().

◆ add_noise()

void Phase2TrackerDigitizerAlgorithm::add_noise ( const Phase2TrackerGeomDetUnit pixdet)
protectedvirtual

Definition at line 594 of file Phase2TrackerDigitizerAlgorithm.cc.

594  {
595  uint32_t detID = pixdet->geographicalId().rawId();
596  signal_map_type& theSignal = _signal[detID];
597  for (auto& s : theSignal) {
598  float noise = gaussDistribution_->fire();
599  if ((s.second.ampl() + noise) < 0.)
600  s.second.set(0);
601  else
602  s.second += noise;
603  }
604 }

References _signal, gaussDistribution_, GeomDet::geographicalId(), gpuVertexFinder::noise, DetId::rawId(), and alignCSCRings::s.

Referenced by digitize().

◆ add_noisy_cells()

void Phase2TrackerDigitizerAlgorithm::add_noisy_cells ( const Phase2TrackerGeomDetUnit pixdet,
float  thePixelThreshold 
)
protectedvirtual

Definition at line 659 of file Phase2TrackerDigitizerAlgorithm.cc.

659  {
660  uint32_t detID = pixdet->geographicalId().rawId();
661  signal_map_type& theSignal = _signal[detID];
662  const Phase2TrackerTopology* topol = &pixdet->specificTopology();
663 
664  int numColumns = topol->ncolumns(); // det module number of cols&rows
665  int numRows = topol->nrows();
666 
667  int numberOfPixels = numRows * numColumns;
668  std::map<int, float, std::less<int> > otherPixels;
669 
670  theNoiser_->generate(numberOfPixels,
671  thePixelThreshold, //thr. in un. of nois
672  theNoiseInElectrons_, // noise in elec.
673  otherPixels,
674  rengine_);
675 
676  LogDebug("Phase2TrackerDigitizerAlgorithm")
677  << " Add noisy pixels " << numRows << " " << numColumns << " " << theNoiseInElectrons_ << " "
678  << theThresholdInE_Endcap_ << " " << theThresholdInE_Barrel_ << " " << numberOfPixels << " "
679  << otherPixels.size();
680 
681  // Add noisy pixels
682  for (auto const& el : otherPixels) {
683  int iy = el.first / numRows;
684  if (iy < 0 || iy > numColumns - 1)
685  LogWarning("Phase2TrackerDigitizerAlgorithm") << " error in iy " << iy;
686 
687  int ix = el.first - iy * numRows;
688  if (ix < 0 || ix > numRows - 1)
689  LogWarning("Phase2TrackerDigitizerAlgorithm") << " error in ix " << ix;
690 
692 
693  LogDebug("Phase2TrackerDigitizerAlgorithm")
694  << " Storing noise = " << el.first << " " << el.second << " " << ix << " " << iy << " " << chan;
695 
696  if (theSignal[chan] == 0)
697  theSignal[chan] = DigitizerUtility::Amplitude(el.second, nullptr, -1.);
698  }
699 }

References _signal, LaserClient_cfi::Amplitude, officialStyle::chan, GeomDet::geographicalId(), LogDebug, PixelTopology::ncolumns(), PixelTopology::nrows(), pixelFlag_, Phase2TrackerDigi::pixelToChannel(), PixelDigi::pixelToChannel(), DetId::rawId(), rengine_, PixelGeomDetUnit::specificTopology(), theNoiseInElectrons_, theNoiser_, theThresholdInE_Barrel_, and theThresholdInE_Endcap_.

Referenced by digitize().

◆ convertSignalToAdc()

int Phase2TrackerDigitizerAlgorithm::convertSignalToAdc ( uint32_t  detID,
float  signal_in_elec,
float  threshold 
)
protected

Definition at line 1017 of file Phase2TrackerDigitizerAlgorithm.cc.

1017  {
1018  int signal_in_adc;
1019  int temp_signal;
1020  const int max_limit = 10;
1021  if (thePhase2ReadoutMode_ == 0) {
1022  signal_in_adc = theAdcFullScale_;
1023  } else {
1024  if (thePhase2ReadoutMode_ == -1) {
1025  temp_signal = std::min(static_cast<int>(signal_in_elec / theElectronPerADC_), theAdcFullScale_);
1026  } else {
1027  // calculate the kink point and the slope
1028  int dualslope_param = std::min(std::abs(thePhase2ReadoutMode_), max_limit);
1029  int kink_point = static_cast<int>(theAdcFullScale_ / 2) + 1;
1030  // C-ROC: first valid ToT code above threshold is 0b0000
1031  temp_signal = std::floor((signal_in_elec - threshold) / theElectronPerADC_);
1032  if (temp_signal > kink_point)
1033  temp_signal = std::floor((temp_signal - kink_point) / (pow(2, dualslope_param - 1))) + kink_point;
1034  }
1035  signal_in_adc = std::min(temp_signal, theAdcFullScale_);
1036  LogTrace("Phase2TrackerDigitizerAlgorithm")
1037  << " DetId " << detID << " signal_in_elec " << signal_in_elec << " threshold " << threshold
1038  << " signal_above_thr " << signal_in_elec - threshold << " temp conversion "
1039  << std::floor((signal_in_elec - threshold) / theElectronPerADC_) + 1 << " signal after slope correction "
1040  << temp_signal << " signal_in_adc " << signal_in_adc;
1041  }
1042  return signal_in_adc;
1043 }

References funct::abs(), LogTrace, min(), funct::pow(), theAdcFullScale_, theElectronPerADC_, thePhase2ReadoutMode_, and remoteMonitoring_LED_IterMethod_cfg::threshold.

Referenced by digitize().

◆ digitize()

void Phase2TrackerDigitizerAlgorithm::digitize ( const Phase2TrackerGeomDetUnit pixdet,
std::map< int, DigitizerUtility::DigiSimInfo > &  digi_map,
const TrackerTopology tTopo 
)
virtual

Definition at line 942 of file Phase2TrackerDigitizerAlgorithm.cc.

944  {
945  uint32_t detID = pixdet->geographicalId().rawId();
946  auto it = _signal.find(detID);
947  if (it == _signal.end())
948  return;
949 
950  const signal_map_type& theSignal = _signal[detID];
951 
952  uint32_t Sub_detid = DetId(detID).subdetId();
953 
954  float theThresholdInE = 0.;
955  float theHIPThresholdInE = 0.;
956  // Define Threshold
957  if (Sub_detid == PixelSubdetector::PixelBarrel || Sub_detid == StripSubdetector::TOB) { // Barrel modules
958  theThresholdInE = addThresholdSmearing_ ? smearedThreshold_Barrel_->fire() // gaussian smearing
959  : theThresholdInE_Barrel_; // no smearing
960  theHIPThresholdInE = theHIPThresholdInE_Barrel_;
961  } else { // Forward disks modules
962  theThresholdInE = addThresholdSmearing_ ? smearedThreshold_Endcap_->fire() // gaussian smearing
963  : theThresholdInE_Endcap_; // no smearing
964  theHIPThresholdInE = theHIPThresholdInE_Endcap_;
965  }
966 
967  // if (addNoise) add_noise(pixdet, theThresholdInE/theNoiseInElectrons_); // generate noise
968  if (addNoise_)
969  add_noise(pixdet); // generate noise
970  if (addXtalk_)
971  add_cross_talk(pixdet);
972  if (addNoisyPixels_)
973  add_noisy_cells(pixdet, theHIPThresholdInE / theElectronPerADC_);
974 
975  // Do only if needed
976  if (addPixelInefficiency_ && !theSignal.empty()) {
977  if (use_ineff_from_db_)
978  pixel_inefficiency_db(detID);
979  else
980  pixel_inefficiency(subdetEfficiencies_, pixdet, tTopo);
981  }
982  if (use_module_killing_) {
983  if (use_deadmodule_DB_) // remove dead modules using DB
984  module_killing_DB(pixdet);
985  else // remove dead modules using the list in cfg file
986  module_killing_conf(detID);
987  }
988 
989  // Digitize if the signal is greater than threshold
990  for (auto const& s : theSignal) {
991  const DigitizerUtility::Amplitude& sig_data = s.second;
992  float signalInElectrons = sig_data.ampl();
993 
994  const auto& info_list = sig_data.simInfoList();
995  const DigitizerUtility::SimHitInfo* hitInfo = nullptr;
996  if (!info_list.empty())
997  hitInfo = std::max_element(info_list.begin(), info_list.end())->second.get();
998 
999  if (isAboveThreshold(hitInfo, signalInElectrons, theThresholdInE)) { // check threshold
1001  info.sig_tot = convertSignalToAdc(detID, signalInElectrons, theThresholdInE); // adc
1002  info.ot_bit = signalInElectrons > theHIPThresholdInE ? true : false;
1003  if (makeDigiSimLinks_) {
1004  for (auto const& l : sig_data.simInfoList()) {
1005  float charge_frac = l.first / signalInElectrons;
1006  if (l.first > -5.0)
1007  info.simInfoList.push_back({charge_frac, l.second.get()});
1008  }
1009  }
1010  digi_map.insert({s.first, info});
1011  }
1012  }
1013 }

References _signal, add_cross_talk(), add_noise(), add_noisy_cells(), addNoise_, addNoisyPixels_, addPixelInefficiency_, addThresholdSmearing_, addXtalk_, DigitizerUtility::Amplitude::ampl(), convertSignalToAdc(), GeomDet::geographicalId(), info(), isAboveThreshold(), cmsLHEtoEOSManager::l, makeDigiSimLinks_, module_killing_conf(), module_killing_DB(), pixel_inefficiency(), pixel_inefficiency_db(), PixelSubdetector::PixelBarrel, DetId::rawId(), alignCSCRings::s, edm::second(), DigitizerUtility::Amplitude::simInfoList(), smearedThreshold_Barrel_, smearedThreshold_Endcap_, subdetEfficiencies_, DetId::subdetId(), theElectronPerADC_, theHIPThresholdInE_Barrel_, theHIPThresholdInE_Endcap_, theThresholdInE_Barrel_, theThresholdInE_Endcap_, StripSubdetector::TOB, funct::true, use_deadmodule_DB_, use_ineff_from_db_, and use_module_killing_.

◆ drift()

std::vector< DigitizerUtility::SignalPoint > Phase2TrackerDigitizerAlgorithm::drift ( const PSimHit hit,
const Phase2TrackerGeomDetUnit pixdet,
const GlobalVector bfield,
const std::vector< DigitizerUtility::EnergyDepositUnit > &  ionization_points 
) const
protectedvirtual

Reimplemented in Pixel3DDigitizerAlgorithm.

Definition at line 337 of file Phase2TrackerDigitizerAlgorithm.cc.

341  {
342  LogDebug("Phase2TrackerDigitizerAlgorithm") << "enter drift ";
343 
344  std::vector<DigitizerUtility::SignalPoint> collection_points;
345  collection_points.reserve(ionization_points.size()); // set size
346  LocalVector driftDir = DriftDirection(pixdet, bfield, hit.detUnitId()); // get the charge drift direction
347  if (driftDir.z() == 0.) {
348  LogWarning("Phase2TrackerDigitizerAlgorithm") << " pxlx: drift in z is zero ";
349  return collection_points;
350  }
351 
352  float TanLorenzAngleX = driftDir.x(); // tangent of Lorentz angle
353  float TanLorenzAngleY = 0.; // force to 0, driftDir.y()/driftDir.z();
354  float dir_z = driftDir.z(); // The z drift direction
355  float CosLorenzAngleX = 1. / std::sqrt(1. + std::pow(TanLorenzAngleX, 2)); // cosine to estimate the path length
356  float CosLorenzAngleY = 1.;
357  if (alpha2Order_) {
358  TanLorenzAngleY = driftDir.y();
359  CosLorenzAngleY = 1. / std::sqrt(1. + std::pow(TanLorenzAngleY, 2)); // cosine
360  }
361 
362  float moduleThickness = pixdet->specificSurface().bounds().thickness();
363  float stripPitch = pixdet->specificTopology().pitch().first;
364 
365  LogDebug("Phase2TrackerDigitizerAlgorithm")
366  << " Lorentz Tan " << TanLorenzAngleX << " " << TanLorenzAngleY << " " << CosLorenzAngleX << " "
367  << CosLorenzAngleY << " " << moduleThickness * TanLorenzAngleX << " " << driftDir;
368 
369  for (auto const& val : ionization_points) {
370  // position
371  float SegX = val.x(), SegY = val.y(), SegZ = val.z();
372 
373  // Distance from the collection plane
374  // DriftDistance = (moduleThickness/2. + SegZ); // Drift to -z
375  // Include explixitely the E drift direction (for CMS dir_z=-1)
376 
377  // Distance between charge generation and collection
378  float driftDistance = moduleThickness / 2. - (dir_z * SegZ); // Drift to -z
379 
380  if (driftDistance < 0.)
381  driftDistance = 0.;
382  else if (driftDistance > moduleThickness)
383  driftDistance = moduleThickness;
384 
385  // Assume full depletion now, partial depletion will come later.
386  float XDriftDueToMagField = driftDistance * TanLorenzAngleX;
387  float YDriftDueToMagField = driftDistance * TanLorenzAngleY;
388 
389  // Shift cloud center
390  float CloudCenterX = SegX + XDriftDueToMagField;
391  float CloudCenterY = SegY + YDriftDueToMagField;
392 
393  // Calculate how long is the charge drift path
394  // Actual Drift Lentgh
395  float driftLength =
396  std::sqrt(std::pow(driftDistance, 2) + std::pow(XDriftDueToMagField, 2) + std::pow(YDriftDueToMagField, 2));
397 
398  // What is the charge diffusion after this path
399  // Sigma0=0.00037 is for 300um thickness (make sure moduleThickness is in [cm])
400  float Sigma = std::sqrt(driftLength / moduleThickness) * Sigma0_ * moduleThickness / 0.0300;
401  // D.B.: sigmaCoeff=0 means no modulation
402  if (SigmaCoeff_)
403  Sigma *= (SigmaCoeff_ * std::pow(cos(SegX * M_PI / stripPitch), 2) + 1);
404  // NB: divided by 4 to get a periodicity of stripPitch
405 
406  // Project the diffusion sigma on the collection plane
407  float Sigma_x = Sigma / CosLorenzAngleX;
408  float Sigma_y = Sigma / CosLorenzAngleY;
409 
410  // Insert a charge loss due to Rad Damage here
411  float energyOnCollector = val.energy(); // The energy that reaches the collector
412 
413  // pseudoRadDamage
414  if (pseudoRadDamage_) {
415  float moduleRadius = pixdet->surface().position().perp();
416  if (moduleRadius <= pseudoRadDamageRadius_) {
417  float kValue = pseudoRadDamage_ / std::pow(moduleRadius, 2);
418  energyOnCollector *= exp(-1 * kValue * driftDistance / moduleThickness);
419  }
420  }
421  LogDebug("Phase2TrackerDigitizerAlgorithm")
422  << "Dift DistanceZ = " << driftDistance << " module thickness = " << moduleThickness
423  << " Start Energy = " << val.energy() << " Energy after loss= " << energyOnCollector;
424  DigitizerUtility::SignalPoint sp(CloudCenterX, CloudCenterY, Sigma_x, Sigma_y, hit.tof(), energyOnCollector);
425 
426  // Load the Charge distribution parameters
427  collection_points.push_back(sp);
428  }
429  return collection_points;
430 }

References alpha2Order_, Surface::bounds(), funct::cos(), DriftDirection(), JetChargeProducer_cfi::exp, LogDebug, M_PI, PV3DBase< T, PVType, FrameType >::perp(), PixelTopology::pitch(), GloballyPositioned< T >::position(), funct::pow(), pseudoRadDamage_, pseudoRadDamageRadius_, Sigma0_, SigmaCoeff_, GeomDet::specificSurface(), PixelGeomDetUnit::specificTopology(), mathSSE::sqrt(), GeomDet::surface(), Bounds::thickness(), heppy_batch::val, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

Referenced by accumulateSimHits().

◆ DriftDirection()

LocalVector Phase2TrackerDigitizerAlgorithm::DriftDirection ( const Phase2TrackerGeomDetUnit pixdet,
const GlobalVector bfield,
const DetId detId 
) const
protected

Definition at line 760 of file Phase2TrackerDigitizerAlgorithm.cc.

762  {
763  Frame detFrame(pixdet->surface().position(), pixdet->surface().rotation());
764  LocalVector Bfield = detFrame.toLocal(bfield);
765 
766  float dir_x = 0.0;
767  float dir_y = 0.0;
768  float dir_z = 0.0;
769  float scale = 1.0;
770 
771  uint32_t detID = pixdet->geographicalId().rawId();
772  uint32_t Sub_detid = DetId(detID).subdetId();
773 
774  // Read Lorentz angle from DB:
775  if (use_LorentzAngle_DB_) {
776  bool isPixel = (Sub_detid == PixelSubdetector::PixelBarrel || Sub_detid == PixelSubdetector::PixelEndcap);
777 
778  float lorentzAngle =
780  float alpha2 = std::pow(lorentzAngle, 2);
781 
782  dir_x = -(lorentzAngle * Bfield.y() + alpha2 * Bfield.z() * Bfield.x());
783  dir_y = +(lorentzAngle * Bfield.x() - alpha2 * Bfield.z() * Bfield.y());
784  dir_z = -(1 + alpha2 * std::pow(Bfield.z(), 2));
785  scale = (1 + alpha2 * std::pow(Bfield.z(), 2));
786  } else {
787  // Read Lorentz angle from cfg file:
788  float alpha2_Endcap = 0.0;
789  float alpha2_Barrel = 0.0;
790  if (alpha2Order_) {
791  alpha2_Endcap = std::pow(tanLorentzAnglePerTesla_Endcap_, 2);
792  alpha2_Barrel = std::pow(tanLorentzAnglePerTesla_Barrel_, 2);
793  }
794 
795  if (Sub_detid == PixelSubdetector::PixelBarrel || Sub_detid == StripSubdetector::TOB) { // barrel layers
796  dir_x = -(tanLorentzAnglePerTesla_Barrel_ * Bfield.y() + alpha2_Barrel * Bfield.z() * Bfield.x());
797  dir_y = +(tanLorentzAnglePerTesla_Barrel_ * Bfield.x() - alpha2_Barrel * Bfield.z() * Bfield.y());
798  dir_z = -(1 + alpha2_Barrel * std::pow(Bfield.z(), 2));
799  scale = (1 + alpha2_Barrel * std::pow(Bfield.z(), 2));
800 
801  } else { // forward disks
802  dir_x = -(tanLorentzAnglePerTesla_Endcap_ * Bfield.y() + alpha2_Endcap * Bfield.z() * Bfield.x());
803  dir_y = +(tanLorentzAnglePerTesla_Endcap_ * Bfield.x() - alpha2_Endcap * Bfield.z() * Bfield.y());
804  dir_z = -(1 + alpha2_Endcap * std::pow(Bfield.z(), 2));
805  scale = (1 + alpha2_Endcap * std::pow(Bfield.z(), 2));
806  }
807  }
808 
809  LocalVector theDriftDirection = LocalVector(dir_x / scale, dir_y / scale, dir_z / scale);
810  LogDebug("Phase2TrackerDigitizerAlgorithm") << " The drift direction in local coordinate is " << theDriftDirection;
811  return theDriftDirection;
812 }

References alpha2Order_, GeomDet::geographicalId(), SiPixelLorentzAngle::getLorentzAngle(), SiPhase2OuterTrackerLorentzAngle::getLorentzAngle(), fastTrackerRecHitType::isPixel(), LogDebug, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, GloballyPositioned< T >::position(), funct::pow(), DetId::rawId(), GloballyPositioned< T >::rotation(), L1EGammaCrystalsEmulatorProducer_cfi::scale, siPhase2OTLorentzAngle_, siPixelLorentzAngle_, DetId::subdetId(), GeomDet::surface(), tanLorentzAnglePerTesla_Barrel_, tanLorentzAnglePerTesla_Endcap_, StripSubdetector::TOB, and use_LorentzAngle_DB_.

Referenced by drift().

◆ fluctuateEloss()

std::vector< float > Phase2TrackerDigitizerAlgorithm::fluctuateEloss ( int  particleId,
float  momentum,
float  eloss,
float  length,
int  NumberOfSegments 
) const
protectedvirtual

Definition at line 280 of file Phase2TrackerDigitizerAlgorithm.cc.

281  {
282  double particleMass = ::m_pion; // Mass in MeV, assume pion
283  pid = std::abs(pid);
284  if (pid != 211) { // Mass in MeV
285  if (pid == 11)
286  particleMass = ::m_electron;
287  else if (pid == 13)
288  particleMass = ::m_muon;
289  else if (pid == 321)
290  particleMass = ::m_kaon;
291  else if (pid == 2212)
292  particleMass = ::m_proton;
293  }
294  // What is the track segment length.
295  float segmentLength = length / NumberOfSegs;
296 
297  // Generate charge fluctuations.
298  float sum = 0.;
299  double segmentEloss = (1000. * eloss) / NumberOfSegs; //eloss in MeV
300  std::vector<float> elossVector;
301  elossVector.reserve(NumberOfSegs);
302  for (int i = 0; i < NumberOfSegs; ++i) {
303  // The G4 routine needs momentum in MeV, mass in Mev, delta-cut in MeV,
304  // track segment length in mm, segment eloss in MeV
305  // Returns fluctuated eloss in MeV
306  double deltaCutoff = tMax_; // the cutoff is sometimes redefined inside, so fix it.
307  float de = fluctuate_->SampleFluctuations(particleMomentum * 1000.,
308  particleMass,
309  deltaCutoff,
310  segmentLength * 10.,
311  segmentEloss,
312  rengine_) /
313  1000.; //convert to GeV
314  elossVector.push_back(de);
315  sum += de;
316  }
317  if (sum > 0.) { // if fluctuations give eloss>0.
318  // Rescale to the same total eloss
319  float ratio = eloss / sum;
321  std::begin(elossVector), std::end(elossVector), std::begin(elossVector), [&ratio](auto const& c) -> float {
322  return c * ratio;
323  }); // use a simple lambda expression
324  } else { // if fluctuations gives 0 eloss
325  float averageEloss = eloss / NumberOfSegs;
326  elossVector.resize(NumberOfSegs, averageEloss);
327  }
328  return elossVector;
329 }

References funct::abs(), c, mps_fire::end, fluctuate_, mps_fire::i, particleFlowDisplacedVertex_cfi::ratio, rengine_, tMax_, and HcalDetIdTransform::transform().

Referenced by primary_ionization().

◆ induce_signal()

void Phase2TrackerDigitizerAlgorithm::induce_signal ( const PSimHit hit,
const size_t  hitIndex,
const uint32_t  tofBin,
const Phase2TrackerGeomDetUnit pixdet,
const std::vector< DigitizerUtility::SignalPoint > &  collection_points 
)
protectedvirtual

Reimplemented in Pixel3DDigitizerAlgorithm.

Definition at line 435 of file Phase2TrackerDigitizerAlgorithm.cc.

440  {
441  // X - Rows, Left-Right, 160, (1.6cm) for barrel
442  // Y - Columns, Down-Up, 416, (6.4cm)
443  const Phase2TrackerTopology* topol = &pixdet->specificTopology();
444  uint32_t detID = pixdet->geographicalId().rawId();
445  signal_map_type& theSignal = _signal[detID];
446 
447  LogDebug("Phase2TrackerDigitizerAlgorithm")
448  << " enter induce_signal, " << topol->pitch().first << " " << topol->pitch().second;
449 
450  // local map to store pixels hit by 1 Hit.
451  using hit_map_type = std::map<int, float, std::less<int> >;
452  hit_map_type hit_signal;
453 
454  // Assign signals to readout channels and store sorted by channel number
455  // Iterate over collection points on the collection plane
456  for (auto const& v : collection_points) {
457  float CloudCenterX = v.position().x(); // Charge position in x
458  float CloudCenterY = v.position().y(); // in y
459  float SigmaX = v.sigma_x(); // Charge spread in x
460  float SigmaY = v.sigma_y(); // in y
461  float Charge = v.amplitude(); // Charge amplitude
462 
463  LogDebug("Phase2TrackerDigitizerAlgorithm") << " cloud " << v.position().x() << " " << v.position().y() << " "
464  << v.sigma_x() << " " << v.sigma_y() << " " << v.amplitude();
465 
466  // Find the maximum cloud spread in 2D plane , assume 3*sigma
467  float CloudRight = CloudCenterX + clusterWidth_ * SigmaX;
468  float CloudLeft = CloudCenterX - clusterWidth_ * SigmaX;
469  float CloudUp = CloudCenterY + clusterWidth_ * SigmaY;
470  float CloudDown = CloudCenterY - clusterWidth_ * SigmaY;
471 
472  // Define 2D cloud limit points
473  LocalPoint PointRightUp = LocalPoint(CloudRight, CloudUp);
474  LocalPoint PointLeftDown = LocalPoint(CloudLeft, CloudDown);
475 
476  // This points can be located outside the sensor area.
477  // The conversion to measurement point does not check for that
478  // so the returned pixel index might be wrong (outside range).
479  // We rely on the limits check below to fix this.
480  // But remember whatever we do here THE CHARGE OUTSIDE THE ACTIVE
481  // PIXEL ARE IS LOST, it should not be collected.
482 
483  // Convert the 2D points to pixel indices
484  MeasurementPoint mp = topol->measurementPosition(PointRightUp);
485  int IPixRightUpX = static_cast<int>(std::floor(mp.x())); // cast reqd.
486  int IPixRightUpY = static_cast<int>(std::floor(mp.y()));
487  LogDebug("Phase2TrackerDigitizerAlgorithm")
488  << " right-up " << PointRightUp << " " << mp.x() << " " << mp.y() << " " << IPixRightUpX << " " << IPixRightUpY;
489 
490  mp = topol->measurementPosition(PointLeftDown);
491  int IPixLeftDownX = static_cast<int>(std::floor(mp.x()));
492  int IPixLeftDownY = static_cast<int>(std::floor(mp.y()));
493  LogDebug("Phase2TrackerDigitizerAlgorithm") << " left-down " << PointLeftDown << " " << mp.x() << " " << mp.y()
494  << " " << IPixLeftDownX << " " << IPixLeftDownY;
495 
496  // Check detector limits to correct for pixels outside range.
497  int numColumns = topol->ncolumns(); // det module number of cols&rows
498  int numRows = topol->nrows();
499 
500  IPixRightUpX = numRows > IPixRightUpX ? IPixRightUpX : numRows - 1;
501  IPixRightUpY = numColumns > IPixRightUpY ? IPixRightUpY : numColumns - 1;
502  IPixLeftDownX = 0 < IPixLeftDownX ? IPixLeftDownX : 0;
503  IPixLeftDownY = 0 < IPixLeftDownY ? IPixLeftDownY : 0;
504 
505  // First integrate charge strips in x
506  hit_map_type x;
507  for (int ix = IPixLeftDownX; ix <= IPixRightUpX; ++ix) { // loop over x index
508  float xLB, LowerBound;
509  // Why is set to 0 if ix=0, does it meen that we accept charge
510  // outside the sensor?
511  if (ix == 0 || SigmaX == 0.) { // skip for surface segemnts
512  LowerBound = 0.;
513  } else {
514  mp = MeasurementPoint(ix, 0.0);
515  xLB = topol->localPosition(mp).x();
516  LowerBound = 1 - ::calcQ((xLB - CloudCenterX) / SigmaX);
517  }
518 
519  float xUB, UpperBound;
520  if (ix == numRows - 1 || SigmaX == 0.) {
521  UpperBound = 1.;
522  } else {
523  mp = MeasurementPoint(ix + 1, 0.0);
524  xUB = topol->localPosition(mp).x();
525  UpperBound = 1. - ::calcQ((xUB - CloudCenterX) / SigmaX);
526  }
527  float TotalIntegrationRange = UpperBound - LowerBound; // get strip
528  x.emplace(ix, TotalIntegrationRange); // save strip integral
529  }
530 
531  // Now integrate strips in y
532  hit_map_type y;
533  for (int iy = IPixLeftDownY; iy <= IPixRightUpY; ++iy) { // loop over y index
534  float yLB, LowerBound;
535  if (iy == 0 || SigmaY == 0.) {
536  LowerBound = 0.;
537  } else {
538  mp = MeasurementPoint(0.0, iy);
539  yLB = topol->localPosition(mp).y();
540  LowerBound = 1. - ::calcQ((yLB - CloudCenterY) / SigmaY);
541  }
542 
543  float yUB, UpperBound;
544  if (iy == numColumns - 1 || SigmaY == 0.) {
545  UpperBound = 1.;
546  } else {
547  mp = MeasurementPoint(0.0, iy + 1);
548  yUB = topol->localPosition(mp).y();
549  UpperBound = 1. - ::calcQ((yUB - CloudCenterY) / SigmaY);
550  }
551 
552  float TotalIntegrationRange = UpperBound - LowerBound;
553  y.emplace(iy, TotalIntegrationRange); // save strip integral
554  }
555 
556  // Get the 2D charge integrals by folding x and y strips
557  for (int ix = IPixLeftDownX; ix <= IPixRightUpX; ++ix) { // loop over x index
558  for (int iy = IPixLeftDownY; iy <= IPixRightUpY; ++iy) { // loop over y index
559  float ChargeFraction = Charge * x[ix] * y[iy];
560  int chanFired = -1;
561  if (ChargeFraction > 0.) {
562  chanFired =
563  pixelFlag_ ? PixelDigi::pixelToChannel(ix, iy) : Phase2TrackerDigi::pixelToChannel(ix, iy); // Get index
564  // Load the amplitude
565  hit_signal[chanFired] += ChargeFraction;
566  }
567 
568  mp = MeasurementPoint(ix, iy);
569  LocalPoint lp = topol->localPosition(mp);
570  int chan = topol->channel(lp);
571 
572  LogDebug("Phase2TrackerDigitizerAlgorithm")
573  << " pixel " << ix << " " << iy << " - "
574  << " " << chanFired << " " << ChargeFraction << " " << mp.x() << " " << mp.y() << " " << lp.x() << " "
575  << lp.y() << " " // givex edge position
576  << chan; // edge belongs to previous ?
577  }
578  }
579  }
580  // Fill the global map with all hit pixels from this event
581  float corr_time = hit.tof() - pixdet->surface().toGlobal(hit.localPosition()).mag() * c_inv;
582  for (auto const& hit_s : hit_signal) {
583  int chan = hit_s.first;
584  theSignal[chan] +=
585  (makeDigiSimLinks_ ? DigitizerUtility::Amplitude(hit_s.second, &hit, hit_s.second, corr_time, hitIndex, tofBin)
586  : DigitizerUtility::Amplitude(hit_s.second, nullptr, hit_s.second));
587  }
588 }

References _signal, LaserClient_cfi::Amplitude, c_inv, officialStyle::chan, Topology::channel(), PixelTestBeamValidation_cfi::Charge, clusterWidth_, GeomDet::geographicalId(), Topology::localPosition(), LogDebug, mag(), makeDigiSimLinks_, Topology::measurementPosition(), PixelTopology::ncolumns(), PixelTopology::nrows(), PixelTopology::pitch(), pixelFlag_, Phase2TrackerDigi::pixelToChannel(), PixelDigi::pixelToChannel(), DetId::rawId(), VtxSmearedParameters_cfi::SigmaX, VtxSmearedParameters_cfi::SigmaY, PixelGeomDetUnit::specificTopology(), GeomDet::surface(), Surface::toGlobal(), findQualityFiles::v, x, PV2DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::x(), y, PV2DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::y().

Referenced by accumulateSimHits().

◆ init()

virtual void Phase2TrackerDigitizerAlgorithm::init ( const edm::EventSetup es)
pure virtual

◆ initializeEvent()

void Phase2TrackerDigitizerAlgorithm::initializeEvent ( CLHEP::HepRandomEngine &  eng)
virtual

Definition at line 737 of file Phase2TrackerDigitizerAlgorithm.cc.

737  {
739  gaussDistribution_ = std::make_unique<CLHEP::RandGaussQ>(eng, 0., theReadoutNoise_);
740  }
741  // Threshold smearing with gaussian distribution:
742  if (addThresholdSmearing_) {
744  std::make_unique<CLHEP::RandGaussQ>(eng, theThresholdInE_Endcap_, theThresholdSmearing_Endcap_);
746  std::make_unique<CLHEP::RandGaussQ>(eng, theThresholdInE_Barrel_, theThresholdSmearing_Barrel_);
747  }
748  rengine_ = &eng;
749  _signal.clear();
750 }

References _signal, addNoise_, addPixelInefficiency_, addThresholdSmearing_, fluctuateCharge_, gaussDistribution_, rengine_, smearedThreshold_Barrel_, smearedThreshold_Endcap_, theReadoutNoise_, theThresholdInE_Barrel_, theThresholdInE_Endcap_, theThresholdSmearing_Barrel_, and theThresholdSmearing_Endcap_.

◆ isAboveThreshold()

virtual bool Phase2TrackerDigitizerAlgorithm::isAboveThreshold ( const DigitizerUtility::SimHitInfo hitInfo,
float  charge,
float  thr 
) const
inlinevirtual

Reimplemented in PixelDigitizerAlgorithm, PSPDigitizerAlgorithm, PSSDigitizerAlgorithm, and SSDigitizerAlgorithm.

Definition at line 76 of file Phase2TrackerDigitizerAlgorithm.h.

76  {
77  return true;
78  }

Referenced by digitize().

◆ loadAccumulator()

void Phase2TrackerDigitizerAlgorithm::loadAccumulator ( uint32_t  detId,
const std::map< int, float > &  accumulator 
)

Definition at line 930 of file Phase2TrackerDigitizerAlgorithm.cc.

930  {
931  auto& theSignal = _signal[detId];
932  // the input channel is always with PixelDigi definition
933  // if needed, that has to be converted to Phase2TrackerDigi convention
934  for (const auto& elem : accumulator) {
935  auto inserted = theSignal.emplace(elem.first, DigitizerUtility::Amplitude(elem.second, nullptr));
936  if (!inserted.second) {
937  throw cms::Exception("LogicError") << "Signal was already set for DetId " << detId;
938  }
939  }
940 }

References _signal, mixOne_premix_on_sim_cfi::accumulator, and Exception.

◆ module_killing_conf()

void Phase2TrackerDigitizerAlgorithm::module_killing_conf ( uint32_t  detID)
protectedvirtual

Definition at line 837 of file Phase2TrackerDigitizerAlgorithm.cc.

837  {
838  bool isbad = false;
839  int detid = detID;
840  std::string Module;
841  for (auto const& det_m : deadModules_) {
842  int Dead_detID = det_m.getParameter<int>("Dead_detID");
843  Module = det_m.getParameter<std::string>("Module");
844  if (detid == Dead_detID) {
845  isbad = true;
846  break;
847  }
848  }
849 
850  if (!isbad)
851  return;
852 
853  signal_map_type& theSignal = _signal[detID]; // check validity
854  for (auto& s : theSignal) {
855  std::pair<int, int> ip;
856  if (pixelFlag_)
857  ip = PixelDigi::channelToPixel(s.first);
858  else
859  ip = Phase2TrackerDigi::channelToPixel(s.first); //get pixel pos
860 
861  if (Module == "whole" || (Module == "tbmA" && ip.first >= 80 && ip.first <= 159) ||
862  (Module == "tbmB" && ip.first <= 79))
863  s.second.set(0.);
864  }
865 }

References _signal, Phase2TrackerDigi::channelToPixel(), PixelDigi::channelToPixel(), deadModules_, pixelFlag_, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by digitize().

◆ module_killing_DB()

void Phase2TrackerDigitizerAlgorithm::module_killing_DB ( const Phase2TrackerGeomDetUnit pixdet)
protectedvirtual

Definition at line 867 of file Phase2TrackerDigitizerAlgorithm.cc.

867  {
868  bool isbad = false;
869  uint32_t detID = pixdet->geographicalId().rawId();
870  int ncol = pixdet->specificTopology().ncolumns();
871  if (ncol < 0)
872  return;
873  std::vector<SiPixelQuality::disabledModuleType> disabledModules = siPixelBadModule_->getBadComponentList();
874 
876  for (size_t id = 0; id < disabledModules.size(); id++) {
877  if (detID == disabledModules[id].DetID) {
878  isbad = true;
879  badmodule = disabledModules[id];
880  break;
881  }
882  }
883 
884  if (!isbad)
885  return;
886 
887  signal_map_type& theSignal = _signal[detID]; // check validity
888  if (badmodule.errorType == 0) { // this is a whole dead module.
889  for (auto& s : theSignal)
890  s.second.set(0.); // reset amplitude
891  } else { // all other module types: half-modules and single ROCs.
892  // Get Bad ROC position:
893  // follow the example of getBadRocPositions in CondFormats/SiPixelObjects/src/SiPixelQuality.cc
894  std::vector<GlobalPixel> badrocpositions;
895  for (size_t j = 0; j < static_cast<size_t>(ncol); j++) {
896  if (siPixelBadModule_->IsRocBad(detID, j)) {
897  std::vector<CablingPathToDetUnit> path = fedCablingMap_->pathToDetUnit(detID);
898  for (auto const& p : path) {
899  const PixelROC* myroc = fedCablingMap_->findItem(p);
900  if (myroc->idInDetUnit() == j) {
901  LocalPixel::RocRowCol local = {39, 25}; //corresponding to center of ROC row, col
902  GlobalPixel global = myroc->toGlobal(LocalPixel(local));
903  badrocpositions.push_back(global);
904  break;
905  }
906  }
907  }
908  }
909 
910  for (auto& s : theSignal) {
911  std::pair<int, int> ip;
912  if (pixelFlag_)
913  ip = PixelDigi::channelToPixel(s.first);
914  else
916 
917  for (auto const& p : badrocpositions) {
918  for (auto& k : badPixels_) {
919  if (p.row == k.getParameter<int>("row") && ip.first == k.getParameter<int>("row") &&
920  std::abs(ip.second - p.col) < k.getParameter<int>("col")) {
921  s.second.set(0.);
922  }
923  }
924  }
925  }
926  }
927 }

References _signal, funct::abs(), badPixels_, Phase2TrackerDigi::channelToPixel(), PixelDigi::channelToPixel(), SiPixelQuality::disabledModuleType::errorType, fedCablingMap_, SiPixelFedCablingMap::findItem(), GeomDet::geographicalId(), SiPixelQuality::getBadComponentList(), triggerObjects_cff::id, sipixelobjects::PixelROC::idInDetUnit(), SiPixelQuality::IsRocBad(), dqmiolumiharvest::j, dqmdumpme::k, DTRecHitClients_cfi::local, PixelTopology::ncolumns(), AlCaHLTBitMon_ParallelJobs::p, castor_dqm_sourceclient_file_cfg::path, SiPixelFedCablingMap::pathToDetUnit(), pixelFlag_, DetId::rawId(), alignCSCRings::s, siPixelBadModule_, PixelGeomDetUnit::specificTopology(), and sipixelobjects::PixelROC::toGlobal().

Referenced by digitize().

◆ pixel_inefficiency()

void Phase2TrackerDigitizerAlgorithm::pixel_inefficiency ( const SubdetEfficiencies eff,
const Phase2TrackerGeomDetUnit pixdet,
const TrackerTopology tTopo 
)
protectedvirtual

Definition at line 704 of file Phase2TrackerDigitizerAlgorithm.cc.

706  {
707  uint32_t detID = pixdet->geographicalId().rawId();
708  signal_map_type& theSignal = _signal[detID]; // check validity
709 
710  // Predefined efficiencies
711  float subdetEfficiency = 1.0;
712 
713  // setup the chip indices conversion
714  uint32_t Subid = DetId(detID).subdetId();
715  if (Subid == PixelSubdetector::PixelBarrel || Subid == StripSubdetector::TOB) { // barrel layers
716  uint32_t layerIndex = tTopo->pxbLayer(detID);
717  if (layerIndex - 1 < eff.barrel_efficiencies.size())
718  subdetEfficiency = eff.barrel_efficiencies[layerIndex - 1];
719  } else { // forward disks
720  uint32_t diskIndex = 2 * tTopo->pxfDisk(detID) - tTopo->pxfSide(detID);
721  if (diskIndex - 1 < eff.endcap_efficiencies.size())
722  subdetEfficiency = eff.endcap_efficiencies[diskIndex - 1];
723  }
724 
725  LogDebug("Phase2TrackerDigitizerAlgorithm") << " enter pixel_inefficiency " << subdetEfficiency;
726 
727  // Now loop again over pixels to kill some of them.
728  // Loop over hits, amplitude in electrons, channel = coded row,col
729  for (auto& s : theSignal) {
730  float rand = rengine_->flat();
731  if (rand > subdetEfficiency) {
732  // make amplitude =0
733  s.second.set(0.); // reset amplitude
734  }
735  }
736 }

References _signal, Phase2TrackerDigitizerAlgorithm::SubdetEfficiencies::barrel_efficiencies, Phase2TrackerDigitizerAlgorithm::SubdetEfficiencies::endcap_efficiencies, GeomDet::geographicalId(), LogDebug, PixelSubdetector::PixelBarrel, TrackerTopology::pxbLayer(), TrackerTopology::pxfDisk(), TrackerTopology::pxfSide(), DetId::rawId(), rengine_, alignCSCRings::s, DetId::subdetId(), and StripSubdetector::TOB.

Referenced by digitize().

◆ pixel_inefficiency_db()

void Phase2TrackerDigitizerAlgorithm::pixel_inefficiency_db ( uint32_t  detID)
protectedvirtual

Definition at line 816 of file Phase2TrackerDigitizerAlgorithm.cc.

816  {
817  signal_map_type& theSignal = _signal[detID]; // check validity
818 
819  // Loop over hit pixels, amplitude in electrons, channel = coded row,col
820  for (auto& s : theSignal) {
821  std::pair<int, int> ip;
822  if (pixelFlag_)
823  ip = PixelDigi::channelToPixel(s.first); //get pixel pos
824  else
825  ip = Phase2TrackerDigi::channelToPixel(s.first); //get pixel pos
826 
827  int row = ip.first; // X in row
828  int col = ip.second; // Y is in col
829  // transform to ROC index coordinates
830  if (theSiPixelGainCalibrationService_->isDead(detID, col, row))
831  s.second.set(0.); // reset amplitude
832  }
833 }

References _signal, Phase2TrackerDigi::channelToPixel(), PixelDigi::channelToPixel(), cuy::col, pixelFlag_, alignCSCRings::s, and theSiPixelGainCalibrationService_.

Referenced by digitize().

◆ primary_ionization()

std::vector< DigitizerUtility::EnergyDepositUnit > Phase2TrackerDigitizerAlgorithm::primary_ionization ( const PSimHit hit) const
protectedvirtual

Definition at line 231 of file Phase2TrackerDigitizerAlgorithm.cc.

232  {
233  // Straight line approximation for trajectory inside active media
234  constexpr float SegmentLength = 0.0010; // in cm (10 microns)
235  // Get the 3D segment direction vector
236  LocalVector direction = hit.exitPoint() - hit.entryPoint();
237 
238  float eLoss = hit.energyLoss(); // Eloss in GeV
239  float length = direction.mag(); // Track length in Silicon
240 
241  int NumberOfSegments = static_cast<int>(length / SegmentLength); // Number of segments
242  if (NumberOfSegments < 1)
243  NumberOfSegments = 1;
244  LogDebug("Phase2TrackerDigitizerAlgorithm")
245  << "enter primary_ionzation " << NumberOfSegments << " shift = " << hit.exitPoint().x() - hit.entryPoint().x()
246  << " " << hit.exitPoint().y() - hit.entryPoint().y() << " " << hit.exitPoint().z() - hit.entryPoint().z() << " "
247  << hit.particleType() << " " << hit.pabs();
248 
249  std::vector<float> elossVector;
250  elossVector.reserve(NumberOfSegments);
251  if (fluctuateCharge_) {
252  // Generate fluctuated charge points
253  elossVector = fluctuateEloss(hit.particleType(), hit.pabs(), eLoss, length, NumberOfSegments);
254  } else {
255  float averageEloss = eLoss / NumberOfSegments;
256  elossVector.resize(NumberOfSegments, averageEloss);
257  }
258 
259  std::vector<DigitizerUtility::EnergyDepositUnit> ionization_points;
260  ionization_points.reserve(NumberOfSegments); // set size
261  // loop over segments
262  for (size_t i = 0; i < elossVector.size(); ++i) {
263  // Divide the segment into equal length subsegments
264  Local3DPoint point = hit.entryPoint() + ((i + 0.5) / NumberOfSegments) * direction;
265  float energy = elossVector[i] / GeVperElectron_; // Convert charge to elec.
266 
267  DigitizerUtility::EnergyDepositUnit edu(energy, point); // define position,energy point
268  ionization_points.push_back(edu); // save
269  LogDebug("Phase2TrackerDigitizerAlgorithm")
270  << i << " " << edu.x() << " " << edu.y() << " " << edu.z() << " " << edu.energy();
271  }
272  return ionization_points;
273 }

References simKBmtfDigis_cfi::eLoss, HCALHighEnergyHPDFilter_cfi::energy, DigitizerUtility::EnergyDepositUnit::energy(), fluctuateCharge_, fluctuateEloss(), GeVperElectron_, mps_fire::i, LogDebug, PV3DBase< T, PVType, FrameType >::mag(), point, DigitizerUtility::EnergyDepositUnit::x(), hit::x, DigitizerUtility::EnergyDepositUnit::y(), hit::y, DigitizerUtility::EnergyDepositUnit::z(), and hit::z.

Referenced by accumulateSimHits().

◆ select_hit()

virtual bool Phase2TrackerDigitizerAlgorithm::select_hit ( const PSimHit hit,
double  tCorr,
double &  sigScale 
) const
inlinevirtual

Member Data Documentation

◆ _signal

signalMaps Phase2TrackerDigitizerAlgorithm::_signal
protected

◆ addNoise_

const bool Phase2TrackerDigitizerAlgorithm::addNoise_
protected

Definition at line 158 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by digitize(), and initializeEvent().

◆ addNoisyPixels_

const bool Phase2TrackerDigitizerAlgorithm::addNoisyPixels_
protected

Definition at line 159 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by digitize().

◆ addPixelInefficiency_

const bool Phase2TrackerDigitizerAlgorithm::addPixelInefficiency_
protected

◆ addThresholdSmearing_

const bool Phase2TrackerDigitizerAlgorithm::addThresholdSmearing_
protected

Definition at line 165 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by digitize(), and initializeEvent().

◆ addXtalk_

const bool Phase2TrackerDigitizerAlgorithm::addXtalk_
protected

Definition at line 127 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by digitize().

◆ alpha2Order_

const bool Phase2TrackerDigitizerAlgorithm::alpha2Order_
protected

Definition at line 126 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by drift(), and DriftDirection().

◆ badPixels_

Parameters Phase2TrackerDigitizerAlgorithm::badPixels_
protected

Definition at line 179 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by module_killing_DB().

◆ clusterWidth_

const float Phase2TrackerDigitizerAlgorithm::clusterWidth_
protected

Definition at line 133 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by induce_signal().

◆ deadModules_

const Parameters Phase2TrackerDigitizerAlgorithm::deadModules_
protected

Definition at line 118 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by module_killing_conf().

◆ fedCablingMap_

const SiPixelFedCablingMap* Phase2TrackerDigitizerAlgorithm::fedCablingMap_
protected

Definition at line 94 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by module_killing_DB().

◆ fluctuate_

const std::unique_ptr<SiG4UniversalFluctuation> Phase2TrackerDigitizerAlgorithm::fluctuate_
protected

Definition at line 182 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by fluctuateEloss().

◆ fluctuateCharge_

const bool Phase2TrackerDigitizerAlgorithm::fluctuateCharge_
protected

Definition at line 160 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by initializeEvent(), and primary_ionization().

◆ gaussDistribution_

std::unique_ptr<CLHEP::RandGaussQ> Phase2TrackerDigitizerAlgorithm::gaussDistribution_
protected

Definition at line 223 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by add_noise(), and initializeEvent().

◆ geom_

const TrackerGeometry* Phase2TrackerDigitizerAlgorithm::geom_
protected

Definition at line 95 of file Phase2TrackerDigitizerAlgorithm.h.

◆ GeVperElectron_

const float Phase2TrackerDigitizerAlgorithm::GeVperElectron_
protected

◆ interstripCoupling_

const float Phase2TrackerDigitizerAlgorithm::interstripCoupling_
protected

Definition at line 128 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by add_cross_talk().

◆ makeDigiSimLinks_

const bool Phase2TrackerDigitizerAlgorithm::makeDigiSimLinks_
protected

◆ pixelFlag_

bool Phase2TrackerDigitizerAlgorithm::pixelFlag_
protected

◆ pseudoRadDamage_

const double Phase2TrackerDigitizerAlgorithm::pseudoRadDamage_
protected

Definition at line 168 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by Pixel3DDigitizerAlgorithm::drift(), and drift().

◆ pseudoRadDamageRadius_

const double Phase2TrackerDigitizerAlgorithm::pseudoRadDamageRadius_
protected

Definition at line 169 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by Pixel3DDigitizerAlgorithm::drift(), and drift().

◆ rengine_

CLHEP::HepRandomEngine* Phase2TrackerDigitizerAlgorithm::rengine_
protected

◆ Sigma0_

const float Phase2TrackerDigitizerAlgorithm::Sigma0_
protected

Definition at line 129 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by drift().

◆ SigmaCoeff_

const float Phase2TrackerDigitizerAlgorithm::SigmaCoeff_
protected

Definition at line 130 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by drift().

◆ siPhase2OTLorentzAngle_

const SiPhase2OuterTrackerLorentzAngle* Phase2TrackerDigitizerAlgorithm::siPhase2OTLorentzAngle_
protected

Definition at line 88 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by DriftDirection().

◆ siPixelBadModule_

const SiPixelQuality* Phase2TrackerDigitizerAlgorithm::siPixelBadModule_
protected

Definition at line 91 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by module_killing_DB().

◆ siPixelLorentzAngle_

const SiPixelLorentzAngle* Phase2TrackerDigitizerAlgorithm::siPixelLorentzAngle_
protected

Definition at line 85 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by DriftDirection().

◆ smearedThreshold_Barrel_

std::unique_ptr<CLHEP::RandGaussQ> Phase2TrackerDigitizerAlgorithm::smearedThreshold_Barrel_
protected

Definition at line 227 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by digitize(), and initializeEvent().

◆ smearedThreshold_Endcap_

std::unique_ptr<CLHEP::RandGaussQ> Phase2TrackerDigitizerAlgorithm::smearedThreshold_Endcap_
protected

Definition at line 226 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by digitize(), and initializeEvent().

◆ subdetEfficiencies_

const SubdetEfficiencies Phase2TrackerDigitizerAlgorithm::subdetEfficiencies_
protected

Definition at line 220 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by digitize().

◆ tanLorentzAnglePerTesla_Barrel_

const float Phase2TrackerDigitizerAlgorithm::tanLorentzAnglePerTesla_Barrel_
protected

Definition at line 155 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by DriftDirection().

◆ tanLorentzAnglePerTesla_Endcap_

const float Phase2TrackerDigitizerAlgorithm::tanLorentzAnglePerTesla_Endcap_
protected

Definition at line 154 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by DriftDirection().

◆ theAdcFullScale_

const int Phase2TrackerDigitizerAlgorithm::theAdcFullScale_
protected

◆ theElectronPerADC_

const float Phase2TrackerDigitizerAlgorithm::theElectronPerADC_
protected

◆ theHIPThresholdInE_Barrel_

const double Phase2TrackerDigitizerAlgorithm::theHIPThresholdInE_Barrel_
protected

Definition at line 150 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by digitize().

◆ theHIPThresholdInE_Endcap_

const double Phase2TrackerDigitizerAlgorithm::theHIPThresholdInE_Endcap_
protected

Definition at line 149 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by digitize().

◆ theNoiseInElectrons_

const float Phase2TrackerDigitizerAlgorithm::theNoiseInElectrons_
protected

Definition at line 139 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by add_noisy_cells().

◆ theNoiser_

const std::unique_ptr<GaussianTailNoiseGenerator> Phase2TrackerDigitizerAlgorithm::theNoiser_
protected

Definition at line 183 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by add_noisy_cells().

◆ thePhase2ReadoutMode_

const int Phase2TrackerDigitizerAlgorithm::thePhase2ReadoutMode_
protected

Definition at line 136 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by convertSignalToAdc().

◆ theReadoutNoise_

const float Phase2TrackerDigitizerAlgorithm::theReadoutNoise_
protected

Definition at line 140 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by initializeEvent().

◆ theSiPixelGainCalibrationService_

const std::unique_ptr<SiPixelGainCalibrationOfflineSimService> Phase2TrackerDigitizerAlgorithm::theSiPixelGainCalibrationService_
protected

Definition at line 210 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by pixel_inefficiency_db().

◆ theThresholdInE_Barrel_

const float Phase2TrackerDigitizerAlgorithm::theThresholdInE_Barrel_
protected

◆ theThresholdInE_Endcap_

const float Phase2TrackerDigitizerAlgorithm::theThresholdInE_Endcap_
protected

◆ theThresholdSmearing_Barrel_

const double Phase2TrackerDigitizerAlgorithm::theThresholdSmearing_Barrel_
protected

Definition at line 147 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by initializeEvent().

◆ theThresholdSmearing_Endcap_

const double Phase2TrackerDigitizerAlgorithm::theThresholdSmearing_Endcap_
protected

Definition at line 146 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by initializeEvent().

◆ theTofLowerCut_

const float Phase2TrackerDigitizerAlgorithm::theTofLowerCut_
protected

◆ theTofUpperCut_

const float Phase2TrackerDigitizerAlgorithm::theTofUpperCut_
protected

◆ tMax_

const double Phase2TrackerDigitizerAlgorithm::tMax_
protected

◆ use_deadmodule_DB_

const bool Phase2TrackerDigitizerAlgorithm::use_deadmodule_DB_
protected

◆ use_ineff_from_db_

const bool Phase2TrackerDigitizerAlgorithm::use_ineff_from_db_
protected

Definition at line 113 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by digitize().

◆ use_LorentzAngle_DB_

const bool Phase2TrackerDigitizerAlgorithm::use_LorentzAngle_DB_
protected

◆ use_module_killing_

const bool Phase2TrackerDigitizerAlgorithm::use_module_killing_
protected

Definition at line 114 of file Phase2TrackerDigitizerAlgorithm.h.

Referenced by digitize().

Vector3DBase< float, LocalTag >
Phase2TrackerDigitizerAlgorithm::addXtalk_
const bool addXtalk_
Definition: Phase2TrackerDigitizerAlgorithm.h:127
Phase2TrackerDigitizerAlgorithm::theNoiser_
const std::unique_ptr< GaussianTailNoiseGenerator > theNoiser_
Definition: Phase2TrackerDigitizerAlgorithm.h:183
Phase2TrackerDigitizerAlgorithm::signal_map_type
std::map< int, DigitizerUtility::Amplitude, std::less< int > > signal_map_type
Definition: Phase2TrackerDigitizerAlgorithm.h:103
Point2DBase
Definition: Point2DBase.h:9
Phase2TrackerDigitizerAlgorithm::makeDigiSimLinks_
const bool makeDigiSimLinks_
Definition: Phase2TrackerDigitizerAlgorithm.h:111
DDAxes::y
Phase2TrackerDigitizerAlgorithm::addNoisyPixels_
const bool addNoisyPixels_
Definition: Phase2TrackerDigitizerAlgorithm.h:159
Phase2TrackerDigitizerAlgorithm::add_noise
virtual void add_noise(const Phase2TrackerGeomDetUnit *pixdet)
Definition: Phase2TrackerDigitizerAlgorithm.cc:594
Phase2TrackerDigitizerAlgorithm::fluctuateCharge_
const bool fluctuateCharge_
Definition: Phase2TrackerDigitizerAlgorithm.h:160
Phase2TrackerDigitizerAlgorithm::theThresholdInE_Barrel_
const float theThresholdInE_Barrel_
Definition: Phase2TrackerDigitizerAlgorithm.h:144
mps_fire.i
i
Definition: mps_fire.py:428
Phase2TrackerDigitizerAlgorithm::pseudoRadDamage_
const double pseudoRadDamage_
Definition: Phase2TrackerDigitizerAlgorithm.h:168
Phase2TrackerDigitizerAlgorithm::fluctuateEloss
virtual std::vector< float > fluctuateEloss(int particleId, float momentum, float eloss, float length, int NumberOfSegments) const
Definition: Phase2TrackerDigitizerAlgorithm.cc:280
Phase2TrackerDigitizerAlgorithm::theThresholdSmearing_Barrel_
const double theThresholdSmearing_Barrel_
Definition: Phase2TrackerDigitizerAlgorithm.h:147
PixelSubdetector::PixelEndcap
Definition: PixelSubdetector.h:11
Phase2TrackerDigitizerAlgorithm::subdetEfficiencies_
const SubdetEfficiencies subdetEfficiencies_
Definition: Phase2TrackerDigitizerAlgorithm.h:220
PixelSubdetector::PixelBarrel
Definition: PixelSubdetector.h:11
L1EGammaCrystalsEmulatorProducer_cfi.scale
scale
Definition: L1EGammaCrystalsEmulatorProducer_cfi.py:10
hit::y
double y
Definition: SiStripHitEffFromCalibTree.cc:90
Phase2TrackerDigitizerAlgorithm::pixel_inefficiency_db
virtual void pixel_inefficiency_db(uint32_t detID)
Definition: Phase2TrackerDigitizerAlgorithm.cc:816
Phase2TrackerDigitizerAlgorithm::theTofUpperCut_
const float theTofUpperCut_
Definition: Phase2TrackerDigitizerAlgorithm.h:153
TrackerTopology::pxfSide
unsigned int pxfSide(const DetId &id) const
Definition: TrackerTopology.h:192
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
VtxSmearedParameters_cfi.SigmaX
SigmaX
Definition: VtxSmearedParameters_cfi.py:22
DigitizerUtility
Definition: DigitizerUtility.h:12
min
T min(T a, T b)
Definition: MathUtil.h:58
Phase2TrackerDigitizerAlgorithm::theNoiseInElectrons_
const float theNoiseInElectrons_
Definition: Phase2TrackerDigitizerAlgorithm.h:139
Phase2TrackerDigitizerAlgorithm::addThresholdSmearing_
const bool addThresholdSmearing_
Definition: Phase2TrackerDigitizerAlgorithm.h:165
cuy.col
col
Definition: cuy.py:1009
GaussianTailNoiseGenerator
Definition: GaussianTailNoiseGenerator.h:24
Phase2TrackerDigitizerAlgorithm::use_module_killing_
const bool use_module_killing_
Definition: Phase2TrackerDigitizerAlgorithm.h:114
SiPixelQuality::disabledModuleType
Definition: SiPixelQuality.h:29
PixelTopology::pitch
virtual std::pair< float, float > pitch() const =0
Phase2TrackerDigitizerAlgorithm::Sigma0_
const float Sigma0_
Definition: Phase2TrackerDigitizerAlgorithm.h:129
Phase2TrackerDigitizerAlgorithm::DriftDirection
LocalVector DriftDirection(const Phase2TrackerGeomDetUnit *pixdet, const GlobalVector &bfield, const DetId &detId) const
Definition: Phase2TrackerDigitizerAlgorithm.cc:760
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
Phase2TrackerDigitizerAlgorithm::use_LorentzAngle_DB_
const bool use_LorentzAngle_DB_
Definition: Phase2TrackerDigitizerAlgorithm.h:116
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
SiPixelQuality::disabledModuleType::errorType
int errorType
Definition: SiPixelQuality.h:31
Topology::localPosition
virtual LocalPoint localPosition(const MeasurementPoint &) const =0
Phase2TrackerDigitizerAlgorithm::module_killing_conf
virtual void module_killing_conf(uint32_t detID)
Definition: Phase2TrackerDigitizerAlgorithm.cc:837
Phase2TrackerDigitizerAlgorithm::theThresholdSmearing_Endcap_
const double theThresholdSmearing_Endcap_
Definition: Phase2TrackerDigitizerAlgorithm.h:146
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
DDAxes::x
DigitizerUtility::Amplitude::simInfoList
const std::vector< std::pair< float, std::unique_ptr< SimHitInfo > > > & simInfoList() const
Definition: DigitizerUtility.h:49
align::LocalPoint
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
findQualityFiles.v
v
Definition: findQualityFiles.py:179
simKBmtfDigis_cfi.eLoss
eLoss
Definition: simKBmtfDigis_cfi.py:9
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
sipixelobjects::LocalPixel
identify pixel inside single ROC
Definition: LocalPixel.h:7
TrackerTopology::pxbLayer
unsigned int pxbLayer(const DetId &id) const
Definition: TrackerTopology.h:144
hit::x
double x
Definition: SiStripHitEffFromCalibTree.cc:89
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
Phase2TrackerDigitizerAlgorithm::alpha2Order_
const bool alpha2Order_
Definition: Phase2TrackerDigitizerAlgorithm.h:126
SiPixelLorentzAngle::getLorentzAngle
float getLorentzAngle(const uint32_t &) const
Definition: SiPixelLorentzAngle.cc:14
DigitizerUtility::EnergyDepositUnit
Definition: DigitizerUtility.h:72
Phase2TrackerDigitizerAlgorithm::theTofLowerCut_
const float theTofLowerCut_
Definition: Phase2TrackerDigitizerAlgorithm.h:152
Phase2TrackerDigitizerAlgorithm::siPixelLorentzAngle_
const SiPixelLorentzAngle * siPixelLorentzAngle_
Definition: Phase2TrackerDigitizerAlgorithm.h:85
DetId
Definition: DetId.h:17
Phase2TrackerDigitizerAlgorithm::module_killing_DB
virtual void module_killing_DB(const Phase2TrackerGeomDetUnit *pixdet)
Definition: Phase2TrackerDigitizerAlgorithm.cc:867
SiPhase2OuterTrackerLorentzAngle::getLorentzAngle
float getLorentzAngle(const uint32_t &) const
Definition: SiPhase2OuterTrackerLorentzAngle.cc:15
GeomDet::surface
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
alignCSCRings.s
s
Definition: alignCSCRings.py:92
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
sipixelobjects::GlobalPixel
global coordinates (row and column in DetUnit, as in PixelDigi)
Definition: GlobalPixel.h:6
Phase2TrackerDigitizerAlgorithm::theAdcFullScale_
const int theAdcFullScale_
Definition: Phase2TrackerDigitizerAlgorithm.h:138
Phase2TrackerDigitizerAlgorithm::tanLorentzAnglePerTesla_Endcap_
const float tanLorentzAnglePerTesla_Endcap_
Definition: Phase2TrackerDigitizerAlgorithm.h:154
Phase2TrackerDigitizerAlgorithm::pseudoRadDamageRadius_
const double pseudoRadDamageRadius_
Definition: Phase2TrackerDigitizerAlgorithm.h:169
DigitizerUtility::Amplitude
Definition: DigitizerUtility.h:33
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
Topology::channel
virtual int channel(const LocalPoint &p) const =0
Surface::bounds
const Bounds & bounds() const
Definition: Surface.h:87
mps_fire.end
end
Definition: mps_fire.py:242
Surface::toGlobal
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:79
Phase2TrackerDigitizerAlgorithm::induce_signal
virtual void induce_signal(const PSimHit &hit, const size_t hitIndex, const uint32_t tofBin, const Phase2TrackerGeomDetUnit *pixdet, const std::vector< DigitizerUtility::SignalPoint > &collection_points)
Definition: Phase2TrackerDigitizerAlgorithm.cc:435
Phase2TrackerDigitizerAlgorithm::addNoise_
const bool addNoise_
Definition: Phase2TrackerDigitizerAlgorithm.h:158
SiPixelFedCablingMap::pathToDetUnit
std::vector< sipixelobjects::CablingPathToDetUnit > pathToDetUnit(uint32_t rawDetId) const final
Definition: SiPixelFedCablingMap.cc:150
PixelTopology::ncolumns
virtual int ncolumns() const =0
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
HcalDetIdTransform::transform
unsigned transform(const HcalDetId &id, unsigned transformCode)
Definition: HcalDetIdTransform.cc:7
Phase2TrackerDigitizerAlgorithm::smearedThreshold_Barrel_
std::unique_ptr< CLHEP::RandGaussQ > smearedThreshold_Barrel_
Definition: Phase2TrackerDigitizerAlgorithm.h:227
SiPixelGainCalibrationOfflineSimService
Definition: SiPixelGainCalibrationOfflineSimService.h:22
dqmdumpme.k
k
Definition: dqmdumpme.py:60
Phase2TrackerDigitizerAlgorithm::fedCablingMap_
const SiPixelFedCablingMap * fedCablingMap_
Definition: Phase2TrackerDigitizerAlgorithm.h:94
PixelDigi::pixelToChannel
static int pixelToChannel(int row, int col)
Definition: PixelDigi.h:75
Point3DBase< float, LocalTag >
PixelTopology
Definition: PixelTopology.h:10
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:125
particleFlowDisplacedVertex_cfi.ratio
ratio
Definition: particleFlowDisplacedVertex_cfi.py:93
hit::z
double z
Definition: SiStripHitEffFromCalibTree.cc:91
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
pixelgpudetails::pixelToChannel
constexpr uint32_t pixelToChannel(int row, int col)
Definition: SiPixelRawToClusterGPUKernel.h:113
edm::ParameterSet::exists
bool exists(std::string const &parameterName) const
checks if a parameter exists
Definition: ParameterSet.cc:681
MeasurementPoint
Measurement2DPoint MeasurementPoint
Measurement points are two-dimensional by default.
Definition: MeasurementPoint.h:12
funct::true
true
Definition: Factorize.h:173
GeomDet::geographicalId
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:64
Bounds::thickness
virtual float thickness() const =0
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
fastTrackerRecHitType::isPixel
bool isPixel(HitType hitType)
Definition: FastTrackerRecHit.h:37
Phase2TrackerDigitizerAlgorithm::pixelFlag_
bool pixelFlag_
Definition: Phase2TrackerDigitizerAlgorithm.h:235
Phase2TrackerDigitizerAlgorithm::tMax_
const double tMax_
Definition: Phase2TrackerDigitizerAlgorithm.h:176
PV2DBase::y
T y() const
Definition: PV2DBase.h:44
Phase2TrackerDigitizerAlgorithm::primary_ionization
virtual std::vector< DigitizerUtility::EnergyDepositUnit > primary_ionization(const PSimHit &hit) const
Definition: Phase2TrackerDigitizerAlgorithm.cc:231
PixelGeomDetUnit::specificTopology
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
Definition: PixelGeomDetUnit.cc:17
PV2DBase::x
T x() const
Definition: PV2DBase.h:43
Phase2TrackerDigitizerAlgorithm::drift
virtual std::vector< DigitizerUtility::SignalPoint > drift(const PSimHit &hit, const Phase2TrackerGeomDetUnit *pixdet, const GlobalVector &bfield, const std::vector< DigitizerUtility::EnergyDepositUnit > &ionization_points) const
Definition: Phase2TrackerDigitizerAlgorithm.cc:337
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
LocalVector
Local3DVector LocalVector
Definition: LocalVector.h:12
Phase2TrackerDigitizerAlgorithm::theHIPThresholdInE_Endcap_
const double theHIPThresholdInE_Endcap_
Definition: Phase2TrackerDigitizerAlgorithm.h:149
TrackerTopology::pxfDisk
unsigned int pxfDisk(const DetId &id) const
Definition: TrackerTopology.h:446
M_PI
#define M_PI
Definition: BXVectorInputProducer.cc:49
Phase2TrackerDigitizerAlgorithm::gaussDistribution_
std::unique_ptr< CLHEP::RandGaussQ > gaussDistribution_
Definition: Phase2TrackerDigitizerAlgorithm.h:223
Phase2TrackerDigi::channelToPixel
static std::pair< unsigned int, unsigned int > channelToPixel(unsigned int ch)
Definition: Phase2TrackerDigi.h:39
Phase2TrackerDigitizerAlgorithm::Frame
GloballyPositioned< double > Frame
Definition: Phase2TrackerDigitizerAlgorithm.h:105
Phase2TrackerDigitizerAlgorithm::theElectronPerADC_
const float theElectronPerADC_
Definition: Phase2TrackerDigitizerAlgorithm.h:137
Phase2TrackerDigitizerAlgorithm::GeVperElectron_
const float GeVperElectron_
Definition: Phase2TrackerDigitizerAlgorithm.h:123
Topology::measurementPosition
virtual MeasurementPoint measurementPosition(const LocalPoint &) const =0
Phase2TrackerDigitizerAlgorithm::convertSignalToAdc
int convertSignalToAdc(uint32_t detID, float signal_in_elec, float threshold)
Definition: Phase2TrackerDigitizerAlgorithm.cc:1017
sipixelobjects::PixelROC::toGlobal
GlobalPixel toGlobal(const LocalPixel &loc) const
Definition: PixelROC.h:55
GeomDet::specificSurface
const Plane & specificSurface() const
Same as surface(), kept for backward compatibility.
Definition: GeomDet.h:40
gpuVertexFinder::noise
__shared__ int noise
Definition: gpuFitVertices.h:50
Phase2TrackerDigitizerAlgorithm::siPixelBadModule_
const SiPixelQuality * siPixelBadModule_
Definition: Phase2TrackerDigitizerAlgorithm.h:91
Phase2TrackerDigitizerAlgorithm::theThresholdInE_Endcap_
const float theThresholdInE_Endcap_
Definition: Phase2TrackerDigitizerAlgorithm.h:143
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Phase2TrackerDigitizerAlgorithm::deadModules_
const Parameters deadModules_
Definition: Phase2TrackerDigitizerAlgorithm.h:118
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
SiPixelQuality::getBadComponentList
const std::vector< disabledModuleType > getBadComponentList() const
Definition: SiPixelQuality.h:100
DigitizerUtility::SimHitInfo
Definition: DigitizerUtility.h:14
Phase2TrackerDigitizerAlgorithm::use_deadmodule_DB_
const bool use_deadmodule_DB_
Definition: Phase2TrackerDigitizerAlgorithm.h:115
PV3DBase::mag
T mag() const
Definition: PV3DBase.h:64
Phase2TrackerDigitizerAlgorithm::_signal
signalMaps _signal
Definition: Phase2TrackerDigitizerAlgorithm.h:109
Phase2TrackerDigitizerAlgorithm::tanLorentzAnglePerTesla_Barrel_
const float tanLorentzAnglePerTesla_Barrel_
Definition: Phase2TrackerDigitizerAlgorithm.h:155
GloballyPositioned::position
const PositionType & position() const
Definition: GloballyPositioned.h:36
mixOne_premix_on_sim_cfi.accumulator
accumulator
Definition: mixOne_premix_on_sim_cfi.py:167
mag
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Definition: Basic3DVectorLD.h:127
Phase2TrackerDigi
Definition: Phase2TrackerDigi.h:12
sipixelobjects::PixelROC
Definition: PixelROC.h:23
LaserClient_cfi.Amplitude
Amplitude
Definition: LaserClient_cfi.py:39
Phase2TrackerDigitizerAlgorithm::badPixels_
Parameters badPixels_
Definition: Phase2TrackerDigitizerAlgorithm.h:179
Phase2TrackerDigitizerAlgorithm::add_noisy_cells
virtual void add_noisy_cells(const Phase2TrackerGeomDetUnit *pixdet, float thePixelThreshold)
Definition: Phase2TrackerDigitizerAlgorithm.cc:659
heppy_batch.val
val
Definition: heppy_batch.py:351
Phase2TrackerDigitizerAlgorithm::add_cross_talk
virtual void add_cross_talk(const Phase2TrackerGeomDetUnit *pixdet)
Definition: Phase2TrackerDigitizerAlgorithm.cc:610
std
Definition: JetResolutionObject.h:76
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
VtxSmearedParameters_cfi.SigmaY
SigmaY
Definition: VtxSmearedParameters_cfi.py:21
sipixelobjects::LocalPixel::RocRowCol
row and collumn in ROC representation
Definition: LocalPixel.h:13
c_inv
constexpr double c_inv
Definition: Phase2TrackerDigitizerAlgorithm.h:52
Phase2TrackerDigitizerAlgorithm::clusterWidth_
const float clusterWidth_
Definition: Phase2TrackerDigitizerAlgorithm.h:133
Phase2TrackerDigitizerAlgorithm::select_hit
virtual bool select_hit(const PSimHit &hit, double tCorr, double &sigScale) const
Definition: Phase2TrackerDigitizerAlgorithm.h:75
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
officialStyle.chan
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi....
Definition: officialStyle.py:106
DigitizerUtility::SignalPoint
Definition: DigitizerUtility.h:93
Exception
Definition: hltDiff.cc:245
DigitizerUtility::DigiSimInfo
Definition: DigitizerUtility.h:124
Phase2TrackerDigitizerAlgorithm::theReadoutNoise_
const float theReadoutNoise_
Definition: Phase2TrackerDigitizerAlgorithm.h:140
StripSubdetector::TOB
static constexpr auto TOB
Definition: StripSubdetector.h:18
PixelTestBeamValidation_cfi.Charge
Charge
Definition: PixelTestBeamValidation_cfi.py:99
Phase2TrackerDigitizerAlgorithm::interstripCoupling_
const float interstripCoupling_
Definition: Phase2TrackerDigitizerAlgorithm.h:128
Phase2TrackerDigitizerAlgorithm::fluctuate_
const std::unique_ptr< SiG4UniversalFluctuation > fluctuate_
Definition: Phase2TrackerDigitizerAlgorithm.h:182
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
Phase2TrackerDigitizerAlgorithm::theSiPixelGainCalibrationService_
const std::unique_ptr< SiPixelGainCalibrationOfflineSimService > theSiPixelGainCalibrationService_
Definition: Phase2TrackerDigitizerAlgorithm.h:210
Phase2TrackerDigitizerAlgorithm::siPhase2OTLorentzAngle_
const SiPhase2OuterTrackerLorentzAngle * siPhase2OTLorentzAngle_
Definition: Phase2TrackerDigitizerAlgorithm.h:88
Phase2TrackerDigitizerAlgorithm::thePhase2ReadoutMode_
const int thePhase2ReadoutMode_
Definition: Phase2TrackerDigitizerAlgorithm.h:136
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
Phase2TrackerDigitizerAlgorithm::use_ineff_from_db_
const bool use_ineff_from_db_
Definition: Phase2TrackerDigitizerAlgorithm.h:113
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
DTRecHitClients_cfi.local
local
Definition: DTRecHitClients_cfi.py:10
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:234
DigitizerUtility::Amplitude::ampl
float ampl() const
Definition: DigitizerUtility.h:48
SiPixelQuality::IsRocBad
bool IsRocBad(const uint32_t &detid, const short &rocNb) const
Definition: SiPixelQuality.cc:107
GloballyPositioned::rotation
const RotationType & rotation() const
Definition: GloballyPositioned.h:38
Phase2TrackerDigitizerAlgorithm::addPixelInefficiency_
const bool addPixelInefficiency_
Definition: Phase2TrackerDigitizerAlgorithm.h:163
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
JetChargeProducer_cfi.exp
exp
Definition: JetChargeProducer_cfi.py:6
Phase2TrackerDigitizerAlgorithm::theHIPThresholdInE_Barrel_
const double theHIPThresholdInE_Barrel_
Definition: Phase2TrackerDigitizerAlgorithm.h:150
point
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
remoteMonitoring_LED_IterMethod_cfg.threshold
threshold
Definition: remoteMonitoring_LED_IterMethod_cfg.py:430
PixelTopology::nrows
virtual int nrows() const =0
Parameters
vector< ParameterSet > Parameters
Definition: HLTMuonPlotter.cc:25
Phase2TrackerDigitizerAlgorithm::SigmaCoeff_
const float SigmaCoeff_
Definition: Phase2TrackerDigitizerAlgorithm.h:130
SiPixelFedCablingMap::findItem
const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &path) const final
Definition: SiPixelFedCablingMap.cc:124
Phase2TrackerDigitizerAlgorithm::smearedThreshold_Endcap_
std::unique_ptr< CLHEP::RandGaussQ > smearedThreshold_Endcap_
Definition: Phase2TrackerDigitizerAlgorithm.h:226
Phase2TrackerDigitizerAlgorithm::rengine_
CLHEP::HepRandomEngine * rengine_
Definition: Phase2TrackerDigitizerAlgorithm.h:230
PV3DBase::perp
T perp() const
Definition: PV3DBase.h:69
Phase2TrackerDigitizerAlgorithm::isAboveThreshold
virtual bool isAboveThreshold(const DigitizerUtility::SimHitInfo *hitInfo, float charge, float thr) const
Definition: Phase2TrackerDigitizerAlgorithm.h:76
Phase2TrackerDigitizerAlgorithm::Parameters
std::vector< edm::ParameterSet > Parameters
Definition: Phase2TrackerDigitizerAlgorithm.h:106
hit
Definition: SiStripHitEffFromCalibTree.cc:88
Phase2TrackerDigitizerAlgorithm::pixel_inefficiency
virtual void pixel_inefficiency(const SubdetEfficiencies &eff, const Phase2TrackerGeomDetUnit *pixdet, const TrackerTopology *tTopo)
Definition: Phase2TrackerDigitizerAlgorithm.cc:704
sipixelobjects::PixelROC::idInDetUnit
unsigned int idInDetUnit() const
id of this ROC in DetUnit etermined by token path
Definition: PixelROC.h:37
PixelDigi::channelToPixel
static std::pair< int, int > channelToPixel(int ch)
Definition: PixelDigi.h:69