CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Public Attributes
PixelDigitizerAlgorithm Class Reference

#include <PixelDigitizerAlgorithm.h>

Inheritance diagram for PixelDigitizerAlgorithm:
Phase2TrackerDigitizerAlgorithm Pixel3DDigitizerAlgorithm

Classes

class  TimewalkCurve
 
class  TimewalkModel
 

Public Member Functions

void add_cross_talk (const Phase2TrackerGeomDetUnit *pixdet) override
 
void init (const edm::EventSetup &es) override
 
bool isAboveThreshold (const digitizerUtility::SimHitInfo *hitInfo, float charge, float thr) const override
 
void module_killing_DB (const Phase2TrackerGeomDetUnit *pixdet) override
 
 PixelDigitizerAlgorithm (const edm::ParameterSet &conf, edm::ConsumesCollector iC)
 
bool select_hit (const PSimHit &hit, double tCorr, double &sigScale) const override
 
 ~PixelDigitizerAlgorithm () override
 
- Public Member Functions inherited from Phase2TrackerDigitizerAlgorithm
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 initializeEvent (CLHEP::HepRandomEngine &eng)
 
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 ~Phase2TrackerDigitizerAlgorithm ()
 

Public Attributes

bool apply_timewalk_
 
double even_column_interchannelCoupling_next_column_
 
double even_row_interchannelCoupling_next_row_
 
const edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcdfedCablingMapToken_
 
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecordgeomToken_
 
double odd_column_interchannelCoupling_next_column_
 
double odd_row_interchannelCoupling_next_row_
 
edm::ESGetToken< SiPixelQuality, SiPixelQualityRcdsiPixelBadModuleToken_
 
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleSimRcdsiPixelLorentzAngleToken_
 
const TimewalkModel timewalk_model_
 

Additional Inherited Members

- Protected Types inherited from Phase2TrackerDigitizerAlgorithm
using Frame = GloballyPositioned< double >
 
using Parameters = std::vector< edm::ParameterSet >
 
using signal_map_type = std::map< int, digitizerUtility::Ph2Amplitude, std::less< int > >
 
using signalMaps = std::map< uint32_t, signal_map_type >
 
- Protected Member Functions inherited from Phase2TrackerDigitizerAlgorithm
virtual void add_noise (const Phase2TrackerGeomDetUnit *pixdet)
 
virtual void add_noisy_cells (const Phase2TrackerGeomDetUnit *pixdet, float thePixelThreshold)
 
float calcQ (float x)
 
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 (std::vector< PSimHit >::const_iterator inputBegin, const PSimHit &hit, const size_t hitIndex, const size_t firstHitIndex, const uint32_t tofBin, const Phase2TrackerGeomDetUnit *pixdet, const std::vector< digitizerUtility::SignalPoint > &collection_points)
 
virtual void module_killing_conf (uint32_t detID)
 
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 inherited from Phase2TrackerDigitizerAlgorithm
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< SiPixelChargeReweightingAlgorithmtheSiPixelChargeReweightingAlgorithm_
 
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_
 
const bool useChargeReweighting_
 

Detailed Description

Definition at line 12 of file PixelDigitizerAlgorithm.h.

Constructor & Destructor Documentation

◆ PixelDigitizerAlgorithm()

PixelDigitizerAlgorithm::PixelDigitizerAlgorithm ( const edm::ParameterSet conf,
edm::ConsumesCollector  iC 
)

Definition at line 43 of file PixelDigitizerAlgorithm.cc.

References Phase2TrackerDigitizerAlgorithm::addPixelInefficiency_, edm::ConsumesCollector::esConsumes(), LogDebug, Phase2TrackerDigitizerAlgorithm::pixelFlag_, siPixelBadModuleToken_, siPixelLorentzAngleToken_, Phase2TrackerDigitizerAlgorithm::theAdcFullScale_, Phase2TrackerDigitizerAlgorithm::theElectronPerADC_, Phase2TrackerDigitizerAlgorithm::theThresholdInE_Barrel_, Phase2TrackerDigitizerAlgorithm::theThresholdInE_Endcap_, Phase2TrackerDigitizerAlgorithm::tMax_, Phase2TrackerDigitizerAlgorithm::use_deadmodule_DB_, and Phase2TrackerDigitizerAlgorithm::use_LorentzAngle_DB_.

