CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Attributes | Static Protected Attributes
HGCDigitizerBase Class Referenceabstract

#include <HGCDigitizerBase.h>

Inheritance diagram for HGCDigitizerBase:
HFNoseDigitizer HGCEEDigitizer HGCHEbackDigitizer HGCHEfrontDigitizer

Public Types

typedef edm::SortedCollection< DFrDColl
 
typedef HGCalDataFrame DFr
 

Public Member Functions

DetId::Detector det () const
 
void GenerateGaussianNoise (CLHEP::HepRandomEngine *engine, const double NoiseMean, const double NoiseStd)
 Gaussian Noise Generation Member Function. More...
 
 HGCDigitizerBase (const edm::ParameterSet &ps)
 CTOR. More...
 
float keV2fC () const
 getters More...
 
void run (std::unique_ptr< DColl > &digiColl, hgc::HGCSimHitDataAccumulator &simData, const CaloSubdetectorGeometry *theGeom, const std::unordered_set< DetId > &validIds, uint32_t digitizationType, CLHEP::HepRandomEngine *engine)
 steer digitization mode More...
 
virtual void runDigitizer (std::unique_ptr< DColl > &coll, hgc::HGCSimHitDataAccumulator &simData, const CaloSubdetectorGeometry *theGeom, const std::unordered_set< DetId > &validIds, CLHEP::HepRandomEngine *engine)=0
 to be specialized by top class More...
 
void runSimple (std::unique_ptr< DColl > &coll, hgc::HGCSimHitDataAccumulator &simData, const CaloSubdetectorGeometry *theGeom, const std::unordered_set< DetId > &validIds, CLHEP::HepRandomEngine *engine)
 a trivial digitization: sum energies and digitize More...
 
ForwardSubdetector subdet () const
 
std::array< float, 3 > tdcForToAOnset () const
 
float tdcOnset () const
 
bool toaModeByEnergy () const
 
void updateOutput (std::unique_ptr< DColl > &coll, const DFr &rawDataFrame)
 prepares the output according to the number of time samples to produce More...
 
virtual ~HGCDigitizerBase ()
 DTOR. More...
 

Protected Attributes

double bxTime_
 
std::vector< double > cce_
 
DetId::Detector det_
 
std::string doseMapFile_
 
bool doTimeSamples_
 
std::array< std::array< double, samplesize_ >, NoiseArrayLength_GaussianNoiseArray_
 
float keV2fC_
 
edm::ParameterSet myCfg_
 
std::unique_ptr< HGCFEElectronics< DFr > > myFEelectronics_
 
std::vector< float > noise_fC_
 
bool NoiseGeneration_Method_
 
const double NoiseMean_
 
const double NoiseStd_
 
bool RandNoiseGenerationFlag_
 
HGCalSiNoiseMap< HGCSiliconDetIdscal_
 
bool scaleByDose_
 
double scaleByDoseFactor_
 
HGCalSiNoiseMap< HFNoseDetIdscalHFNose_
 
ForwardSubdetector subdet_
 
bool thresholdFollowsMIP_
 

Static Protected Attributes

static const size_t NoiseArrayLength_ = 200000
 
static const size_t samplesize_ = 15
 

Detailed Description

Definition at line 54 of file HGCDigitizerBase.h.

Member Typedef Documentation

◆ DColl

Definition at line 57 of file HGCDigitizerBase.h.

◆ DFr

Definition at line 56 of file HGCDigitizerBase.h.

Constructor & Destructor Documentation

◆ HGCDigitizerBase()

HGCDigitizerBase::HGCDigitizerBase ( const edm::ParameterSet ps)

CTOR.

Definition at line 9 of file HGCDigitizerBase.cc.

