CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
EcalBarrelRecHitsMaker Class Reference

#include <EcalBarrelRecHitsMaker.h>

Public Member Functions

 EcalBarrelRecHitsMaker (edm::ParameterSet const &p)
 
void init (const edm::EventSetup &es, bool dodigis, bool doMiscalib)
 
void loadEcalBarrelRecHits (edm::Event &iEvent, EBRecHitCollection &ecalHits, EBDigiCollection &ecaldigis, RandomEngineAndDistribution const *)
 
 ~EcalBarrelRecHitsMaker ()
 

Private Member Functions

void clean ()
 
void geVtoGainAdc (float e, unsigned &gain, unsigned &adc) const
 
bool isHighInterest (int tthi)
 
void loadPCaloHits (const edm::Event &iEvent, RandomEngineAndDistribution const *)
 
bool noisifyTriggerTower (unsigned tthi, RandomEngineAndDistribution const *)
 
void noisifyTriggerTowers (RandomEngineAndDistribution const *)
 
void randomNoisifier (RandomEngineAndDistribution const *)
 

Private Attributes

float adcToGeV_
 
std::vector< int > applyZSCells_
 
std::vector< uint32_t > barrelRawId_
 
double calibfactor_
 
std::vector< std::vector< int > > crystalsinTT_
 
bool doCustomHighNoise_
 
bool doDigis_
 
bool doMisCalib_
 
double EBHotFraction_
 
const
EcalTrigTowerConstituentsMap
eTTmap_
 
float geVToAdc1_
 
float geVToAdc2_
 
float geVToAdc3_
 
std::vector< double > highNoiseParameters_
 
const std::vector< float > * ICMC_
 
edm::InputTag inputCol_
 
unsigned maxAdc_
 
double meanNoiseSigmaEt_
 
unsigned minAdc_
 
const GaussianTailmyGaussianTailGenerator_
 
std::vector< std::vector< int > > neighboringTTs_
 
double noise_
 
double noiseADC_
 
std::vector< float > noisesigma_
 
bool noisified_
 
double refactor_
 
double refactor_mean_
 
float sat_
 
std::vector< float > sinTheta_
 
int SREtaSize_
 
int SRPhiSize_
 
float SRThreshold_
 
float t1_
 
float t2_
 
std::vector< float > theCalibConstants_
 
std::vector< float > theCalorimeterHits_
 
std::vector< int > theFiredCells_
 
std::vector< unsigned > theFiredTTs_
 
std::vector< EcalTrigTowerDetIdtheTTDetIds_
 
std::vector< int > theTTofHighInterest_
 
double threshold_
 
std::vector< bool > treatedTTs_
 
std::vector< int > TTHighInterest_
 
std::vector< float > TTTEnergy_
 

Detailed Description

Definition at line 20 of file EcalBarrelRecHitsMaker.h.

Constructor & Destructor Documentation

EcalBarrelRecHitsMaker::EcalBarrelRecHitsMaker ( edm::ParameterSet const &  p)

Definition at line 31 of file EcalBarrelRecHitsMaker.cc.

References applyZSCells_, alignmentValidation::c1, calibfactor_, crystalsinTT_, doCustomHighNoise_, EBHotFraction_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), highNoiseParameters_, inputCol_, EBDetId::kSizeForDenseIndexing, myGaussianTailGenerator_, neighboringTTs_, noise_, noiseADC_, noisified_, refactor_, refactor_mean_, sinTheta_, mathSSE::sqrt(), SREtaSize_, SRPhiSize_, SRThreshold_, theCalorimeterHits_, theTTDetIds_, threshold_, treatedTTs_, TTHighInterest_, and TTTEnergy_.