45  conf.getParameter<ParameterSet>("PixelDigitizerAlgorithm"),
46  iC),
48  .getParameter<double>("Odd_row_interchannelCoupling_next_row")),
50  .getParameter<double>("Even_row_interchannelCoupling_next_row")),
52  conf.getParameter<ParameterSet>("PixelDigitizerAlgorithm")
53  .getParameter<double>("Odd_column_interchannelCoupling_next_column")),
55  conf.getParameter<ParameterSet>("PixelDigitizerAlgorithm")
56  .getParameter<double>("Even_column_interchannelCoupling_next_column")),
57  apply_timewalk_(conf.getParameter<ParameterSet>("PixelDigitizerAlgorithm").getParameter<bool>("ApplyTimewalk")),
59  conf.getParameter<ParameterSet>("PixelDigitizerAlgorithm").getParameter<edm::ParameterSet>("TimewalkModel")),
61  geomToken_(iC.esConsumes()) {
66  pixelFlag_ = true;
67  LogDebug("PixelDigitizerAlgorithm") << "Algorithm constructed "
68  << "Configuration parameters:"
69  << "Threshold/Gain = "
70  << "threshold in electron Endcap = " << theThresholdInE_Endcap_
71  << "threshold in electron Barrel = " << theThresholdInE_Barrel_ << " "
73  << " The delta cut-off is set to " << tMax_ << " pix-inefficiency "
75 }
const edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > fedCablingMapToken_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::ESGetToken< SiPixelQuality, SiPixelQualityRcd > siPixelBadModuleToken_
const TimewalkModel timewalk_model_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
Phase2TrackerDigitizerAlgorithm(const edm::ParameterSet &conf_common, const edm::ParameterSet &conf_specific, edm::ConsumesCollector iC)
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleSimRcd > siPixelLorentzAngleToken_
#define LogDebug(id)

◆ ~PixelDigitizerAlgorithm()

PixelDigitizerAlgorithm::~PixelDigitizerAlgorithm ( )
override

Definition at line 77 of file PixelDigitizerAlgorithm.cc.

References LogDebug.

77 { LogDebug("PixelDigitizerAlgorithm") << "Algorithm deleted"; }
#define LogDebug(id)

Member Function Documentation

◆ add_cross_talk()

void PixelDigitizerAlgorithm::add_cross_talk ( const Phase2TrackerGeomDetUnit pixdet)
overridevirtual

Reimplemented from Phase2TrackerDigitizerAlgorithm.

Definition at line 93 of file PixelDigitizerAlgorithm.cc.

References Phase2TrackerDigitizerAlgorithm::_signal, funct::abs(), officialStyle::chan, PixelDigi::channelToPixel(), even_column_interchannelCoupling_next_column_, even_row_interchannelCoupling_next_row_, GeomDet::geographicalId(), MainPageGenerator::l, PixelTopology::ncolumns(), PixelTopology::nrows(), odd_column_interchannelCoupling_next_column_, odd_row_interchannelCoupling_next_row_, PixelTopology::pitch(), Phase2TrackerDigitizerAlgorithm::pixelFlag_, Phase2TrackerDigi::pixelToChannel(), PixelDigi::pixelToChannel(), DetId::rawId(), alignCSCRings::s, and PixelGeomDetUnit::specificTopology().