10  : scaleByDose_(false),
13  NoiseMean_(0.0),
14  NoiseStd_(1.0) {
15  bxTime_ = ps.getParameter<double>("bxTime");
16  myCfg_ = ps.getParameter<edm::ParameterSet>("digiCfg");
17  NoiseGeneration_Method_ = ps.getParameter<bool>("NoiseGeneration_Method");
18  doTimeSamples_ = myCfg_.getParameter<bool>("doTimeSamples");
19  thresholdFollowsMIP_ = myCfg_.getParameter<bool>("thresholdFollowsMIP");
20  if (myCfg_.exists("keV2fC"))
21  keV2fC_ = myCfg_.getParameter<double>("keV2fC");
22  else
23  keV2fC_ = 1.0;
24 
25  if (myCfg_.existsAs<edm::ParameterSet>("chargeCollectionEfficiencies")) {
26  cce_ = myCfg_.getParameter<edm::ParameterSet>("chargeCollectionEfficiencies")
27  .template getParameter<std::vector<double>>("values");
28  }
29 
30  if (myCfg_.existsAs<double>("noise_fC")) {
31  noise_fC_.reserve(1);
32  noise_fC_.push_back(myCfg_.getParameter<double>("noise_fC"));
33  } else if (myCfg_.existsAs<std::vector<double>>("noise_fC")) {
34  const auto& noises = myCfg_.getParameter<std::vector<double>>("noise_fC");
35  noise_fC_ = std::vector<float>(noises.begin(), noises.end());
36  } else if (myCfg_.existsAs<edm::ParameterSet>("noise_fC")) {
37  const auto& noises =
38  myCfg_.getParameter<edm::ParameterSet>("noise_fC").template getParameter<std::vector<double>>("values");
39  noise_fC_ = std::vector<float>(noises.begin(), noises.end());
40  scaleByDose_ = myCfg_.getParameter<edm::ParameterSet>("noise_fC").template getParameter<bool>("scaleByDose");
41  int scaleByDoseAlgo =
42  myCfg_.getParameter<edm::ParameterSet>("noise_fC").template getParameter<uint32_t>("scaleByDoseAlgo");
43  scaleByDoseFactor_ = myCfg_.getParameter<edm::ParameterSet>("noise_fC").getParameter<double>("scaleByDoseFactor");
44  doseMapFile_ = myCfg_.getParameter<edm::ParameterSet>("noise_fC").template getParameter<std::string>("doseMap");
49  } else {
50  noise_fC_.resize(1, 1.f);
51  }
52  if (myCfg_.existsAs<edm::ParameterSet>("ileakParam")) {
54  myCfg_.getParameter<edm::ParameterSet>("ileakParam").template getParameter<std::vector<double>>("ileakParam"));
56  myCfg_.getParameter<edm::ParameterSet>("ileakParam").template getParameter<std::vector<double>>("ileakParam"));
57  }
58  if (myCfg_.existsAs<edm::ParameterSet>("cceParams")) {
60  myCfg_.getParameter<edm::ParameterSet>("cceParams").template getParameter<std::vector<double>>("cceParamFine"),
61  myCfg_.getParameter<edm::ParameterSet>("cceParams").template getParameter<std::vector<double>>("cceParamThin"),
62  myCfg_.getParameter<edm::ParameterSet>("cceParams").template getParameter<std::vector<double>>("cceParamThick"));
64  myCfg_.getParameter<edm::ParameterSet>("cceParams").template getParameter<std::vector<double>>("cceParamFine"),
65  myCfg_.getParameter<edm::ParameterSet>("cceParams").template getParameter<std::vector<double>>("cceParamThin"),
66  myCfg_.getParameter<edm::ParameterSet>("cceParams").template getParameter<std::vector<double>>("cceParamThick"));
67  }
68 
70  myFEelectronics_ = std::make_unique<HGCFEElectronics<DFr>>(feCfg);
71  myFEelectronics_->SetNoiseValues(noise_fC_);
72 
73  //override the "default ADC pulse" with the one with which was configured the FE electronics class
74  scal_.setDefaultADCPulseShape(myFEelectronics_->getDefaultADCPulse());
76 
78 }

References bxTime_, cce_, doseMapFile_, doTimeSamples_, edm::ParameterSet::exists(), edm::ParameterSet::existsAs(), f, hgcalDigitizer_cfi::feCfg, edm::ParameterSet::getParameter(), keV2fC_, myCfg_, myFEelectronics_, noise_fC_, NoiseGeneration_Method_, HLTEgPhaseIITestSequence_cff::noises, RandNoiseGenerationFlag_, scal_, scaleByDose_, hgcalDigitizer_cfi::scaleByDoseAlgo, scaleByDoseFactor_, scalHFNose_, HGCalSiNoiseMap< T >::setCceParam(), HGCalSiNoiseMap< T >::setDefaultADCPulseShape(), HGCalSiNoiseMap< T >::setDoseMap(), HGCalRadiationMap::setFluenceScaleFactor(), HGCalSiNoiseMap< T >::setIleakParam(), and thresholdFollowsMIP_.