32 {
33  edm::ParameterSet RecHitsParameters=p.getParameter<edm::ParameterSet>("ECALBarrel");
34  inputCol_=RecHitsParameters.getParameter<edm::InputTag>("MixedSimHits");
35  noise_ = RecHitsParameters.getParameter<double>("Noise");
36  threshold_ = RecHitsParameters.getParameter<double>("Threshold");
37  refactor_ = RecHitsParameters.getParameter<double> ("Refactor");
38  refactor_mean_ = RecHitsParameters.getParameter<double> ("Refactor_mean");
39  noiseADC_ = RecHitsParameters.getParameter<double>("NoiseADC");
40  highNoiseParameters_ = RecHitsParameters.getParameter<std::vector<double> > ("HighNoiseParameters");
41  SRThreshold_ = RecHitsParameters.getParameter<double> ("SRThreshold");
42  SREtaSize_ = RecHitsParameters.getUntrackedParameter<int> ("SREtaSize",1);
43  SRPhiSize_ = RecHitsParameters.getUntrackedParameter<int> ("SRPhiSize",1);
46  crystalsinTT_.resize(2448);
47  TTTEnergy_.resize(2448,0.);
48  TTHighInterest_.resize(2448,0);
49  treatedTTs_.resize(2448,false);
50  theTTDetIds_.resize(2448);
51  neighboringTTs_.resize(2448);
52  sinTheta_.resize(86,0.);
53  doCustomHighNoise_=false;
54  // Initialize the Gaussian tail generator
55  // Two options : noise is set by the user (to a positive value). In this case, this value is taken
56  // or the user chose to use the noise from DB. In this case, the noise is flat in pT and not in energy
57  // but the threshold is in energy and not in pT.
58  doCustomHighNoise_=highNoiseParameters_.size()>=3;
59  Genfun::Erf myErf;
60  if( noise_>0. ) {
61  EBHotFraction_ = 0.5-0.5*myErf(threshold_/noise_/sqrt(2.));
62  myGaussianTailGenerator_ = new GaussianTail(noise_, threshold_);
63  edm::LogInfo("CaloRecHitsProducer") <<"Uniform noise simulation selected in the barrel";
64  } else if (noise_==-1 && doCustomHighNoise_)
65  {
66  if(highNoiseParameters_.size()==4)
67  EBHotFraction_ = 0.5-0.5*myErf(highNoiseParameters_[3]/highNoiseParameters_[2]/sqrt(2.));
68  if(highNoiseParameters_.size()==3)
69  EBHotFraction_ = highNoiseParameters_[2] ;
70  edm::LogInfo("CaloRecHitsProducer")<< " The gaussian model for high noise fluctuation cells after ZS is selected (best model), hot fraction " << EBHotFraction_ << std::endl;
71  }
72 
73  noisified_ = (noise_==0.);
74  edm::ParameterSet CalibParameters = RecHitsParameters.getParameter<edm::ParameterSet>("ContFact");
75  double c1=CalibParameters.getParameter<double>("EBs25notContainment");
76  calibfactor_=1./c1;
77 
78 
79 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const GaussianTail * myGaussianTailGenerator_
std::vector< float > sinTheta_
std::vector< float > theCalorimeterHits_
T sqrt(T t)
Definition: SSEVec.h:48
std::vector< double > highNoiseParameters_
std::vector< float > TTTEnergy_
std::vector< std::vector< int > > crystalsinTT_
std::vector< std::vector< int > > neighboringTTs_
std::vector< int > applyZSCells_
std::vector< EcalTrigTowerDetId > theTTDetIds_
std::vector< bool > treatedTTs_
std::vector< int > TTHighInterest_
EcalBarrelRecHitsMaker::~EcalBarrelRecHitsMaker ( )

Definition at line 81 of file EcalBarrelRecHitsMaker.cc.

82 {;
83 }

Member Function Documentation

void EcalBarrelRecHitsMaker::clean ( )
private

Definition at line 86 of file EcalBarrelRecHitsMaker.cc.

References applyZSCells_, noise_, noisified_, findQualityFiles::size, theCalorimeterHits_, theFiredCells_, theFiredTTs_, theTTofHighInterest_, treatedTTs_, TTHighInterest_, and TTTEnergy_.

Referenced by loadEcalBarrelRecHits().

87 {
88  // std::cout << " clean " << std::endl;
89  unsigned size=theFiredCells_.size();
90  for(unsigned ic=0;ic<size;++ic)
91  {
93  applyZSCells_[theFiredCells_[ic]] = true;
94  }
95  theFiredCells_.clear();
96  // If the noise is set to 0. No need to simulate it.
97  noisified_ = (noise_==0.);
98  // std::cout << " Finished to clean " << std::endl;
99 
100  size=theFiredTTs_.size();
101  // std::cout << " Number of barrel TT " << size << std::endl;
102  for(unsigned itt=0;itt<size;++itt)
103  {
104  // std::cout << " TT " << theFiredTTs_[itt] << " " << TTTEnergy_[theFiredTTs_[itt]] << std::endl;
105  TTTEnergy_[theFiredTTs_[itt]]=0.;
106  treatedTTs_[theFiredTTs_[itt]]=false;
107  }
108  theFiredTTs_.clear();
109 
110  size=theTTofHighInterest_.size();
111  for(unsigned itt=0;itt<size;++itt)
113  theTTofHighInterest_.clear();
114 
115 // std::cout << " Check cleaning " << std::endl;
116 // for(unsigned ic=0;ic<TTTEnergy_.size();++ic)
117 // if(TTTEnergy_[ic]!=0.) std::cout << " TT " << ic << " not cleaned " << std::endl;
118 // for(unsigned ic=0;ic<TTHighInterest_.size();++ic)
119 // if(TTHighInterest_[ic]!=0) std::cout << " TTHighInterest " << ic << TTHighInterest_[ic] << " not cleaned " << std::endl;
120 // for(unsigned ic=0;ic<treatedTTs_.size();++ic)
121 // if(treatedTTs_[ic]) std::cout << " treatedTT " << ic << treatedTTs_[ic] << " not cleaned " << std::endl;
122 
123 }
std::vector< int > theFiredCells_
std::vector< float > theCalorimeterHits_
std::vector< unsigned > theFiredTTs_
std::vector< float > TTTEnergy_
std::vector< int > theTTofHighInterest_
std::vector< int > applyZSCells_
tuple size
Write out results.
std::vector< bool > treatedTTs_
std::vector< int > TTHighInterest_
void EcalBarrelRecHitsMaker::geVtoGainAdc ( float  e,
unsigned &  gain,
unsigned &  adc 
) const
private

Definition at line 564 of file EcalBarrelRecHitsMaker.cc.

References geVToAdc1_, geVToAdc2_, geVToAdc3_, maxAdc_, bookConverter::min, minAdc_, t1_, and t2_.

Referenced by loadEcalBarrelRecHits().

565 {
566  if(e<t1_)
567  {
568  gain = 1; // x1
569  // std::cout << " E " << e << std::endl;
570  adc = minAdc_ + (unsigned)(e*geVToAdc1_);
571  // std::cout << " e*geVtoAdc1_ " << e*geVToAdc1_ << " " <<(unsigned)(e*geVToAdc1_) << std::endl;
572  }
573  else if (e<t2_)
574  {
575  gain = 2;
576  adc = minAdc_ + (unsigned)(e*geVToAdc2_);
577  }
578  else
579  {
580  gain = 3;
581  adc = std::min(minAdc_+(unsigned)(e*geVToAdc3_),maxAdc_);
582  }
583 }
int adc(sample_type sample)
get the ADC sample (12 bits)
void EcalBarrelRecHitsMaker::init ( const edm::EventSetup es,
bool  dodigis,
bool  doMiscalib 
)

Definition at line 395 of file EcalBarrelRecHitsMaker.cc.

References funct::abs(), adcToGeV_, EcalCondObjectContainer< T >::barrelItems(), barrelRawId_, calibfactor_, crystalsinTT_, doDigis_, doMisCalib_, DetId::Ecal, EcalBarrel, eTTmap_, edm::EventSetup::get(), geVToAdc1_, geVToAdc2_, geVToAdc3_, EBDetId::hashedIndex(), EcalTrigTowerDetId::hashedIndex(), ICMC_, EBDetId::ietaAbs(), EBDetId::kSizeForDenseIndexing, max(), maxAdc_, timingPdfMaker::mean, bookConverter::min, minAdc_, neighboringTTs_, noise_, noiseADC_, noisesigma_, edm::ESHandle< class >::product(), refactor_, refactor_mean_, plotscripts::rms(), sat_, funct::sin(), sinTheta_, findQualityFiles::size, mathSSE::sqrt(), SREtaSize_, SRPhiSize_, t1_, t2_, theCalibConstants_, theTTDetIds_, and EcalTrigTowerConstituentsMap::towerOf().

Referenced by CaloRecHitsProducer::beginRun().

396 {
397  // std::cout << " Initializing EcalBarrelRecHitsMaker " << std::endl;
398  doDigis_=doDigis;
399  doMisCalib_=doMiscalib;
400 
402  es.get<EcalADCToGeVConstantRcd>().get(agc);
403 
404  adcToGeV_= agc->getEBValue();// 0.035 ;
405  minAdc_ = 200;
406  maxAdc_ = 4085;
407 
408  geVToAdc1_ = 1./adcToGeV_;
409  geVToAdc2_ = geVToAdc1_/2.;
410  geVToAdc3_ = geVToAdc1_/12.;
411 
412  t1_ = ((int)maxAdc_-(int)minAdc_)*adcToGeV_;
413  t2_ = 2.* t1_ ;
414 
415  // Saturation value. Not needed in the digitization
416  sat_ = 12.*t1_*calibfactor_;
417 
421  es.get<CaloGeometryRecord>().get(pG);
422 
423 // edm::ESHandle<CaloTopology> theCaloTopology;
424 // es.get<CaloTopologyRecord>().get(theCaloTopology);
425 
427  es.get<IdealGeometryRecord>().get(hetm);
428  eTTmap_ = &(*hetm);
429 
430  const EcalBarrelGeometry * myEcalBarrelGeometry = dynamic_cast<const EcalBarrelGeometry*>(pG->getSubdetectorGeometry(DetId::Ecal,EcalBarrel));
431  // std::cout << " Got the geometry " << myEcalBarrelGeometry << std::endl;
432  const std::vector<DetId>& vec(myEcalBarrelGeometry->getValidDetIds(DetId::Ecal,EcalBarrel));
433  unsigned size=vec.size();
434  for(unsigned ic=0; ic<size; ++ic)
435  {
436  EBDetId myDetId(vec[ic]);
437  int crystalHashedIndex=myDetId.hashedIndex();
438  barrelRawId_[crystalHashedIndex]=vec[ic].rawId();
439  // save the Trigger tower DetIds
440  EcalTrigTowerDetId towid= eTTmap_->towerOf(EBDetId(vec[ic]));
441  int TThashedindex=towid.hashedIndex();
442  theTTDetIds_[TThashedindex]=towid;
443  crystalsinTT_[TThashedindex].push_back(crystalHashedIndex);
444  int ietaAbs=myDetId.ietaAbs();
445  if(sinTheta_[ietaAbs]==0.)
446  {
447  sinTheta_[ietaAbs]=std::sin(myEcalBarrelGeometry->getGeometry(myDetId)->getPosition().theta());
448  // std::cout << " Ieta abs " << ietaAbs << " " << sinTheta_[ietaAbs] << std::endl;
449  }
450  }
451 
452 
453  unsigned nTTs=theTTDetIds_.size();
454 
455 // EBDetId myDetId(-58,203);
457 // EcalTrigTowerDetId towid= eTTmap_->towerOf(myDetId);
460 // const std::vector<int> & xtals(crystalsinTT_[towid.hashedIndex()]);
461 // unsigned Size=xtals.size();
462 // for(unsigned i=0;i<Size;++i)
463 // {
464 // std::cout << EBDetId(barrelRawId_[xtals[i]]) << std::endl;
465 // }
466 
467  // now loop on each TT and save its neighbors.
468  for(unsigned iTT=0;iTT<nTTs;++iTT)
469  {
470  int ietaPivot=theTTDetIds_[iTT].ieta();
471  int iphiPivot=theTTDetIds_[iTT].iphi();
472  int TThashedIndex=theTTDetIds_[iTT].hashedIndex();
473  // std::cout << " TT Pivot " << TThashedIndex << " " << ietaPivot << " " << iphiPivot << " iz " << theTTDetIds_[iTT].zside() << std::endl;
474  int ietamin=std::max(ietaPivot-SREtaSize_,-17);
475  if(ietamin==0) ietamin=-1;
476  int ietamax=std::min(ietaPivot+SREtaSize_,17);
477  if(ietamax==0) ietamax=1;
478  int iphimin=iphiPivot-SRPhiSize_;
479  int iphimax=iphiPivot+SRPhiSize_;
480  for(int ieta=ietamin;ieta<=ietamax;)
481  {
482  int iz=(ieta>0)? 1 : -1;
483  for(int iphi=iphimin;iphi<=iphimax;)
484  {
485  int riphi=iphi;
486  if(riphi<1) riphi+=72;
487  else if(riphi>72) riphi-=72;
488  EcalTrigTowerDetId neighborTTDetId(iz,EcalBarrel,abs(ieta),riphi);
489  // std::cout << " Voisin " << ieta << " " << riphi << " " <<neighborTTDetId.hashedIndex()<< " " << neighborTTDetId.ieta() << " " << neighborTTDetId.iphi() << std::endl;
490  if(ieta!=ietaPivot||riphi!=iphiPivot)
491  {
492  neighboringTTs_[TThashedIndex].push_back(neighborTTDetId.hashedIndex());
493  }
494  ++iphi;
495 
496  }
497  ++ieta;
498  if(ieta==0) ieta=1;
499  }
500  }
501 
502  // std::cout << " Made the array " << std::endl;
503 
504  // Stores the miscalibration constants
505  if(doMisCalib_ || noise_==-1.)
506  {
507  double rms=0.;
508  double mean=0.;
509  unsigned ncells=0;
510 
511  if(noise_==-1.)
513 
514  // Intercalib MC constants IC_MC_i
516  es.get<EcalIntercalibConstantsMCRcd>().get(pJcal);
517  const EcalIntercalibConstantsMC* jcal = pJcal.product();
518  const std::vector<float>& ICMC = jcal->barrelItems();
519 
520  // should be saved, used by the zero suppression
521  ICMC_ = &ICMC;
522 
523  // Intercalib constants IC_i
524  // IC = IC_MC * (1+delta)
525  // where delta is the miscalib
527  es.get<EcalIntercalibConstantsRcd>().get(pIcal);
528  const EcalIntercalibConstants* ical = pIcal.product();
529  const std::vector<float> & IC = ical->barrelItems();
530 
531  float meanIC=0.;
532  unsigned nic = IC.size();
533  for ( unsigned ic=0; ic <nic ; ++ic ) {
534  // the miscalibration factor is
535  float factor = IC[ic]/ICMC[ic];
536  meanIC+=(IC[ic]-1.);
537  // Apply Refactor & refactor_mean
538  theCalibConstants_[ic] = refactor_mean_+(factor-1.)*refactor_;
539 
540  rms+=(factor-1.)*(factor-1.);
541  mean+=(factor-1.);
542  ++ncells;
543  if(noise_==-1.)
544  {
545  // the calibfactor will be applied later on
547  }
548 
549  }
550 
551  mean/=(float)ncells;
552  rms/=(float)ncells;
553 
554  rms=sqrt(rms-mean*mean);
555  meanIC = 1.+ meanIC/ncells;
556  // The following should be on LogInfo
557  // float NoiseSigma = 1.26 * meanIC * adcToGeV_ ;
558  // std::cout << " Found " << ncells <<
559  edm::LogInfo("CaloRecHitsProducer") << "Found " << ncells << " cells in the barrel calibration map. RMS is " << rms << std::endl;
560  // std::cout << "Found " << ncells << " cells in the barrel calibration map. RMS is " << rms << std::endl;
561  }
562 }
const std::vector< float > * ICMC_
const Items & barrelItems() const
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
int hashedIndex() const
get a compact index for arrays [TODO: NEEDS WORK]
std::vector< float > sinTheta_
EcalTrigTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
std::vector< float > noisesigma_
const T & max(const T &a, const T &b)
T sqrt(T t)
Definition: SSEVec.h:48
std::vector< uint32_t > barrelRawId_
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const EcalTrigTowerConstituentsMap * eTTmap_
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:62
std::vector< std::vector< int > > crystalsinTT_
std::vector< std::vector< int > > neighboringTTs_
std::vector< float > theCalibConstants_
tuple size
Write out results.
std::vector< EcalTrigTowerDetId > theTTDetIds_
bool EcalBarrelRecHitsMaker::isHighInterest ( int  tthi)
private

Definition at line 585 of file EcalBarrelRecHitsMaker.cc.

References neighboringTTs_, query::result, findQualityFiles::size, SRThreshold_, theTTofHighInterest_, TTHighInterest_, and TTTEnergy_.

Referenced by loadEcalBarrelRecHits().

586 {
587 
588  if(TTHighInterest_[tthi]!=0) return (TTHighInterest_[tthi]>0);
589 
590  TTHighInterest_[tthi]=(TTTEnergy_[tthi] > SRThreshold_) ? 1:-1;
591  // if high interest, can leave ; otherwise look at the neighbours)
592  if( TTHighInterest_[tthi]==1)
593  {
594  theTTofHighInterest_.push_back(tthi);
595  return true;
596  }
597 
598  // now look if a neighboring TT is of high interest
599  const std::vector<int> & tts(neighboringTTs_[tthi]);
600  // a tower is of high interest if it or one of its neighbour is above the SR threshold
601  unsigned size=tts.size();
602  bool result=false;
603  for(unsigned itt=0;itt<size&&!result;++itt)
604  {
605  if(TTTEnergy_[tts[itt]] > SRThreshold_) result=true;
606  }
607  TTHighInterest_[tthi]=(result)? 1:-1;
608  theTTofHighInterest_.push_back(tthi);
609  return result;
610 }
tuple result
Definition: query.py:137
std::vector< float > TTTEnergy_
std::vector< std::vector< int > > neighboringTTs_
std::vector< int > theTTofHighInterest_
tuple size
Write out results.
std::vector< int > TTHighInterest_
void EcalBarrelRecHitsMaker::loadEcalBarrelRecHits ( edm::Event iEvent,
EBRecHitCollection ecalHits,
EBDigiCollection ecaldigis,
RandomEngineAndDistribution const *  random 
)

Definition at line 125 of file EcalBarrelRecHitsMaker.cc.

References ecalMGPA::adc(), applyZSCells_, edm::DataFrameContainer::back(), barrelRawId_, clean(), doDigis_, relval_parameters_module::energy, eTTmap_, geVtoGainAdc(), EcalTrigTowerDetId::hashedIndex(), isHighInterest(), loadPCaloHits(), edm::DataFrameContainer::push_back(), edm::SortedCollection< T, SORT >::push_back(), edm::DataFrameContainer::reserve(), edm::SortedCollection< T, SORT >::reserve(), sat_, SRThreshold_, theCalorimeterHits_, theFiredCells_, threshold_, and EcalTrigTowerConstituentsMap::towerOf().

Referenced by CaloRecHitsProducer::produce().

127 {
128 
129  clean();
130  loadPCaloHits(iEvent, random);
131 
132  unsigned nhit=theFiredCells_.size();
133  // std::cout << " loadEcalBarrelRecHits " << nhit << std::endl;
134  unsigned gain, adc;
135  ecalDigis.reserve(nhit);
136  ecalHits.reserve(nhit);
137  for(unsigned ihit=0;ihit<nhit;++ihit)
138  {
139  unsigned icell = theFiredCells_[ihit];
140 
141  EBDetId myDetId(barrelRawId_[icell]);
142  EcalTrigTowerDetId towid= eTTmap_->towerOf(myDetId);
143  int TThashedindex=towid.hashedIndex();
144 
145  if(doDigis_)
146  {
147  ecalDigis.push_back( myDetId );
148  EBDataFrame myDataFrame( ecalDigis.back() );
149  // myDataFrame.setSize(1); // now useless - by construction fixed at 1 frame - FIXME
150  // The real work is in the following line
151  geVtoGainAdc(theCalorimeterHits_[icell],gain,adc);
152  myDataFrame.setSample(0,EcalMGPASample(adc,gain));
153 
154  // std::cout << "myDataFrame" << myDataFrame.sample(0).raw() << std::endl;
155  //ecalDigis.push_back(myDataFrame);
156  }
157 
158  // If the energy+noise is below the threshold, a hit is nevertheless created, otherwise, there is a risk that a "noisy" hit
159  // is afterwards put in this cell which would not be correct.
160  float energy=theCalorimeterHits_[icell];
161  // std::cout << myDetId << " Energy " << theCalorimeterHits_[icell] << " " << TTTEnergy_[TThashedindex] << " " << isHighInterest(TThashedindex) << std::endl;
162  if ( SRThreshold_ && energy < threshold_ && !isHighInterest(TThashedindex) && applyZSCells_[icell])
163  {
164  // std::cout << " Killed " << std::endl;
165  theCalorimeterHits_[icell]=0.;
166  energy=0.;
167  }
168  // else
169  // std::cout << " SR " << TTTEnergy_[TThashedindex] << " Cell energy " << energy << " 1" << std::endl;
170 // if( TTTEnergy_[TThashedindex] < SRThreshold_ && energy > threshold_)
171 // std::cout << " SR " << TTTEnergy_[TThashedindex] << " Cell energy " << energy << std::endl;
172  if (energy > sat_)
173  {
174  theCalorimeterHits_[icell]=sat_;
175  energy=sat_;
176  }
177 // std::cout << " Threshold ok " << std::endl;
178 // std::cout << " Raw Id " << barrelRawId_[icell] << std::endl;
179 // std::cout << " Adding " << icell << " " << barrelRawId_[icell] << " " << energy << std::endl;
180  if(energy!=0.)
181  ecalHits.push_back(EcalRecHit(myDetId,energy,0.));
182  // std::cout << " Hit stored " << std::endl;
183  }
184  // std::cout << " Done " << std::endl;
185 
186 }
int adc(sample_type sample)
get the ADC sample (12 bits)
std::vector< int > theFiredCells_
int hashedIndex() const
get a compact index for arrays [TODO: NEEDS WORK]
void push_back(T const &t)
TRandom random
Definition: MVATrainer.cc:138
EcalTrigTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
std::vector< float > theCalorimeterHits_
void geVtoGainAdc(float e, unsigned &gain, unsigned &adc) const
std::vector< uint32_t > barrelRawId_
void loadPCaloHits(const edm::Event &iEvent, RandomEngineAndDistribution const *)
const EcalTrigTowerConstituentsMap * eTTmap_
void reserve(size_type n)
std::vector< int > applyZSCells_
void EcalBarrelRecHitsMaker::loadPCaloHits ( const edm::Event iEvent,
RandomEngineAndDistribution const *  random 
)
private

Definition at line 188 of file EcalBarrelRecHitsMaker.cc.

References calib, calibfactor_, doMisCalib_, relval_parameters_module::energy, eTTmap_, RandomEngineAndDistribution::gaussShoot(), edm::Event::getByLabel(), ecalpyutils::hashedIndex(), EcalTrigTowerDetId::hashedIndex(), EBDetId::ietaAbs(), inputCol_, noise_, noisesigma_, noisified_, noisifyTriggerTowers(), edm::Handle< T >::product(), sinTheta_, theCalibConstants_, theCalorimeterHits_, theFiredCells_, theFiredTTs_, EcalTrigTowerConstituentsMap::towerOf(), and TTTEnergy_.

Referenced by loadEcalBarrelRecHits().

189 {
190 
192  iEvent.getByLabel(inputCol_,cf);
193  std::auto_ptr<MixCollection<PCaloHit> > colcalo(new MixCollection<PCaloHit>(cf.product(),std::pair<int,int>(0,0) ));
194 
195 
196  theFiredCells_.reserve(colcalo->size());
197 
199  MixCollection<PCaloHit>::iterator cficaloend=colcalo->end();
200 
201  for (cficalo=colcalo->begin(); cficalo!=cficaloend;cficalo++)
202  {
203  unsigned hashedindex = EBDetId(cficalo->id()).hashedIndex();
204  // the famous 1/0.97 calibration factor is applied here !
205  // the miscalibration is applied here:
207  // Check if the hit already exists
208  if(theCalorimeterHits_[hashedindex]==0.)
209  {
210  theFiredCells_.push_back(hashedindex);
211  float noise=(noise_==-1.) ? noisesigma_[hashedindex] : noise_ ;
212  if (!noisified_ ) theCalorimeterHits_[hashedindex] += random->gaussShoot(0.,noise*calib);
213  }
214 
215 
216  // cficalo->energy can be 0 (a 7x7 grid is always built) if there is no noise simulated, in this case the cells should
217  // not be added several times.
218  float energy=(cficalo->energy()==0.) ? 0.000001 : cficalo->energy() ;
219  energy*=calib;
220  theCalorimeterHits_[hashedindex]+=energy;
221 
222  // Now deal with the TTs.
223  EBDetId myDetId(EBDetId(cficalo->id()));
224  EcalTrigTowerDetId towid= eTTmap_->towerOf(myDetId);
225 // std::cout << " Added " << energy << " in " << EBDetId(cficalo->id()) << std::endl;
226  int TThashedindex=towid.hashedIndex();
227  if(TTTEnergy_[TThashedindex]==0.)
228  {
229  theFiredTTs_.push_back(TThashedindex);
230 // std::cout << " Creating " ;
231  }
232  // std::cout << " Updating " << TThashedindex << " " << energy << " " << sinTheta_[myDetId.ietaAbs()] <<std::endl;
233  TTTEnergy_[TThashedindex]+=energy*sinTheta_[myDetId.ietaAbs()];
234  // std::cout << " TT " << TThashedindex << " updated, now contains " << TTTEnergy_[TThashedindex] << std::endl;
235  }
237  noisified_ = true;
238 }
std::vector< int > theFiredCells_
int hashedIndex() const
get a compact index for arrays [TODO: NEEDS WORK]
TRandom random
Definition: MVATrainer.cc:138
std::vector< float > sinTheta_
EcalTrigTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
std::vector< float > theCalorimeterHits_
std::vector< float > noisesigma_
int hashedIndex(int ieta, int iphi)
Definition: EcalPyUtils.cc:42
void noisifyTriggerTowers(RandomEngineAndDistribution const *)
MVATrainerComputer * calib
Definition: MVATrainer.cc:64
std::vector< unsigned > theFiredTTs_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:390
const EcalTrigTowerConstituentsMap * eTTmap_
std::vector< float > TTTEnergy_
T const * product() const
Definition: Handle.h:81
std::vector< float > theCalibConstants_
bool EcalBarrelRecHitsMaker::noisifyTriggerTower ( unsigned  tthi,
RandomEngineAndDistribution const *  random 
)
private

Definition at line 283 of file EcalBarrelRecHitsMaker.cc.

References barrelRawId_, calib, calibfactor_, counter, crystalsinTT_, doMisCalib_, relval_parameters_module::energy, RandomEngineAndDistribution::gaussShoot(), EBDetId::ietaAbs(), noise_, noisesigma_, sinTheta_, theCalibConstants_, theCalorimeterHits_, theFiredCells_, theFiredTTs_, treatedTTs_, and TTTEnergy_.

Referenced by noisifyTriggerTowers().

284 {
285  // check if the TT has already been treated or not
286  if(treatedTTs_[tthi]) return false;
287  // get the crystals in the TT (this info might need to be cached)
288  // const std::vector<DetId> & xtals=eTTmap_->constituentsOf(theTTDetIds_[tthi]);
289  const std::vector<int> & xtals(crystalsinTT_[tthi]);
290  unsigned nxtals=xtals.size();
291  unsigned counter =0 ;
292  float energy=0.;
293  for(unsigned ic=0;ic<nxtals;++ic)
294  {
295  unsigned hashedindex=xtals[ic];
296  // check if the crystal has been already hit
297 // std::cout << " Checking " << EBDetId(barrelRawId_[xtals[ic]]) << " " << theCalorimeterHits_[hashedindex] << std::endl;
298  if(theCalorimeterHits_[hashedindex]==0)
299  {
301  float noise = (noise_==-1.) ? noisesigma_[hashedindex]:noise_;
302  float energy = calib*random->gaussShoot(0.,noise);
303  theCalorimeterHits_[hashedindex]=energy;
304  // std::cout << " Updating with noise " << tthi << " " << energy << " " << sinTheta_[EBDetId(barrelRawId_[hashedindex]).ietaAbs()] << std::endl;
305  if(TTTEnergy_[tthi]==0.)
306  theFiredTTs_.push_back(tthi);
307  TTTEnergy_[tthi]+=energy*sinTheta_[EBDetId(barrelRawId_[hashedindex]).ietaAbs()];
308 
309  theFiredCells_.push_back(hashedindex);
310  ++counter;
311  }
312  else
313  energy+=theCalorimeterHits_[hashedindex];
314  }
315 // std::cout << " Energy " << energy << " Added noise in " << counter << " cells" << std::endl;
316  treatedTTs_[tthi]=true;
317  return true;
318 }
std::vector< int > theFiredCells_
TRandom random
Definition: MVATrainer.cc:138
std::vector< float > sinTheta_
std::vector< float > theCalorimeterHits_
std::vector< float > noisesigma_
MVATrainerComputer * calib
Definition: MVATrainer.cc:64
std::vector< uint32_t > barrelRawId_
std::vector< unsigned > theFiredTTs_
std::vector< float > TTTEnergy_
std::vector< std::vector< int > > crystalsinTT_
static std::atomic< unsigned int > counter
std::vector< float > theCalibConstants_
int ietaAbs() const
get the absolute value of the crystal ieta
Definition: EBDetId.h:49
std::vector< bool > treatedTTs_
void EcalBarrelRecHitsMaker::noisifyTriggerTowers ( RandomEngineAndDistribution const *  random)
private

Definition at line 240 of file EcalBarrelRecHitsMaker.cc.

References recoMuon::in, neighboringTTs_, noise_, noisifyTriggerTower(), nTT, randomNoisifier(), theFiredTTs_, treatedTTs_, and TTTEnergy_.

Referenced by loadPCaloHits().

241 {
242  if(noise_==0.) return;
243 // std::cout << " List of TT before" << std::endl;
244 // for(unsigned itt=0;itt<theFiredTTs_.size();++itt)
245 // std::cout << " TT " << theFiredTTs_[itt] << " " << TTTEnergy_[theFiredTTs_[itt]] << std::endl;
246 
247  // std::cout << " Starting to noisify the trigger towers " << std::endl;
248  unsigned nTT=theFiredTTs_.size();
249  for(unsigned itt=0;itt<nTT;++itt)
250  {
251  // std::cout << "Treating " << theFiredTTs_[itt] << " " << theTTDetIds_[theFiredTTs_[itt]].ieta() << " " << theTTDetIds_[theFiredTTs_[itt]].iphi() << " " << TTTEnergy_[theFiredTTs_[itt]] << std::endl;
252  // shoot noise in the trigger tower
254  // get the neighboring TTs
255  const std::vector<int>& neighbors=neighboringTTs_[theFiredTTs_[itt]];
256  unsigned nneighbors=neighbors.size();
257  // inject noise in those towers only if they have not been looked at yet
258  // std::cout << " Now looking at the neighbours " << std::endl;
259  for(unsigned in=0;in<nneighbors;++in)
260  {
261  // std::cout << " TT " << neighbors[in] << " " << theTTDetIds_[neighbors[in]] << " has been treated " << treatedTTs_[neighbors[in]] << std::endl;
262  if(!treatedTTs_[neighbors[in]])
263  {
264  noisifyTriggerTower(neighbors[in], random);
265  if(TTTEnergy_[neighbors[in]]==0.)
266  theFiredTTs_.push_back(neighbors[in]);
267  // std::cout << " Added " << neighbors[in] << " in theFiredTTs_ " << std::endl;;
268  }
269  }
270  }
271 // std::cout << " List of TT after" << std::endl;
272 // for(unsigned itt=0;itt<theFiredTTs_.size();++itt)
273 // {
274 // std::cout << " TT " << theFiredTTs_[itt] << " " << TTTEnergy_[theFiredTTs_[itt]] << std::endl;
275 // const std::vector<int> & xtals=crystalsinTT_[theFiredTTs_[itt]];
276 // for(unsigned ic=0;ic<xtals.size();++ic)
277 // std::cout << EBDetId::unhashIndex(xtals[ic]) << " " << theCalorimeterHits_[xtals[ic]] << std::endl;
278 // }
279 
281 }
void randomNoisifier(RandomEngineAndDistribution const *)
TRandom random
Definition: MVATrainer.cc:138
#define nTT
Definition: TMEGeom.h:6
std::vector< unsigned > theFiredTTs_
std::vector< float > TTTEnergy_
bool noisifyTriggerTower(unsigned tthi, RandomEngineAndDistribution const *)
std::vector< std::vector< int > > neighboringTTs_
std::vector< bool > treatedTTs_
void EcalBarrelRecHitsMaker::randomNoisifier ( RandomEngineAndDistribution const *  random)
private

Definition at line 323 of file EcalBarrelRecHitsMaker.cc.

References adcToGeV_, applyZSCells_, calib, calibfactor_, doCustomHighNoise_, doMisCalib_, EBHotFraction_, relval_parameters_module::energy, eTTmap_, RandomEngineAndDistribution::flatShoot(), RandomEngineAndDistribution::gaussShoot(), ecalpyutils::hashedIndex(), highNoiseParameters_, ICMC_, EBDetId::ietaAbs(), EBDetId::kSizeForDenseIndexing, timingPdfMaker::mean, myGaussianTailGenerator_, noise_, noisesigma_, RandomEngineAndDistribution::poissonShoot(), GaussianTail::shoot(), sinTheta_, theCalibConstants_, theCalorimeterHits_, theFiredCells_, theFiredTTs_, EcalTrigTowerConstituentsMap::towerOf(), TTTEnergy_, and EBDetId::unhashIndex().

Referenced by noisifyTriggerTowers().

324 {
325  // first number of cells where some noise will be injected
327  unsigned ncells= random->poissonShoot(mean);
328 
329  // if hot fraction is high (for example, no ZS, inject everywhere)
330  bool fullInjection=(noise_==-1. && !doCustomHighNoise_);
331 
332  if(fullInjection)
334  // for debugging
335  // std::vector<int> listofNewTowers;
336 
337  unsigned icell=0;
338  while(icell < ncells)
339  {
340  unsigned cellindex= (!fullInjection) ?
341  (unsigned)(floor(random->flatShoot()*EBDetId::kSizeForDenseIndexing)): icell ;
342 
343  if(theCalorimeterHits_[cellindex]==0.)
344  {
345  float energy=0.;
346  if(noise_>0.)
348  if(noise_==-1.)
349  {
350  // in this case the generated noise might be below the threshold but it
351  // does not matter, the threshold will be applied anyway
352  // energy/=sinTheta_[(cellindex<EEDetId::kEEhalf)?cellindex : cellindex-EEDetId::kEEhalf];
353  float noisemean = (doCustomHighNoise_)? highNoiseParameters_[0]*(*ICMC_)[cellindex]*adcToGeV_: 0.;
354  float noisesigma = (doCustomHighNoise_)? highNoiseParameters_[1]*(*ICMC_)[cellindex]*adcToGeV_ : noisesigma_[cellindex];
355  energy=random->gaussShoot(noisemean,noisesigma);
356 
357  // in the case of high noise fluctuation, the ZS should not be applied later
358  if(doCustomHighNoise_) applyZSCells_[cellindex]=false;
359  }
361  energy *= calib;
362  theCalorimeterHits_[cellindex]=energy;
363  theFiredCells_.push_back(cellindex);
364  EBDetId myDetId(EBDetId::unhashIndex(cellindex));
365  // now get the TT
366  int TThashedindex=(eTTmap_->towerOf(myDetId)).hashedIndex();
367  // std::cout << " myDetIds " << myDetId << " "TTHI " << TThashedindex<< std::endl;
368  if(TTTEnergy_[TThashedindex]==0.)
369  {
370  theFiredTTs_.push_back(TThashedindex);
371  TTTEnergy_[TThashedindex]+=energy*sinTheta_[myDetId.ietaAbs()];
372  // listofNewTowers.push_back(TThashedindex);
373  }
374 // else
375 // {
376 // std::vector<int>::const_iterator itcheck=std::find(listofNewTowers.begin(),listofNewTowers.end(),
377 // TThashedindex);
378 // if(itcheck==listofNewTowers.end())
379 // {
380 // std::cout << " EcalBarrelRecHitsMaker : this tower has already been treated " << TTTEnergy_[TThashedindex] << std::endl;
381 // const std::vector<int> & xtals=crystalsinTT_[TThashedindex];
382 // for(unsigned ic=0;ic<xtals.size();++ic)
383 // std::cout << EBDetId::unhashIndex(xtals[ic]) << " " << theCalorimeterHits_[xtals[ic]] << std::endl;
384 // }
385 // }
386  if(noise_>0.)
387  ++icell;
388  }
389  if(noise_==-1.)
390  ++icell;
391  }
392  // std::cout << " Injected random noise in " << ncells << " cells " << std::endl;
393 }
const GaussianTail * myGaussianTailGenerator_
const std::vector< float > * ICMC_
std::vector< int > theFiredCells_
TRandom random
Definition: MVATrainer.cc:138
std::vector< float > sinTheta_
EcalTrigTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
std::vector< float > theCalorimeterHits_
double shoot(RandomEngineAndDistribution const *) const
Definition: GaussianTail.cc:18
std::vector< float > noisesigma_
int hashedIndex(int ieta, int iphi)
Definition: EcalPyUtils.cc:42
MVATrainerComputer * calib
Definition: MVATrainer.cc:64
std::vector< double > highNoiseParameters_
std::vector< unsigned > theFiredTTs_
const EcalTrigTowerConstituentsMap * eTTmap_
std::vector< float > TTTEnergy_
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
Definition: EBDetId.h:114
std::vector< float > theCalibConstants_
std::vector< int > applyZSCells_

Member Data Documentation

float EcalBarrelRecHitsMaker::adcToGeV_
private

Definition at line 65 of file EcalBarrelRecHitsMaker.h.

Referenced by init(), and randomNoisifier().

std::vector<int> EcalBarrelRecHitsMaker::applyZSCells_
private
std::vector<uint32_t> EcalBarrelRecHitsMaker::barrelRawId_
private

Definition at line 64 of file EcalBarrelRecHitsMaker.h.

Referenced by init(), loadEcalBarrelRecHits(), and noisifyTriggerTower().

double EcalBarrelRecHitsMaker::calibfactor_
private
std::vector<std::vector<int> > EcalBarrelRecHitsMaker::crystalsinTT_
private

Definition at line 83 of file EcalBarrelRecHitsMaker.h.

Referenced by EcalBarrelRecHitsMaker(), init(), and noisifyTriggerTower().

bool EcalBarrelRecHitsMaker::doCustomHighNoise_
private

Definition at line 92 of file EcalBarrelRecHitsMaker.h.

Referenced by EcalBarrelRecHitsMaker(), and randomNoisifier().

bool EcalBarrelRecHitsMaker::doDigis_
private

Definition at line 41 of file EcalBarrelRecHitsMaker.h.

Referenced by init(), and loadEcalBarrelRecHits().

bool EcalBarrelRecHitsMaker::doMisCalib_
private

Definition at line 42 of file EcalBarrelRecHitsMaker.h.

Referenced by init(), loadPCaloHits(), noisifyTriggerTower(), and randomNoisifier().

double EcalBarrelRecHitsMaker::EBHotFraction_
private

Definition at line 49 of file EcalBarrelRecHitsMaker.h.

Referenced by EcalBarrelRecHitsMaker(), and randomNoisifier().

const EcalTrigTowerConstituentsMap* EcalBarrelRecHitsMaker::eTTmap_
private
float EcalBarrelRecHitsMaker::geVToAdc1_
private

Definition at line 66 of file EcalBarrelRecHitsMaker.h.

Referenced by geVtoGainAdc(), and init().

float EcalBarrelRecHitsMaker::geVToAdc2_
private

Definition at line 66 of file EcalBarrelRecHitsMaker.h.

Referenced by geVtoGainAdc(), and init().

float EcalBarrelRecHitsMaker::geVToAdc3_
private

Definition at line 66 of file EcalBarrelRecHitsMaker.h.

Referenced by geVtoGainAdc(), and init().

std::vector<double> EcalBarrelRecHitsMaker::highNoiseParameters_
private

Definition at line 91 of file EcalBarrelRecHitsMaker.h.

Referenced by EcalBarrelRecHitsMaker(), and randomNoisifier().

const std::vector<float>* EcalBarrelRecHitsMaker::ICMC_
private

Definition at line 106 of file EcalBarrelRecHitsMaker.h.

Referenced by init(), and randomNoisifier().

edm::InputTag EcalBarrelRecHitsMaker::inputCol_
private

Definition at line 53 of file EcalBarrelRecHitsMaker.h.

Referenced by EcalBarrelRecHitsMaker(), and loadPCaloHits().

unsigned EcalBarrelRecHitsMaker::maxAdc_
private

Definition at line 68 of file EcalBarrelRecHitsMaker.h.

Referenced by geVtoGainAdc(), and init().

double EcalBarrelRecHitsMaker::meanNoiseSigmaEt_
private

Definition at line 102 of file EcalBarrelRecHitsMaker.h.

unsigned EcalBarrelRecHitsMaker::minAdc_
private

Definition at line 67 of file EcalBarrelRecHitsMaker.h.

Referenced by geVtoGainAdc(), and init().

const GaussianTail* EcalBarrelRecHitsMaker::myGaussianTailGenerator_
private

Definition at line 50 of file EcalBarrelRecHitsMaker.h.

Referenced by EcalBarrelRecHitsMaker(), and randomNoisifier().

std::vector<std::vector<int> > EcalBarrelRecHitsMaker::neighboringTTs_
private
double EcalBarrelRecHitsMaker::noise_
private
double EcalBarrelRecHitsMaker::noiseADC_
private

Definition at line 104 of file EcalBarrelRecHitsMaker.h.

Referenced by EcalBarrelRecHitsMaker(), and init().

std::vector<float> EcalBarrelRecHitsMaker::noisesigma_
private
bool EcalBarrelRecHitsMaker::noisified_
private

Definition at line 52 of file EcalBarrelRecHitsMaker.h.

Referenced by clean(), EcalBarrelRecHitsMaker(), and loadPCaloHits().

double EcalBarrelRecHitsMaker::refactor_
private

Definition at line 43 of file EcalBarrelRecHitsMaker.h.

Referenced by EcalBarrelRecHitsMaker(), and init().

double EcalBarrelRecHitsMaker::refactor_mean_
private

Definition at line 44 of file EcalBarrelRecHitsMaker.h.

Referenced by EcalBarrelRecHitsMaker(), and init().

float EcalBarrelRecHitsMaker::sat_
private

Definition at line 69 of file EcalBarrelRecHitsMaker.h.

Referenced by init(), and loadEcalBarrelRecHits().

std::vector<float> EcalBarrelRecHitsMaker::sinTheta_
private
int EcalBarrelRecHitsMaker::SREtaSize_
private

Definition at line 96 of file EcalBarrelRecHitsMaker.h.

Referenced by EcalBarrelRecHitsMaker(), and init().

int EcalBarrelRecHitsMaker::SRPhiSize_
private

Definition at line 97 of file EcalBarrelRecHitsMaker.h.

Referenced by EcalBarrelRecHitsMaker(), and init().

float EcalBarrelRecHitsMaker::SRThreshold_
private
float EcalBarrelRecHitsMaker::t1_
private

Definition at line 69 of file EcalBarrelRecHitsMaker.h.

Referenced by geVtoGainAdc(), and init().

float EcalBarrelRecHitsMaker::t2_
private

Definition at line 69 of file EcalBarrelRecHitsMaker.h.

Referenced by geVtoGainAdc(), and init().

std::vector<float> EcalBarrelRecHitsMaker::theCalibConstants_
private

Definition at line 61 of file EcalBarrelRecHitsMaker.h.

Referenced by init(), loadPCaloHits(), noisifyTriggerTower(), and randomNoisifier().

std::vector<float> EcalBarrelRecHitsMaker::theCalorimeterHits_
private
std::vector<int> EcalBarrelRecHitsMaker::theFiredCells_
private
std::vector<unsigned> EcalBarrelRecHitsMaker::theFiredTTs_
private
std::vector<EcalTrigTowerDetId> EcalBarrelRecHitsMaker::theTTDetIds_
private

Definition at line 73 of file EcalBarrelRecHitsMaker.h.

Referenced by EcalBarrelRecHitsMaker(), and init().

std::vector<int> EcalBarrelRecHitsMaker::theTTofHighInterest_
private

Definition at line 85 of file EcalBarrelRecHitsMaker.h.

Referenced by clean(), and isHighInterest().

double EcalBarrelRecHitsMaker::threshold_
private

Definition at line 46 of file EcalBarrelRecHitsMaker.h.

Referenced by EcalBarrelRecHitsMaker(), and loadEcalBarrelRecHits().

std::vector<bool> EcalBarrelRecHitsMaker::treatedTTs_
private
std::vector<int> EcalBarrelRecHitsMaker::TTHighInterest_
private

Definition at line 87 of file EcalBarrelRecHitsMaker.h.

Referenced by clean(), EcalBarrelRecHitsMaker(), and isHighInterest().

std::vector<float> EcalBarrelRecHitsMaker::TTTEnergy_
private