93  {
94  if (!pixelFlag_)
95  return;
96 
97  const Phase2TrackerTopology* topol = &pixdet->specificTopology();
98 
99  // cross-talk calculation valid for the case of 25x100 pixels
100  const float pitch_first = 0.0025;
101  const float pitch_second = 0.0100;
102 
103  // 0.5 um tolerance when comparing the pitch to accommodate the small changes in different TK geometrie (temporary fix)
104  const double pitch_tolerance(0.0005);
105 
106  if (std::abs(topol->pitch().first - pitch_first) > pitch_tolerance ||
107  std::abs(topol->pitch().second - pitch_second) > pitch_tolerance)
108  return;
109 
110  uint32_t detID = pixdet->geographicalId().rawId();
111  signal_map_type& theSignal = _signal[detID];
112  signal_map_type signalNew;
113 
114  int numRows = topol->nrows();
115  int numColumns = topol->ncolumns();
116 
117  for (auto& s : theSignal) {
118  float signalInElectrons = s.second.ampl(); // signal in electrons
119 
120  auto hitChan = PixelDigi::channelToPixel(s.first);
121 
122  float signalInElectrons_odd_row_Xtalk_next_row = signalInElectrons * odd_row_interchannelCoupling_next_row_;
123  float signalInElectrons_even_row_Xtalk_next_row = signalInElectrons * even_row_interchannelCoupling_next_row_;
124  float signalInElectrons_odd_column_Xtalk_next_column =
126  float signalInElectrons_even_column_Xtalk_next_column =
128 
129  // subtract the charge which will be shared
130  s.second.set(signalInElectrons - signalInElectrons_odd_row_Xtalk_next_row -
131  signalInElectrons_even_row_Xtalk_next_row - signalInElectrons_odd_column_Xtalk_next_column -
132  signalInElectrons_even_column_Xtalk_next_column);
133 
134  if (hitChan.first != 0) {
135  auto XtalkPrev = std::make_pair(hitChan.first - 1, hitChan.second);
136  int chanXtalkPrev = pixelFlag_ ? PixelDigi::pixelToChannel(XtalkPrev.first, XtalkPrev.second)
137  : Phase2TrackerDigi::pixelToChannel(XtalkPrev.first, XtalkPrev.second);
138  if (hitChan.first % 2 == 1)
139  signalNew.emplace(chanXtalkPrev,
140  digitizerUtility::Ph2Amplitude(signalInElectrons_even_row_Xtalk_next_row, nullptr, -1.0));
141  else
142  signalNew.emplace(chanXtalkPrev,
143  digitizerUtility::Ph2Amplitude(signalInElectrons_odd_row_Xtalk_next_row, nullptr, -1.0));
144  }
145  if (hitChan.first < numRows - 1) {
146  auto XtalkNext = std::make_pair(hitChan.first + 1, hitChan.second);
147  int chanXtalkNext = pixelFlag_ ? PixelDigi::pixelToChannel(XtalkNext.first, XtalkNext.second)
148  : Phase2TrackerDigi::pixelToChannel(XtalkNext.first, XtalkNext.second);
149  if (hitChan.first % 2 == 1)
150  signalNew.emplace(chanXtalkNext,
151  digitizerUtility::Ph2Amplitude(signalInElectrons_odd_row_Xtalk_next_row, nullptr, -1.0));
152  else
153  signalNew.emplace(chanXtalkNext,
154  digitizerUtility::Ph2Amplitude(signalInElectrons_even_row_Xtalk_next_row, nullptr, -1.0));
155  }
156 
157  if (hitChan.second != 0) {
158  auto XtalkPrev = std::make_pair(hitChan.first, hitChan.second - 1);
159  int chanXtalkPrev = pixelFlag_ ? PixelDigi::pixelToChannel(XtalkPrev.first, XtalkPrev.second)
160  : Phase2TrackerDigi::pixelToChannel(XtalkPrev.first, XtalkPrev.second);
161  if (hitChan.second % 2 == 1)
162  signalNew.emplace(
163  chanXtalkPrev,
164  digitizerUtility::Ph2Amplitude(signalInElectrons_even_column_Xtalk_next_column, nullptr, -1.0));
165  else
166  signalNew.emplace(
167  chanXtalkPrev,
168  digitizerUtility::Ph2Amplitude(signalInElectrons_odd_column_Xtalk_next_column, nullptr, -1.0));
169  }
170  if (hitChan.second < numColumns - 1) {
171  auto XtalkNext = std::make_pair(hitChan.first, hitChan.second + 1);
172  int chanXtalkNext = pixelFlag_ ? PixelDigi::pixelToChannel(XtalkNext.first, XtalkNext.second)
173  : Phase2TrackerDigi::pixelToChannel(XtalkNext.first, XtalkNext.second);
174  if (hitChan.second % 2 == 1)
175  signalNew.emplace(
176  chanXtalkNext,
177  digitizerUtility::Ph2Amplitude(signalInElectrons_odd_column_Xtalk_next_column, nullptr, -1.0));
178  else
179  signalNew.emplace(
180  chanXtalkNext,
181  digitizerUtility::Ph2Amplitude(signalInElectrons_even_column_Xtalk_next_column, nullptr, -1.0));
182  }
183  }
184  for (auto const& l : signalNew) {
185  int chan = l.first;
186  auto iter = theSignal.find(chan);
187  if (iter != theSignal.end()) {
188  iter->second += l.second.ampl();
189  } else {
190  theSignal.emplace(chan, digitizerUtility::Ph2Amplitude(l.second.ampl(), nullptr, -1.0));
191  }
192  }
193 }
static std::pair< int, int > channelToPixel(int ch)
Definition: PixelDigi.h:69
virtual int ncolumns() const =0
virtual int nrows() const =0
std::map< int, digitizerUtility::Ph2Amplitude, std::less< int > > signal_map_type
static int pixelToChannel(int row, int col)
Definition: PixelDigi.h:75
U second(std::pair< T, U > const &p)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:64
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
virtual std::pair< float, float > pitch() const =0
constexpr uint32_t pixelToChannel(int row, int col)