◆ ~HGCDigitizerBase()

virtual HGCDigitizerBase::~HGCDigitizerBase ( )
inlinevirtual

DTOR.

Definition at line 112 of file HGCDigitizerBase.h.

112 {};

Member Function Documentation

◆ det()

DetId::Detector HGCDigitizerBase::det ( ) const
inline

Definition at line 84 of file HGCDigitizerBase.h.

84 { return det_; }

References det_.

Referenced by HGCHEbackDigitizer::runRealisticDigitizer(), and runSimple().

◆ GenerateGaussianNoise()

void HGCDigitizerBase::GenerateGaussianNoise ( CLHEP::HepRandomEngine *  engine,
const double  NoiseMean,
const double  NoiseStd 
)

Gaussian Noise Generation Member Function.

Definition at line 80 of file HGCDigitizerBase.cc.

82  {
83  for (size_t i = 0; i < NoiseArrayLength_; i++) {
84  for (size_t j = 0; j < samplesize_; j++) {
85  GaussianNoiseArray_[i][j] = CLHEP::RandGaussQ::shoot(engine, NoiseMean, NoiseStd);
86  }
87  }
88 }

References GaussianNoiseArray_, mps_fire::i, dqmiolumiharvest::j, NoiseArrayLength_, and samplesize_.

Referenced by run().

◆ keV2fC()

float HGCDigitizerBase::keV2fC ( ) const
inline

getters

Definition at line 80 of file HGCDigitizerBase.h.

80 { return keV2fC_; }

References keV2fC_.

◆ run()

void HGCDigitizerBase::run ( std::unique_ptr< DColl > &  digiColl,
hgc::HGCSimHitDataAccumulator simData,
const CaloSubdetectorGeometry theGeom,
const std::unordered_set< DetId > &  validIds,
uint32_t  digitizationType,
CLHEP::HepRandomEngine *  engine 
)

steer digitization mode

Definition at line 90 of file HGCDigitizerBase.cc.

95  {
96  if (scaleByDose_) {
99  }
100  if (NoiseGeneration_Method_ == true) {
101  if (RandNoiseGenerationFlag_ == false) {
104  }
105  }
106  if (digitizationType == 0)
107  runSimple(digiColl, simData, theGeom, validIds, engine);
108  else
109  runDigitizer(digiColl, simData, theGeom, validIds, engine);
110 }

References DigiToRawDM_cff::digiColl, hgcalDigitizer_cfi::digitizationType, GenerateGaussianNoise(), myFEelectronics_, NoiseGeneration_Method_, NoiseMean_, NoiseStd_, RandNoiseGenerationFlag_, runDigitizer(), runSimple(), scal_, scaleByDose_, scalHFNose_, and HGCalSiNoiseMap< T >::setGeometry().

◆ runDigitizer()

virtual void HGCDigitizerBase::runDigitizer ( std::unique_ptr< DColl > &  coll,
hgc::HGCSimHitDataAccumulator simData,
const CaloSubdetectorGeometry theGeom,
const std::unordered_set< DetId > &  validIds,
CLHEP::HepRandomEngine *  engine 
)
pure virtual

to be specialized by top class

Referenced by run().

◆ runSimple()

void HGCDigitizerBase::runSimple ( std::unique_ptr< DColl > &  coll,
hgc::HGCSimHitDataAccumulator simData,
const CaloSubdetectorGeometry theGeom,
const std::unordered_set< DetId > &  validIds,
CLHEP::HepRandomEngine *  engine 
)

a trivial digitization: sum energies and digitize

Definition at line 112 of file HGCDigitizerBase.cc.