◆ init()

void PixelDigitizerAlgorithm::init ( const edm::EventSetup es)
overridevirtual

Implements Phase2TrackerDigitizerAlgorithm.

Definition at line 25 of file PixelDigitizerAlgorithm.cc.

References edm::EventSetup::getData().

25  {
26  if (use_ineff_from_db_) // load gain calibration service fromdb...
27  theSiPixelGainCalibrationService_->setESObjects(es);
28 
31 
32  if (use_LorentzAngle_DB_) // Get Lorentz angle from DB record
34 
35  // gets the map and geometry from the DB (to kill ROCs)
37  geom_ = &es.getData(geomToken_);
40  }
41 }
const edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > fedCablingMapToken_
edm::ESGetToken< SiPixelQuality, SiPixelQualityRcd > siPixelBadModuleToken_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
const SiPixelLorentzAngle * siPixelLorentzAngle_
const std::unique_ptr< SiPixelChargeReweightingAlgorithm > theSiPixelChargeReweightingAlgorithm_
const std::unique_ptr< SiPixelGainCalibrationOfflineSimService > theSiPixelGainCalibrationService_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleSimRcd > siPixelLorentzAngleToken_

◆ isAboveThreshold()

bool PixelDigitizerAlgorithm::isAboveThreshold ( const digitizerUtility::SimHitInfo hitInfo,
float  charge,
float  thr 
) const
overridevirtual

◆ module_killing_DB()

void PixelDigitizerAlgorithm::module_killing_DB ( const Phase2TrackerGeomDetUnit pixdet)
overridevirtual

Implements Phase2TrackerDigitizerAlgorithm.

Definition at line 262 of file PixelDigitizerAlgorithm.cc.

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

262  {
263  bool isbad = false;
264  uint32_t detID = pixdet->geographicalId().rawId();
265  int ncol = pixdet->specificTopology().ncolumns();
266  if (ncol < 0)
267  return;
268  std::vector<SiPixelQuality::disabledModuleType> disabledModules = siPixelBadModule_->getBadComponentList();
269 
271  for (const auto& mod : disabledModules) {
272  if (detID == mod.DetID) {
273  isbad = true;
274  badmodule = mod;
275  break;
276  }
277  }
278 
279  if (!isbad)
280  return;
281 
282  signal_map_type& theSignal = _signal[detID]; // check validity
283  if (badmodule.errorType == 0) { // this is a whole dead module.
284  for (auto& s : theSignal)
285  s.second.set(0.); // reset amplitude
286  } else { // all other module types: half-modules and single ROCs.
287  // Get Bad ROC position:
288  // follow the example of getBadRocPositions in CondFormats/SiPixelObjects/src/SiPixelQuality.cc
289  std::vector<GlobalPixel> badrocpositions;
290  for (size_t j = 0; j < static_cast<size_t>(ncol); j++) {
291  if (siPixelBadModule_->IsRocBad(detID, j)) {
292  std::vector<CablingPathToDetUnit> path = fedCablingMap_->pathToDetUnit(detID);
293  for (auto const& p : path) {
294  const PixelROC* myroc = fedCablingMap_->findItem(p);
295  if (myroc->idInDetUnit() == j) {
296  LocalPixel::RocRowCol local = {39, 25}; //corresponding to center of ROC row, col
297  GlobalPixel global = myroc->toGlobal(LocalPixel(local));
298  badrocpositions.push_back(global);
299  break;
300  }
301  }
302  }
303  }
304 
305  for (auto& s : theSignal) {
306  std::pair<int, int> ip;
307  if (pixelFlag_)
308  ip = PixelDigi::channelToPixel(s.first);
309  else
311 
312  for (auto const& p : badrocpositions) {
313  for (auto& k : badPixels_) {
314  if (p.row == k.getParameter<int>("row") && ip.first == k.getParameter<int>("row") &&
315  std::abs(ip.second - p.col) < k.getParameter<int>("col")) {
316  s.second.set(0.);
317  }
318  }
319  }
320  }
321  }
322 }
bool IsRocBad(const uint32_t &detid, const short &rocNb) const
static std::pair< int, int > channelToPixel(int ch)
Definition: PixelDigi.h:69
virtual int ncolumns() const =0
std::vector< sipixelobjects::CablingPathToDetUnit > pathToDetUnit(uint32_t rawDetId) const final
std::map< int, digitizerUtility::Ph2Amplitude, std::less< int > > signal_map_type
identify pixel inside single ROC
Definition: LocalPixel.h:7
global coordinates (row and column in DetUnit, as in PixelDigi)
Definition: GlobalPixel.h:6
const std::vector< disabledModuleType > getBadComponentList() const
GlobalPixel toGlobal(const LocalPixel &loc) const
Definition: PixelROC.h:55
const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &path) const final
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:64
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
row and collumn in ROC representation
Definition: LocalPixel.h:13
static std::pair< unsigned int, unsigned int > channelToPixel(unsigned int ch)
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
unsigned int idInDetUnit() const
id of this ROC in DetUnit etermined by token path
Definition: PixelROC.h:37