116  {
117  HGCSimHitData chargeColl, toa;
118 
119  // this represents a cell with no signal charge
120  HGCCellInfo zeroData;
121  zeroData.hit_info[0].fill(0.f); //accumulated energy
122  zeroData.hit_info[1].fill(0.f); //time-of-flight
123 
124  std::array<double, samplesize_> cellNoiseArray;
125  for (size_t i = 0; i < samplesize_; i++)
126  cellNoiseArray[i] = 0.0;
127 
128  for (const auto& id : validIds) {
129  chargeColl.fill(0.f);
130  toa.fill(0.f);
131  HGCSimHitDataAccumulator::iterator it = simData.find(id);
132  HGCCellInfo& cell = (simData.end() == it ? zeroData : it->second);
133  addCellMetadata(cell, theGeom, id);
134  if (NoiseGeneration_Method_ == true) {
135  size_t hash_index = (CLHEP::RandFlat::shootInt(engine, (NoiseArrayLength_ - 1)) + id) % NoiseArrayLength_;
136 
137  cellNoiseArray = GaussianNoiseArray_[hash_index];
138  }
139 
140  //set the noise,cce, LSB, threshold, and ADC pulse shape to be used
141  float cce(1.f), noiseWidth(0.f), lsbADC(-1.f), maxADC(-1.f);
142  // half the target mip value is the specification for ZS threshold
143  uint32_t thrADC(std::floor(myFEelectronics_->getTargetMipValue() / 2));
144  uint32_t gainIdx = 0;
145  std::array<float, 6>& adcPulse = myFEelectronics_->getDefaultADCPulse();
146 
147  double tdcOnsetAuto = -1;
148  if (scaleByDose_) {
149  if (id.det() == DetId::Forward && id.subdetId() == ForwardSubdetector::HFNose) {
151  cce = siop.cce;
152  noiseWidth = siop.noise;
154  lsbADC = scalHFNose_.getLSBPerGain()[gain];
155  maxADC = scalHFNose_.getMaxADCPerGain()[gain];
157  gainIdx = siop.gain;
158  tdcOnsetAuto = scal_.getTDCOnsetAuto(gainIdx);
160  thrADC = siop.thrADC;
161  } else {
163  cce = siop.cce;
164  noiseWidth = siop.noise;
166  lsbADC = scal_.getLSBPerGain()[gain];
167  maxADC = scal_.getMaxADCPerGain()[gain];
169  gainIdx = siop.gain;
170  tdcOnsetAuto = scal_.getTDCOnsetAuto(gainIdx);
172  thrADC = siop.thrADC;
173  }
174  } else if (noise_fC_[cell.thickness - 1] != 0) {
175  //this is kept for legacy compatibility with the TDR simulation
176  //probably should simply be removed in a future iteration
177  //note that in this legacy case, gainIdx is kept at 0, fixed
178  cce = (cce_.empty() ? 1.f : cce_[cell.thickness - 1]);
179  noiseWidth = cell.size * noise_fC_[cell.thickness - 1];
180  thrADC =
182  ? std::floor(cell.thickness * cce * myFEelectronics_->getADCThreshold() / myFEelectronics_->getADClsb())
183  : std::floor(cell.thickness * myFEelectronics_->getADCThreshold() / myFEelectronics_->getADClsb());
184  }
185 
186  //loop over time samples and add noise
187  for (size_t i = 0; i < cell.hit_info[0].size(); i++) {
188  double rawCharge(cell.hit_info[0][i]);
189 
190  //time of arrival
191  toa[i] = cell.hit_info[1][i];
192  if (myFEelectronics_->toaMode() == HGCFEElectronics<DFr>::WEIGHTEDBYE && rawCharge > 0)
193  toa[i] = cell.hit_info[1][i] / rawCharge;
194 
195  //final charge estimation
196  float noise;
197  if (NoiseGeneration_Method_ == true)
198  noise = (float)cellNoiseArray[i] * noiseWidth;
199  else
200  noise = CLHEP::RandGaussQ::shoot(engine, cellNoiseArray[i], noiseWidth);
201  float totalCharge(rawCharge * cce + noise);
202  if (totalCharge < 0.f)
203  totalCharge = 0.f;
204  chargeColl[i] = totalCharge;
205  }
206 
207  //run the shaper to create a new data frame
208  DFr rawDataFrame(id);
209  int thickness = cell.thickness > 0 ? cell.thickness : 1;
210  myFEelectronics_->runShaper(
211  rawDataFrame, chargeColl, toa, adcPulse, engine, thrADC, lsbADC, gainIdx, maxADC, thickness, tdcOnsetAuto);
212 
213  //update the output according to the final shape
214  updateOutput(coll, rawDataFrame);
215  }
216 }

References hgcROCParameters_cfi::adcPulse, HGCalSiNoiseMap< T >::adcPulseForGain(), hgc_digi_utils::addCellMetadata(), cce_, det(), f, dqmMemoryStats::float, DetId::Forward, PedestalClient_cfi::gain, GaussianNoiseArray_, HGCalSiNoiseMap< T >::getLSBPerGain(), HGCalSiNoiseMap< T >::getMaxADCPerGain(), HGCalSiNoiseMap< T >::getSiCellOpCharacteristicsCore(), HGCalSiNoiseMap< T >::getTDCOnsetAuto(), HFNose, hgc_digi::HGCCellInfo::hit_info, mps_fire::i, triggerObjects_cff::id, if(), myFEelectronics_, gpuVertexFinder::noise, noise_fC_, NoiseArrayLength_, NoiseGeneration_Method_, samplesize_, scal_, scaleByDose_, scalHFNose_, hgc_digi::HGCCellInfo::size, hgc_digi::HGCCellInfo::thickness, Calorimetry_cff::thickness, thresholdFollowsMIP_, and updateOutput().

Referenced by run().

◆ subdet()

ForwardSubdetector HGCDigitizerBase::subdet ( ) const
inline

Definition at line 85 of file HGCDigitizerBase.h.

85 { return subdet_; }

References subdet_.

◆ tdcForToAOnset()

std::array<float, 3> HGCDigitizerBase::tdcForToAOnset ( ) const
inline

Definition at line 83 of file HGCDigitizerBase.h.

83 { return myFEelectronics_->getTDCForToAOnset(); }

References myFEelectronics_.

◆ tdcOnset()

float HGCDigitizerBase::tdcOnset ( ) const
inline

Definition at line 82 of file HGCDigitizerBase.h.

82 { return myFEelectronics_->getTDCOnset(); }

References myFEelectronics_.

◆ toaModeByEnergy()

bool HGCDigitizerBase::toaModeByEnergy ( ) const
inline

Definition at line 81 of file HGCDigitizerBase.h.

81 { return (myFEelectronics_->toaMode() == HGCFEElectronics<DFr>::WEIGHTEDBYE); }

References myFEelectronics_.

◆ updateOutput()

void HGCDigitizerBase::updateOutput ( std::unique_ptr< DColl > &  coll,
const DFr rawDataFrame 
)

prepares the output according to the number of time samples to produce

Definition at line 218 of file HGCDigitizerBase.cc.

218  {
219  // 9th is the sample of hte intime amplitudes
220  int itIdx(9);
221  if (rawDataFrame.size() <= itIdx + 2)
222  return;
223 
224  DFr dataFrame(rawDataFrame.id());
225  dataFrame.resize(5);
226 
227  // if in time amplitude is above threshold
228  // , then don't push back the dataframe
229  if ((!rawDataFrame[itIdx].threshold())) {
230  return;
231  }
232 
233  for (int it = 0; it < 5; it++) {
234  dataFrame.setSample(it, rawDataFrame[itIdx - 2 + it]);
235  }
236 
237  coll->push_back(dataFrame);
238 }

References HGCDataFrame< D, S >::id(), HGCDataFrame< D, S >::resize(), HGCDataFrame< D, S >::size(), and remoteMonitoring_LED_IterMethod_cfg::threshold.

Referenced by HGCHEbackDigitizer::runCaliceLikeDigitizer(), HGCHEbackDigitizer::runEmptyDigitizer(), HGCHEbackDigitizer::runRealisticDigitizer(), and runSimple().

Member Data Documentation

◆ bxTime_

double HGCDigitizerBase::bxTime_
protected

Definition at line 144 of file HGCDigitizerBase.h.

Referenced by HGCDigitizerBase().

◆ cce_

std::vector<double> HGCDigitizerBase::cce_
protected

Definition at line 125 of file HGCDigitizerBase.h.

Referenced by HGCDigitizerBase(), and runSimple().

◆ det_

DetId::Detector HGCDigitizerBase::det_
protected

◆ doseMapFile_

std::string HGCDigitizerBase::doseMapFile_
protected

Definition at line 134 of file HGCDigitizerBase.h.

Referenced by HGCDigitizerBase().

◆ doTimeSamples_

bool HGCDigitizerBase::doTimeSamples_
protected

Definition at line 147 of file HGCDigitizerBase.h.

Referenced by HGCDigitizerBase().

◆ GaussianNoiseArray_

std::array<std::array<double, samplesize_>, NoiseArrayLength_> HGCDigitizerBase::GaussianNoiseArray_
protected

Definition at line 168 of file HGCDigitizerBase.h.

Referenced by GenerateGaussianNoise(), and runSimple().