◆ select_hit()

bool PixelDigitizerAlgorithm::select_hit ( const PSimHit hit,
double  tCorr,
double &  sigScale 
) const
overridevirtual

Reimplemented from Phase2TrackerDigitizerAlgorithm.

Definition at line 82 of file PixelDigitizerAlgorithm.cc.

References apply_timewalk_, Phase2TrackerDigitizerAlgorithm::theTofLowerCut_, and Phase2TrackerDigitizerAlgorithm::theTofUpperCut_.

82  {
83  // in case of signal-shape emulation do not apply [TofLower,TofUpper] selection
84  double toa = hit.tof() - tCorr;
85  return apply_timewalk_ || (toa >= theTofLowerCut_ && toa < theTofUpperCut_);
86 }

Member Data Documentation

◆ apply_timewalk_

bool PixelDigitizerAlgorithm::apply_timewalk_

Definition at line 62 of file PixelDigitizerAlgorithm.h.

Referenced by isAboveThreshold(), and select_hit().

◆ even_column_interchannelCoupling_next_column_

double PixelDigitizerAlgorithm::even_column_interchannelCoupling_next_column_

Definition at line 59 of file PixelDigitizerAlgorithm.h.

Referenced by add_cross_talk().

◆ even_row_interchannelCoupling_next_row_

double PixelDigitizerAlgorithm::even_row_interchannelCoupling_next_row_

Definition at line 57 of file PixelDigitizerAlgorithm.h.

Referenced by add_cross_talk().

◆ fedCablingMapToken_

const edm::ESGetToken<SiPixelFedCablingMap, SiPixelFedCablingMapRcd> PixelDigitizerAlgorithm::fedCablingMapToken_

Definition at line 67 of file PixelDigitizerAlgorithm.h.

◆ geomToken_

const edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> PixelDigitizerAlgorithm::geomToken_

Definition at line 68 of file PixelDigitizerAlgorithm.h.

◆ odd_column_interchannelCoupling_next_column_

double PixelDigitizerAlgorithm::odd_column_interchannelCoupling_next_column_

Definition at line 58 of file PixelDigitizerAlgorithm.h.

Referenced by add_cross_talk().

◆ odd_row_interchannelCoupling_next_row_

double PixelDigitizerAlgorithm::odd_row_interchannelCoupling_next_row_

Definition at line 56 of file PixelDigitizerAlgorithm.h.

Referenced by add_cross_talk().

◆ siPixelBadModuleToken_

edm::ESGetToken<SiPixelQuality, SiPixelQualityRcd> PixelDigitizerAlgorithm::siPixelBadModuleToken_

Definition at line 65 of file PixelDigitizerAlgorithm.h.

Referenced by PixelDigitizerAlgorithm().

◆ siPixelLorentzAngleToken_

edm::ESGetToken<SiPixelLorentzAngle, SiPixelLorentzAngleSimRcd> PixelDigitizerAlgorithm::siPixelLorentzAngleToken_

Definition at line 66 of file PixelDigitizerAlgorithm.h.

Referenced by PixelDigitizerAlgorithm().

◆ timewalk_model_

const TimewalkModel PixelDigitizerAlgorithm::timewalk_model_

Definition at line 63 of file PixelDigitizerAlgorithm.h.

Referenced by isAboveThreshold().