◆ keV2fC_

float HGCDigitizerBase::keV2fC_
protected

◆ myCfg_

edm::ParameterSet HGCDigitizerBase::myCfg_
protected

Definition at line 112 of file HGCDigitizerBase.h.

Referenced by HGCDigitizerBase().

◆ myFEelectronics_

std::unique_ptr<HGCFEElectronics<DFr> > HGCDigitizerBase::myFEelectronics_
protected

◆ noise_fC_

std::vector<float> HGCDigitizerBase::noise_fC_
protected

Definition at line 122 of file HGCDigitizerBase.h.

Referenced by HGCDigitizerBase(), and runSimple().

◆ NoiseArrayLength_

const size_t HGCDigitizerBase::NoiseArrayLength_ = 200000
staticprotected

Definition at line 166 of file HGCDigitizerBase.h.

Referenced by GenerateGaussianNoise(), and runSimple().

◆ NoiseGeneration_Method_

bool HGCDigitizerBase::NoiseGeneration_Method_
protected

Definition at line 171 of file HGCDigitizerBase.h.

Referenced by HGCDigitizerBase(), run(), and runSimple().

◆ NoiseMean_

const double HGCDigitizerBase::NoiseMean_
protected

Definition at line 165 of file HGCDigitizerBase.h.

Referenced by run().

◆ NoiseStd_

const double HGCDigitizerBase::NoiseStd_
protected

Definition at line 165 of file HGCDigitizerBase.h.

Referenced by run().

◆ RandNoiseGenerationFlag_

bool HGCDigitizerBase::RandNoiseGenerationFlag_
protected

Definition at line 169 of file HGCDigitizerBase.h.

Referenced by HGCDigitizerBase(), and run().

◆ samplesize_

const size_t HGCDigitizerBase::samplesize_ = 15
staticprotected

Definition at line 167 of file HGCDigitizerBase.h.

Referenced by GenerateGaussianNoise(), and runSimple().

◆ scal_

HGCalSiNoiseMap<HGCSiliconDetId> HGCDigitizerBase::scal_
protected

Definition at line 137 of file HGCDigitizerBase.h.

Referenced by HGCDigitizerBase(), run(), and runSimple().

◆ scaleByDose_

bool HGCDigitizerBase::scaleByDose_
protected

Definition at line 128 of file HGCDigitizerBase.h.

Referenced by HGCDigitizerBase(), run(), and runSimple().

◆ scaleByDoseFactor_

double HGCDigitizerBase::scaleByDoseFactor_
protected

Definition at line 131 of file HGCDigitizerBase.h.

Referenced by HGCDigitizerBase(), and HGCHEbackDigitizer::HGCHEbackDigitizer().

◆ scalHFNose_

HGCalSiNoiseMap<HFNoseDetId> HGCDigitizerBase::scalHFNose_
protected

Definition at line 138 of file HGCDigitizerBase.h.

Referenced by HGCDigitizerBase(), run(), and runSimple().

◆ subdet_

ForwardSubdetector HGCDigitizerBase::subdet_
protected

Definition at line 161 of file HGCDigitizerBase.h.

Referenced by HFNoseDigitizer::HFNoseDigitizer(), and subdet().

◆ thresholdFollowsMIP_

bool HGCDigitizerBase::thresholdFollowsMIP_
protected

Definition at line 150 of file HGCDigitizerBase.h.

Referenced by HGCDigitizerBase(), and runSimple().

DigiToRawDM_cff.digiColl
digiColl
Definition: DigiToRawDM_cff.py:32
HGCalSiNoiseMap::setIleakParam
void setIleakParam(const std::vector< double > &pars)
set the ileak parameters to use
Definition: HGCalSiNoiseMap.h:42
HGCDigitizerBase::DFr
HGCalDataFrame DFr
Definition: HGCDigitizerBase.h:56
mps_fire.i
i
Definition: mps_fire.py:428
HGCDigitizerBase::samplesize_
static const size_t samplesize_
Definition: HGCDigitizerBase.h:167
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
HGCalSiNoiseMap::getLSBPerGain
std::vector< double > & getLSBPerGain()
Definition: HGCalSiNoiseMap.h:95
HGCDigitizerBase::GaussianNoiseArray_
std::array< std::array< double, samplesize_ >, NoiseArrayLength_ > GaussianNoiseArray_
Definition: HGCDigitizerBase.h:168
ForwardEmpty
Definition: ForwardSubdetector.h:5
HGCalSiNoiseMap::getSiCellOpCharacteristicsCore
const SiCellOpCharacteristicsCore getSiCellOpCharacteristicsCore(const T &did, GainRange_t gain, int aimMIPtoADC)
returns the charge collection efficiency and noise if gain range is set to auto, it will find the mos...
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
HGCDigitizerBase::doTimeSamples_
bool doTimeSamples_
Definition: HGCDigitizerBase.h:147
HGCalSiNoiseMap::setDefaultADCPulseShape
void setDefaultADCPulseShape(const hgc_digi::FEADCPulseShape &adcPulse)
Definition: HGCalSiNoiseMap.h:96
HGCDigitizerBase::scaleByDoseFactor_
double scaleByDoseFactor_
Definition: HGCDigitizerBase.h:131
HGCDigitizerBase::NoiseStd_
const double NoiseStd_
Definition: HGCDigitizerBase.h:165
hgcalDigitizer_cfi.scaleByDoseAlgo
scaleByDoseAlgo
Definition: hgcalDigitizer_cfi.py:51
HGCDigitizerBase::doseMapFile_
std::string doseMapFile_
Definition: HGCDigitizerBase.h:134
if
if(0==first)
Definition: CAHitNtupletGeneratorKernelsImpl.h:58
HGCalSiNoiseMap::setDoseMap
void setDoseMap(const std::string &, const unsigned int &)
overrides base class method with specifics for the configuration of the algo
HGCalSiNoiseMap::getTDCOnsetAuto
double getTDCOnsetAuto(uint32_t gainIdx)
edm::ParameterSet::existsAs
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:171
HGCDataFrame::resize
void resize(size_t s)
allow to set size
Definition: HGCDataFrame.h:41
HGCDigitizerBase::det_
DetId::Detector det_
Definition: HGCDigitizerBase.h:156
HGCDigitizerBase::thresholdFollowsMIP_
bool thresholdFollowsMIP_
Definition: HGCDigitizerBase.h:150
HGCDigitizerBase::NoiseGeneration_Method_
bool NoiseGeneration_Method_
Definition: HGCDigitizerBase.h:171
hgc_digi::HGCCellInfo::size
double size
Definition: HGCDigitizerTypes.h:35
HGCDigitizerBase::bxTime_
double bxTime_
Definition: HGCDigitizerBase.h:144
HGCalSiNoiseMap::setGeometry
void setGeometry(const CaloSubdetectorGeometry *, GainRange_t gain=GainRange_t::AUTO, int aimMIPtoADC=10)
specialization of the base class method which sets the geometry so that it can instantiate an operati...
hgcalDigitizer_cfi.feCfg
feCfg
Definition: hgcalDigitizer_cfi.py:101
Calorimetry_cff.thickness
thickness
Definition: Calorimetry_cff.py:115
HFNose
Definition: ForwardSubdetector.h:11
hgc_digi::HGCSimHitData
std::array< HGCSimData_t, nSamples > HGCSimHitData
Definition: HGCDigitizerTypes.h:17
HGCalSiNoiseMap::adcPulseForGain
const hgc_digi::FEADCPulseShape & adcPulseForGain(GainRange_t gain)
Definition: HGCalSiNoiseMap.h:97
HGCDigitizerBase::scal_
HGCalSiNoiseMap< HGCSiliconDetId > scal_
Definition: HGCDigitizerBase.h:137
hgcROCParameters_cfi.adcPulse
adcPulse
Definition: hgcROCParameters_cfi.py:10
HGCFEElectronics
models the behavior of the front-end electronics
Definition: HGCFEElectronics.h:24
hgc_digi::HGCCellInfo
Definition: HGCDigitizerTypes.h:31
HGCDigitizerBase::GenerateGaussianNoise
void GenerateGaussianNoise(CLHEP::HepRandomEngine *engine, const double NoiseMean, const double NoiseStd)
Gaussian Noise Generation Member Function.
Definition: HGCDigitizerBase.cc:80
HGCDigitizerBase::keV2fC_
float keV2fC_
Definition: HGCDigitizerBase.h:119
edm::ParameterSet::exists
bool exists(std::string const &parameterName) const
checks if a parameter exists
Definition: ParameterSet.cc:681
HGCalSiNoiseMap
derives from HGCalRadiation map to parse fluence parameters, provides Si-specific functions; see DN-1...
Definition: HGCalSiNoiseMap.h:18
edm::ParameterSet
Definition: ParameterSet.h:47
hgcalDigitizer_cfi.digitizationType
digitizationType
Definition: hgcalDigitizer_cfi.py:86
HGCDigitizerBase::runSimple
void runSimple(std::unique_ptr< DColl > &coll, hgc::HGCSimHitDataAccumulator &simData, const CaloSubdetectorGeometry *theGeom, const std::unordered_set< DetId > &validIds, CLHEP::HepRandomEngine *engine)
a trivial digitization: sum energies and digitize
Definition: HGCDigitizerBase.cc:112
hgc_digi::HGCCellInfo::hit_info
std::array< HGCSimHitData, 2 > hit_info
Definition: HGCDigitizerTypes.h:33
HGCDigitizerBase::scalHFNose_
HGCalSiNoiseMap< HFNoseDetId > scalHFNose_
Definition: HGCDigitizerBase.h:138
gpuVertexFinder::noise
__shared__ int noise
Definition: gpuFitVertices.h:50
HGCDigitizerBase::cce_
std::vector< double > cce_
Definition: HGCDigitizerBase.h:125
hgc_digi::HGCCellInfo::thickness
int thickness
Definition: HGCDigitizerTypes.h:34
HGCalRadiationMap::setFluenceScaleFactor
void setFluenceScaleFactor(double val)
Definition: HGCalRadiationMap.h:41
PedestalClient_cfi.gain
gain
Definition: PedestalClient_cfi.py:37
HGCDigitizerBase::runDigitizer
virtual void runDigitizer(std::unique_ptr< DColl > &coll, hgc::HGCSimHitDataAccumulator &simData, const CaloSubdetectorGeometry *theGeom, const std::unordered_set< DetId > &validIds, CLHEP::HepRandomEngine *engine)=0
to be specialized by top class
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
hgc_digi_utils::addCellMetadata
void addCellMetadata(HGCCellInfo &info, const HGCalGeometry *geom, const DetId &detid)
Definition: HGCDigitizerBase.h:31
HGCDigitizerBase::updateOutput
void updateOutput(std::unique_ptr< DColl > &coll, const DFr &rawDataFrame)
prepares the output according to the number of time samples to produce
Definition: HGCDigitizerBase.cc:218
HGCDigitizerBase::noise_fC_
std::vector< float > noise_fC_
Definition: HGCDigitizerBase.h:122
HGCDigitizerBase::myFEelectronics_
std::unique_ptr< HGCFEElectronics< DFr > > myFEelectronics_
Definition: HGCDigitizerBase.h:141
HGCDigitizerBase::NoiseArrayLength_
static const size_t NoiseArrayLength_
Definition: HGCDigitizerBase.h:166
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
HGCDigitizerBase::RandNoiseGenerationFlag_
bool RandNoiseGenerationFlag_
Definition: HGCDigitizerBase.h:169
HGCDigitizerBase::NoiseMean_
const double NoiseMean_
Definition: HGCDigitizerBase.h:165
HGCDigitizerBase::subdet_
ForwardSubdetector subdet_
Definition: HGCDigitizerBase.h:161
HGCalSiNoiseMap::getMaxADCPerGain
std::vector< double > & getMaxADCPerGain()
Definition: HGCalSiNoiseMap.h:102
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
DetId::Forward
Definition: DetId.h:30
remoteMonitoring_LED_IterMethod_cfg.threshold
threshold
Definition: remoteMonitoring_LED_IterMethod_cfg.py:430
HGCDigitizerBase::scaleByDose_
bool scaleByDose_
Definition: HGCDigitizerBase.h:128
HGCalSiNoiseMap::setCceParam
void setCceParam(const std::vector< double > &parsFine, const std::vector< double > &parsThin, const std::vector< double > &parsThick)
set the cce parameters to use
Definition: HGCalSiNoiseMap.h:47
HLTEgPhaseIITestSequence_cff.noises
noises
Definition: HLTEgPhaseIITestSequence_cff.py:1348
HGCDigitizerBase::det
DetId::Detector det() const
Definition: HGCDigitizerBase.h:84
HGCDigitizerBase::myCfg_
edm::ParameterSet myCfg_
Definition: HGCDigitizerBase.h:112