CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
EcalRecHitWorkerRecover Class Reference

#include <EcalRecHitWorkerRecover.h>

Inheritance diagram for EcalRecHitWorkerRecover:
EcalRecHitWorkerBaseClass

Public Member Functions

 EcalRecHitWorkerRecover (const edm::ParameterSet &, edm::ConsumesCollector &c)
 
bool run (const edm::Event &evt, const EcalUncalibratedRecHit &uncalibRH, EcalRecHitCollection &result) override
 
void set (const edm::EventSetup &es) override
 
 ~EcalRecHitWorkerRecover () override
 
- Public Member Functions inherited from EcalRecHitWorkerBaseClass
 EcalRecHitWorkerBaseClass (const edm::ParameterSet &)
 
 EcalRecHitWorkerBaseClass (const edm::ParameterSet &, edm::ConsumesCollector &c)
 
virtual ~EcalRecHitWorkerBaseClass ()
 

Protected Member Functions

bool alreadyInserted (const DetId &id)
 
bool checkChannelStatus (const DetId &id, const std::vector< int > &statusestoexclude)
 
float estimateEnergy (int ieta, EcalRecHitCollection *hits, const std::set< DetId > &sId, const std::vector< DetId > &vId, const EcalTPGScale &tpgscale)
 
void insertRecHit (const EcalRecHit &hit, EcalRecHitCollection &collection)
 
float recCheckCalib (float energy, int ieta)
 

Protected Attributes

edm::ESHandle< CaloGeometrycaloGeometry_
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordcaloGeometryToken_
 
edm::ESHandle< CaloTopologycaloTopology_
 
edm::ESGetToken< CaloTopology, CaloTopologyRecordcaloTopologyToken_
 
edm::ESHandle< EcalChannelStatuschStatus_
 
edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcdchStatusToken_
 
std::vector< int > dbStatusToBeExcludedEB_
 
std::vector< int > dbStatusToBeExcludedEE_
 
EcalDeadChannelRecoveryAlgos< EBDetIdebDeadChannelCorrector
 
const CaloSubdetectorGeometryebGeom_
 
const EcalElectronicsMappingecalMapping_
 
EcalTPGScale::Tokens ecalScaleTokens_
 
EcalDeadChannelRecoveryAlgos< EEDetIdeeDeadChannelCorrector
 
const edm::EventSetupeventSetup_ = nullptr
 
const CaloGeometrygeo_
 
bool killDeadChannels_
 
edm::ESHandle< EcalLaserDbServicelaser
 
edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecordlaserToken_
 
double logWarningEtThreshold_EB_FE_
 
double logWarningEtThreshold_EE_FE_
 
edm::ESHandle< CaloSubdetectorGeometrypEBGeom_
 
edm::ESGetToken< CaloSubdetectorGeometry, EcalBarrelGeometryRecordpEBGeomToken_
 
edm::ESHandle< EcalElectronicsMappingpEcalMapping_
 
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcdpEcalMappingToken_
 
std::unique_ptr< EcalRecHitSimpleAlgorechitMaker_
 
bool recoverEBFE_
 
bool recoverEBIsolatedChannels_
 
bool recoverEBVFE_
 
std::set< DetIdrecoveredDetIds_EB_
 
std::set< DetIdrecoveredDetIds_EE_
 
bool recoverEEFE_
 
bool recoverEEIsolatedChannels_
 
bool recoverEEVFE_
 
std::string singleRecoveryMethod_
 
double singleRecoveryThreshold_
 
double sum8RecoveryThreshold_
 
edm::EDGetTokenT< EcalTrigPrimDigiCollectiontpDigiToken_
 
EcalTPGScale::Tokens tpgscaleTokens_
 
edm::ESHandle< EcalTrigTowerConstituentsMapttMap_
 
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecordttMapToken_
 

Additional Inherited Members

- Public Types inherited from EcalRecHitWorkerBaseClass
enum  RecoveryFlags {
  EB_single, EE_single, EB_VFE, EE_VFE,
  EB_FE, EE_FE
}
 

Detailed Description

Algorithms to recover dead channels

Definition at line 36 of file EcalRecHitWorkerRecover.h.

Constructor & Destructor Documentation

◆ EcalRecHitWorkerRecover()

EcalRecHitWorkerRecover::EcalRecHitWorkerRecover ( const edm::ParameterSet ps,
edm::ConsumesCollector c 
)

Definition at line 17 of file EcalRecHitWorkerRecover.cc.

19  rechitMaker_ = std::make_unique<EcalRecHitSimpleAlgo>();
20  // isolated channel recovery
21  singleRecoveryMethod_ = ps.getParameter<std::string>("singleChannelRecoveryMethod");
22  singleRecoveryThreshold_ = ps.getParameter<double>("singleChannelRecoveryThreshold");
23  sum8RecoveryThreshold_ = ps.getParameter<double>("sum8ChannelRecoveryThreshold");
24  killDeadChannels_ = ps.getParameter<bool>("killDeadChannels");
25  recoverEBIsolatedChannels_ = ps.getParameter<bool>("recoverEBIsolatedChannels");
26  recoverEEIsolatedChannels_ = ps.getParameter<bool>("recoverEEIsolatedChannels");
27  recoverEBVFE_ = ps.getParameter<bool>("recoverEBVFE");
28  recoverEEVFE_ = ps.getParameter<bool>("recoverEEVFE");
29  recoverEBFE_ = ps.getParameter<bool>("recoverEBFE");
30  recoverEEFE_ = ps.getParameter<bool>("recoverEEFE");
38 
39  dbStatusToBeExcludedEE_ = ps.getParameter<std::vector<int> >("dbStatusToBeExcludedEE");
40  dbStatusToBeExcludedEB_ = ps.getParameter<std::vector<int> >("dbStatusToBeExcludedEB");
41 
42  logWarningEtThreshold_EB_FE_ = ps.getParameter<double>("logWarningEtThreshold_EB_FE");
43  logWarningEtThreshold_EE_FE_ = ps.getParameter<double>("logWarningEtThreshold_EE_FE");
44 
45  tpDigiToken_ =
46  c.consumes<EcalTrigPrimDigiCollection>(ps.getParameter<edm::InputTag>("triggerPrimitiveDigiCollection"));
47 
50 }

References c, caloGeometryToken_, caloTopologyToken_, chStatusToken_, dbStatusToBeExcludedEB_, dbStatusToBeExcludedEE_, ebDeadChannelCorrector, ecal_dqm_sourceclient-live_cfg::EcalLaserDbService, edm::ParameterSet::getParameter(), killDeadChannels_, laserToken_, logWarningEtThreshold_EB_FE_, logWarningEtThreshold_EE_FE_, pEBGeomToken_, pEcalMappingToken_, rechitMaker_, recoverEBFE_, recoverEBIsolatedChannels_, recoverEBVFE_, recoverEEFE_, recoverEEIsolatedChannels_, recoverEEVFE_, EcalDeadChannelRecoveryAlgos< DetIdT >::setParameters(), singleRecoveryMethod_, singleRecoveryThreshold_, AlCaHLTBitMon_QueryRunRegistry::string, sum8RecoveryThreshold_, tpDigiToken_, and ttMapToken_.

◆ ~EcalRecHitWorkerRecover()

EcalRecHitWorkerRecover::~EcalRecHitWorkerRecover ( )
inlineoverride

Definition at line 39 of file EcalRecHitWorkerRecover.h.

39 {};

Member Function Documentation

◆ alreadyInserted()

bool EcalRecHitWorkerRecover::alreadyInserted ( const DetId id)
protected

Definition at line 414 of file EcalRecHitWorkerRecover.cc.

414  {
415  bool res = false;
416  if (id.subdetId() == EcalBarrel) {
417  res = (recoveredDetIds_EB_.find(id) != recoveredDetIds_EB_.end());
418  } else if (id.subdetId() == EcalEndcap) {
419  res = (recoveredDetIds_EE_.find(id) != recoveredDetIds_EE_.end());
420  } else {
421  edm::LogError("EcalRecHitWorkerRecover::InvalidDetId") << "Invalid DetId " << id.rawId();
422  }
423  return res;
424 }

References EcalBarrel, EcalEndcap, recoveredDetIds_EB_, and recoveredDetIds_EE_.

Referenced by insertRecHit(), and run().

◆ checkChannelStatus()

bool EcalRecHitWorkerRecover::checkChannelStatus ( const DetId id,
const std::vector< int > &  statusestoexclude 
)
protected

Definition at line 433 of file EcalRecHitWorkerRecover.cc.

433  {
434  if (!chStatus_.isValid())
435  edm::LogError("ObjectNotFound") << "Channel Status not set";
436 
438  uint16_t dbStatus = 0;
439  if (chIt != chStatus_->end()) {
440  dbStatus = chIt->getEncodedStatusCode();
441  } else {
442  edm::LogError("ObjectNotFound") << "No channel status found for xtal " << id.rawId()
443  << "! something wrong with EcalChannelStatus in your DB? ";
444  }
445 
446  for (std::vector<int>::const_iterator status = statusestoexclude.begin(); status != statusestoexclude.end();
447  ++status) {
448  if (*status == dbStatus)
449  return false;
450  }
451 
452  return true;
453 }

References chStatus_, and mps_update::status.

Referenced by run().

◆ estimateEnergy()

float EcalRecHitWorkerRecover::estimateEnergy ( int  ieta,
EcalRecHitCollection hits,
const std::set< DetId > &  sId,
const std::vector< DetId > &  vId,
const EcalTPGScale tpgscale 
)
protected

Definition at line 362 of file EcalRecHitWorkerRecover.cc.

366  {
367  float xtalE = 0;
368  int count = 0;
369  for (std::vector<DetId>::const_iterator vIdit = vId.begin(); vIdit != vId.end(); ++vIdit) {
370  std::set<DetId>::const_iterator sIdit = sId.find(*vIdit);
371  if (sIdit == sId.end()) {
372  float energy = hits->find(*vIdit)->energy();
373  float eta = geo_->getPosition(*vIdit).eta();
374  float pf = 1.0 / cosh(eta);
375  xtalE += energy * pf;
376  count++;
377  }
378  }
379 
380  if (count == 0) { // If there are no overlapping crystals return saturated value.
381 
382  double etsat = tpgscale.getTPGInGeV(0xFF,
383  ttMap_->towerOf(*vId.begin())); // get saturation value for the first
384  // constituent, for the others it's the same
385 
386  return etsat / cosh(ieta) * (ieta > 26 ? 2 : 1); // account for duplicated TT in EE for ieta>26
387  } else
388  return xtalE * ((vId.size() / (float)count) - 1) * (ieta > 26 ? 2 : 1);
389 }

References submitPVResolutionJobs::count, HCALHighEnergyHPDFilter_cfi::energy, PVValHelper::eta, PV3DBase< T, PVType, FrameType >::eta(), dqmMemoryStats::float, geo_, CaloGeometry::getPosition(), EcalTPGScale::getTPGInGeV(), hfClusterShapes_cfi::hits, LEDCalibrationChannels::ieta, packedPFCandidateRefMixer_cfi::pf, EcalTrigTowerConstituentsMap::towerOf(), and ttMap_.

Referenced by run().

◆ insertRecHit()

void EcalRecHitWorkerRecover::insertRecHit ( const EcalRecHit hit,
EcalRecHitCollection collection 
)
protected

Definition at line 391 of file EcalRecHitWorkerRecover.cc.

391  {
392  // skip already inserted DetId's and raise a log warning
393  if (alreadyInserted(hit.id())) {
394  edm::LogWarning("EcalRecHitWorkerRecover") << "DetId already recovered! Skipping...";
395  return;
396  }
398  if (it == collection.end()) {
399  // insert the hit in the collection
400  collection.push_back(hit);
401  } else {
402  // overwrite existing recHit
403  *it = hit;
404  }
405  if (hit.id().subdetId() == EcalBarrel) {
406  recoveredDetIds_EB_.insert(hit.id());
407  } else if (hit.id().subdetId() == EcalEndcap) {
408  recoveredDetIds_EE_.insert(hit.id());
409  } else {
410  edm::LogError("EcalRecHitWorkerRecover::InvalidDetId") << "Invalid DetId " << hit.id().rawId();
411  }
412 }

References alreadyInserted(), universalConfigTemplate::collection, EcalBarrel, EcalEndcap, hit::id, recoveredDetIds_EB_, and recoveredDetIds_EE_.

Referenced by run().

◆ recCheckCalib()

float EcalRecHitWorkerRecover::recCheckCalib ( float  energy,
int  ieta 
)
protected

Definition at line 428 of file EcalRecHitWorkerRecover.cc.

428 { return eTT; }

◆ run()

bool EcalRecHitWorkerRecover::run ( const edm::Event evt,
const EcalUncalibratedRecHit uncalibRH,
EcalRecHitCollection result 
)
overridevirtual

Implements EcalRecHitWorkerBaseClass.

Definition at line 69 of file EcalRecHitWorkerRecover.cc.

71  {
72  DetId detId = uncalibRH.id();
73  uint32_t flags = (0xF & uncalibRH.flags());
74 
75  // get laser coefficient
76  //float lasercalib = laser->getLaserCorrection( detId, evt.time());
77 
78  // killDeadChannels_ = true, means explicitely kill dead channels even if the recovered energies are computed in the code
79  // if you don't want to store the recovered energies in the rechit you can produce LogWarnings if logWarningEtThreshold_EB(EE)_FE>0
80  // logWarningEtThreshold_EB(EE)_FE_<0 will not compute the recovered energies at all (faster)
81 
82  if (killDeadChannels_) {
87  EcalRecHit hit(detId, 0., 0., EcalRecHit::kDead);
88  hit.setFlag(EcalRecHit::kDead);
89  insertRecHit(hit, result); // insert trivial rechit with kDead flag
90  return true;
91  }
93  EcalTrigTowerDetId ttDetId(((EBDetId)detId).tower());
94  std::vector<DetId> vid = ttMap_->constituentsOf(ttDetId);
95  for (std::vector<DetId>::const_iterator dit = vid.begin(); dit != vid.end(); ++dit) {
96  EcalRecHit hit((*dit), 0., 0., EcalRecHit::kDead);
97  hit.setFlag(EcalRecHit::kDead);
98  insertRecHit(hit, result); // insert trivial rechit with kDead flag
99  }
101  return true; // if you don't want log warning just return true
102  }
104  EEDetId id(detId);
105  EcalScDetId sc(1 + (id.ix() - 1) / 5, 1 + (id.iy() - 1) / 5, id.zside());
106  std::vector<DetId> eeC;
107  for (int dx = 1; dx <= 5; ++dx) {
108  for (int dy = 1; dy <= 5; ++dy) {
109  int ix = (sc.ix() - 1) * 5 + dx;
110  int iy = (sc.iy() - 1) * 5 + dy;
111  int iz = sc.zside();
112  if (EEDetId::validDetId(ix, iy, iz)) {
113  eeC.push_back(EEDetId(ix, iy, iz));
114  }
115  }
116  }
117  for (size_t i = 0; i < eeC.size(); ++i) {
118  EcalRecHit hit(eeC[i], 0., 0., EcalRecHit::kDead);
119  hit.setFlag(EcalRecHit::kDead);
120  insertRecHit(hit, result); // insert trivial rechit with kDead flag
121  }
123  return true; // if you don't want log warning just return true
124  }
125  }
126 
128  // recover as single dead channel
130 
131  // channel recovery. Accepted new RecHit has the flag AcceptRecHit=TRUE
132  bool AcceptRecHit = true;
133  float ebEn = ebDeadChannelCorrector.correct(
135  EcalRecHit hit(detId, ebEn, 0., EcalRecHit::kDead);
136 
137  if (hit.energy() != 0 and AcceptRecHit == true) {
139  } else {
140  // recovery failed
141  hit.setFlag(EcalRecHit::kDead);
142  }
144 
146  // recover as single dead channel
148 
149  // channel recovery. Accepted new RecHit has the flag AcceptRecHit=TRUE
150  bool AcceptRecHit = true;
151  float eeEn = eeDeadChannelCorrector.correct(
153  EcalRecHit hit(detId, eeEn, 0., EcalRecHit::kDead);
154  if (hit.energy() != 0 and AcceptRecHit == true) {
156  } else {
157  // recovery failed
158  hit.setFlag(EcalRecHit::kDead);
159  }
161 
162  } else if (flags == EcalRecHitWorkerRecover::EB_VFE) {
163  // recover as dead VFE
164  EcalRecHit hit(detId, 0., 0.);
165  hit.setFlag(EcalRecHit::kDead);
166  // recovery not implemented
168  } else if (flags == EcalRecHitWorkerRecover::EB_FE) {
169  // recover as dead TT
170 
171  EcalTrigTowerDetId ttDetId(((EBDetId)detId).tower());
173  evt.getByToken(tpDigiToken_, pTPDigis);
174  const EcalTrigPrimDigiCollection* tpDigis = nullptr;
175  tpDigis = pTPDigis.product();
176 
178  // recover the whole trigger tower
179  if (tp != tpDigis->end()) {
181  //std::vector<DetId> vid = ecalMapping_->dccTowerConstituents( ecalMapping_->DCCid( ttDetId ), ecalMapping_->iTT( ttDetId ) );
182  std::vector<DetId> vid = ttMap_->constituentsOf(ttDetId);
183  float tpEt = ecalScale.getTPGInGeV(tp->compressedEt(), tp->id());
184  float tpEtThreshEB = logWarningEtThreshold_EB_FE_;
185  if (tpEt > tpEtThreshEB) {
186  edm::LogWarning("EnergyInDeadEB_FE") << "TP energy in the dead TT = " << tpEt << " at " << ttDetId;
187  }
189  // democratic energy sharing
190 
191  for (std::vector<DetId>::const_iterator dit = vid.begin(); dit != vid.end(); ++dit) {
192  if (alreadyInserted(*dit))
193  continue;
194  float theta = ebGeom_->getGeometry(*dit)->getPosition().theta();
195  float tpEt = ecalScale.getTPGInGeV(tp->compressedEt(), tp->id());
197  EcalRecHit hit(*dit, tpEt / ((float)vid.size()) / sin(theta), 0.);
199  if (tp->compressedEt() == 0xFF)
200  hit.setFlag(EcalRecHit::kTPSaturated);
201  if (tp->sFGVB())
202  hit.setFlag(EcalRecHit::kL1SpikeFlag);
204  }
205  }
206  } else {
207  // tp not found => recovery failed
208  std::vector<DetId> vid = ttMap_->constituentsOf(ttDetId);
209  for (std::vector<DetId>::const_iterator dit = vid.begin(); dit != vid.end(); ++dit) {
210  if (alreadyInserted(*dit))
211  continue;
212  EcalRecHit hit(*dit, 0., 0.);
213  hit.setFlag(EcalRecHit::kDead);
215  }
216  }
217  }
218  } else if (flags == EcalRecHitWorkerRecover::EE_FE) {
219  // Structure for recovery:
220  // ** SC --> EEDetId constituents (eeC) --> associated Trigger Towers (aTT) --> EEDetId constituents (aTTC)
221  // ** energy for a SC EEDetId = [ sum_aTT(energy) - sum_aTTC(energy) ] / N_eeC
222  // .. i.e. the total energy of the TTs covering the SC minus
223  // .. the energy of the recHits in the TTs but not in the SC
224  //std::vector<DetId> vid = ecalMapping_->dccTowerConstituents( ecalMapping_->DCCid( ttDetId ), ecalMapping_->iTT( ttDetId ) );
225  // due to lack of implementation of the EcalTrigTowerDetId ix,iy methods in EE we compute Et recovered energies (in EB we compute E)
226 
227  EEDetId eeId(detId);
228  EcalScDetId sc((eeId.ix() - 1) / 5 + 1, (eeId.iy() - 1) / 5 + 1, eeId.zside());
229  std::set<DetId> eeC;
230  for (int dx = 1; dx <= 5; ++dx) {
231  for (int dy = 1; dy <= 5; ++dy) {
232  int ix = (sc.ix() - 1) * 5 + dx;
233  int iy = (sc.iy() - 1) * 5 + dy;
234  int iz = sc.zside();
235  if (EEDetId::validDetId(ix, iy, iz)) {
236  EEDetId id(ix, iy, iz);
238  eeC.insert(id);
239  } // check status
240  }
241  }
242  }
243 
245  evt.getByToken(tpDigiToken_, pTPDigis);
246  const EcalTrigPrimDigiCollection* tpDigis = nullptr;
247  tpDigis = pTPDigis.product();
248 
249  // associated trigger towers
250  std::set<EcalTrigTowerDetId> aTT;
251  for (std::set<DetId>::const_iterator it = eeC.begin(); it != eeC.end(); ++it) {
252  aTT.insert(ttMap_->towerOf(*it));
253  }
254 
257  // associated trigger towers: total energy
258  float totE = 0;
259  // associated trigger towers: EEDetId constituents
260  std::set<DetId> aTTC;
261  bool atLeastOneTPSaturated = false;
262  for (std::set<EcalTrigTowerDetId>::const_iterator it = aTT.begin(); it != aTT.end(); ++it) {
263  // add the energy of this trigger tower
265  if (itTP != tpDigis->end()) {
266  std::vector<DetId> v = ttMap_->constituentsOf(*it);
267 
268  // from the constituents, remove dead channels
269  std::vector<DetId>::iterator ttcons = v.begin();
270  while (ttcons != v.end()) {
272  ttcons = v.erase(ttcons);
273  } else {
274  ++ttcons;
275  }
276  } // while
277 
278  if (itTP->compressedEt() == 0xFF) { // In the case of a saturated trigger tower, a fraction
279  atLeastOneTPSaturated =
280  true; //of the saturated energy is put in: number of xtals in dead region/total xtals in TT *63.75
281 
282  //Alternative recovery algorithm that I will now investigate.
283  //Estimate energy sums the energy in the working channels, then decides how much energy
284  //to put here depending on that. Duncan 20101203
285 
286  totE += estimateEnergy(itTP->id().ietaAbs(), &result, eeC, v, tpgscale);
287 
288  /*
289  These commented out lines use
290  64GeV*fraction of the TT overlapping the dead FE
291 
292  int count = 0;
293  for (std::vector<DetId>::const_iterator idsit = v.begin(); idsit != v.end(); ++ idsit){
294  std::set<DetId>::const_iterator itFind = eeC.find(*idsit);
295  if (itFind != eeC.end())
296  ++count;
297  }
298  //std::cout << count << ", " << v.size() << std::endl;
299  totE+=((float)count/(float)v.size())* ((it->ietaAbs()>26)?2*ecalScale_.getTPGInGeV( itTP->compressedEt(), itTP->id() ):ecalScale_.getTPGInGeV( itTP->compressedEt(), itTP->id() ));*/
300  } else {
301  totE += ((it->ietaAbs() > 26) ? 2 : 1) * ecalScale.getTPGInGeV(itTP->compressedEt(), itTP->id());
302  }
303 
304  // get the trigger tower constituents
305 
306  if (itTP->compressedEt() == 0) { // If there's no energy in TT, the constituents are removed from the recovery.
307  for (size_t i = 0; i < v.size(); ++i)
308  eeC.erase(v[i]);
309  } else if (itTP->compressedEt() != 0xFF) {
310  //If it's saturated the energy has already been determined, so we do not want to subtract any channels
311  for (size_t j = 0; j < v.size(); ++j) {
312  aTTC.insert(v[j]);
313  }
314  }
315  }
316  }
317  // remove crystals of dead SC
318  // (this step is not needed if sure that SC crystals are not
319  // in the recHit collection)
320 
321  for (std::set<DetId>::const_iterator it = eeC.begin(); it != eeC.end(); ++it) {
322  aTTC.erase(*it);
323  }
324  // compute the total energy for the dead SC
325  const EcalRecHitCollection* hits = &result;
326  for (std::set<DetId>::const_iterator it = aTTC.begin(); it != aTTC.end(); ++it) {
328  if (jt != hits->end()) {
329  float energy = jt->energy(); // Correct conversion to Et
330  float eta = geo_->getPosition(jt->id()).eta();
331  float pf = 1.0 / cosh(eta);
332  // use Et instead of E, consistent with the Et estimation of the associated TT
333  totE -= energy * pf;
334  }
335  }
336 
337  float scEt = totE;
338  float scEtThreshEE = logWarningEtThreshold_EE_FE_;
339  if (scEt > scEtThreshEE) {
340  edm::LogWarning("EnergyInDeadEE_FE") << "TP energy in the dead TT = " << scEt << " at " << sc;
341  }
342 
343  // assign the energy to the SC crystals
344  if (!killDeadChannels_ || recoverEEFE_) { // if eeC is empty, i.e. there are no hits
345  // in the tower, nothing is returned. No negative values from noise.
346  for (std::set<DetId>::const_iterator it = eeC.begin(); it != eeC.end(); ++it) {
347  float eta = geo_->getPosition(*it).eta(); //Convert back to E from Et for the recovered hits
348  float pf = 1.0 / cosh(eta);
349  EcalRecHit hit(*it, totE / ((float)eeC.size() * pf), 0);
350 
351  if (atLeastOneTPSaturated)
352  hit.setFlag(EcalRecHit::kTPSaturated);
355 
356  } // for
357  } // if
358  }
359  return true;
360 }

References alreadyInserted(), caloTopology_, checkChannelStatus(), EcalTrigTowerConstituentsMap::constituentsOf(), EcalDeadChannelRecoveryAlgos< DetIdT >::correct(), dbStatusToBeExcludedEB_, dbStatusToBeExcludedEE_, PVValHelper::dx, PVValHelper::dy, EcalRecHitWorkerBaseClass::EB_FE, EcalRecHitWorkerBaseClass::EB_single, EcalRecHitWorkerBaseClass::EB_VFE, ebDeadChannelCorrector, ebGeom_, ecalScaleTokens_, EcalRecHitWorkerBaseClass::EE_FE, EcalRecHitWorkerBaseClass::EE_single, EcalRecHitWorkerBaseClass::EE_VFE, eeDeadChannelCorrector, edm::SortedCollection< T, SORT >::end(), HCALHighEnergyHPDFilter_cfi::energy, estimateEnergy(), PVValHelper::eta, PV3DBase< T, PVType, FrameType >::eta(), eventSetup_, edm::SortedCollection< T, SORT >::find(), EcalUncalibratedRecHit::flags(), HLT_FULL_cff::flags, geo_, edm::Event::getByToken(), CaloSubdetectorGeometry::getGeometry(), CaloGeometry::getPosition(), EcalTPGScale::getTPGInGeV(), hfClusterShapes_cfi::hits, mps_fire::i, triggerObjects_cff::id, EcalUncalibratedRecHit::id(), insertRecHit(), EcalScDetId::ix(), EEDetId::ix(), EcalScDetId::iy(), EEDetId::iy(), dqmiolumiharvest::j, EcalRecHit::kDead, killDeadChannels_, EcalRecHit::kL1SpikeFlag, EcalRecHit::kNeighboursRecovered, EcalRecHit::kTowerRecovered, EcalRecHit::kTPSaturated, logWarningEtThreshold_EB_FE_, logWarningEtThreshold_EE_FE_, packedPFCandidateRefMixer_cfi::pf, edm::Handle< T >::product(), edm::ESHandle< T >::product(), recoverEBFE_, recoverEBIsolatedChannels_, recoverEBVFE_, recoverEEFE_, recoverEEIsolatedChannels_, recoverEEVFE_, mps_fire::result, EcalDeadChannelRecoveryAlgos< DetIdT >::setCaloTopology(), funct::sin(), singleRecoveryMethod_, singleRecoveryThreshold_, sum8RecoveryThreshold_, theta(), hgcalTowerProducer_cfi::tower, EcalTrigTowerConstituentsMap::towerOf(), cmsswSequenceInfo::tp, tpDigiToken_, tpgscaleTokens_, ttMap_, findQualityFiles::v, EEDetId::validDetId(), EcalScDetId::zside(), EEDetId::zside(), and ecaldqm::zside().

◆ set()

void EcalRecHitWorkerRecover::set ( const edm::EventSetup es)
overridevirtual

Member Data Documentation

◆ caloGeometry_

edm::ESHandle<CaloGeometry> EcalRecHitWorkerRecover::caloGeometry_
protected

Definition at line 60 of file EcalRecHitWorkerRecover.h.

Referenced by set().

◆ caloGeometryToken_

edm::ESGetToken<CaloGeometry, CaloGeometryRecord> EcalRecHitWorkerRecover::caloGeometryToken_
protected

Definition at line 63 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and set().

◆ caloTopology_

edm::ESHandle<CaloTopology> EcalRecHitWorkerRecover::caloTopology_
protected

Definition at line 59 of file EcalRecHitWorkerRecover.h.

Referenced by run(), and set().

◆ caloTopologyToken_

edm::ESGetToken<CaloTopology, CaloTopologyRecord> EcalRecHitWorkerRecover::caloTopologyToken_
protected

Definition at line 62 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and set().

◆ chStatus_

edm::ESHandle<EcalChannelStatus> EcalRecHitWorkerRecover::chStatus_
protected

Definition at line 61 of file EcalRecHitWorkerRecover.h.

Referenced by checkChannelStatus(), and set().

◆ chStatusToken_

edm::ESGetToken<EcalChannelStatus, EcalChannelStatusRcd> EcalRecHitWorkerRecover::chStatusToken_
protected

Definition at line 64 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and set().

◆ dbStatusToBeExcludedEB_

std::vector<int> EcalRecHitWorkerRecover::dbStatusToBeExcludedEB_
protected

Definition at line 81 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ dbStatusToBeExcludedEE_

std::vector<int> EcalRecHitWorkerRecover::dbStatusToBeExcludedEE_
protected

Definition at line 80 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ ebDeadChannelCorrector

EcalDeadChannelRecoveryAlgos<EBDetId> EcalRecHitWorkerRecover::ebDeadChannelCorrector
protected

Definition at line 107 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ ebGeom_

const CaloSubdetectorGeometry* EcalRecHitWorkerRecover::ebGeom_
protected

Definition at line 95 of file EcalRecHitWorkerRecover.h.

Referenced by run(), and set().

◆ ecalMapping_

const EcalElectronicsMapping* EcalRecHitWorkerRecover::ecalMapping_
protected

Definition at line 88 of file EcalRecHitWorkerRecover.h.

Referenced by set().

◆ ecalScaleTokens_

EcalTPGScale::Tokens EcalRecHitWorkerRecover::ecalScaleTokens_
protected

Definition at line 85 of file EcalRecHitWorkerRecover.h.

Referenced by run().

◆ eeDeadChannelCorrector

EcalDeadChannelRecoveryAlgos<EEDetId> EcalRecHitWorkerRecover::eeDeadChannelCorrector
protected

Definition at line 108 of file EcalRecHitWorkerRecover.h.

Referenced by run().

◆ eventSetup_

const edm::EventSetup* EcalRecHitWorkerRecover::eventSetup_ = nullptr
protected

Definition at line 83 of file EcalRecHitWorkerRecover.h.

Referenced by run(), and set().

◆ geo_

const CaloGeometry* EcalRecHitWorkerRecover::geo_
protected

Definition at line 96 of file EcalRecHitWorkerRecover.h.

Referenced by estimateEnergy(), run(), and set().

◆ killDeadChannels_

bool EcalRecHitWorkerRecover::killDeadChannels_
protected

Definition at line 69 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ laser

edm::ESHandle<EcalLaserDbService> EcalRecHitWorkerRecover::laser
protected

Definition at line 55 of file EcalRecHitWorkerRecover.h.

Referenced by set().

◆ laserToken_

edm::ESGetToken<EcalLaserDbService, EcalLaserDbRecord> EcalRecHitWorkerRecover::laserToken_
protected

Definition at line 56 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and set().

◆ logWarningEtThreshold_EB_FE_

double EcalRecHitWorkerRecover::logWarningEtThreshold_EB_FE_
protected

Definition at line 89 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ logWarningEtThreshold_EE_FE_

double EcalRecHitWorkerRecover::logWarningEtThreshold_EE_FE_
protected

Definition at line 90 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ pEBGeom_

edm::ESHandle<CaloSubdetectorGeometry> EcalRecHitWorkerRecover::pEBGeom_
protected

Definition at line 94 of file EcalRecHitWorkerRecover.h.

Referenced by set().

◆ pEBGeomToken_

edm::ESGetToken<CaloSubdetectorGeometry, EcalBarrelGeometryRecord> EcalRecHitWorkerRecover::pEBGeomToken_
protected

Definition at line 99 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and set().

◆ pEcalMapping_

edm::ESHandle<EcalElectronicsMapping> EcalRecHitWorkerRecover::pEcalMapping_
protected

Definition at line 87 of file EcalRecHitWorkerRecover.h.

Referenced by set().

◆ pEcalMappingToken_

edm::ESGetToken<EcalElectronicsMapping, EcalMappingRcd> EcalRecHitWorkerRecover::pEcalMappingToken_
protected

Definition at line 97 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and set().

◆ rechitMaker_

std::unique_ptr<EcalRecHitSimpleAlgo> EcalRecHitWorkerRecover::rechitMaker_
protected

Definition at line 100 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover().

◆ recoverEBFE_

bool EcalRecHitWorkerRecover::recoverEBFE_
protected

Definition at line 75 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ recoverEBIsolatedChannels_

bool EcalRecHitWorkerRecover::recoverEBIsolatedChannels_
protected

Definition at line 71 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ recoverEBVFE_

bool EcalRecHitWorkerRecover::recoverEBVFE_
protected

Definition at line 73 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ recoveredDetIds_EB_

std::set<DetId> EcalRecHitWorkerRecover::recoveredDetIds_EB_
protected

Definition at line 102 of file EcalRecHitWorkerRecover.h.

Referenced by alreadyInserted(), insertRecHit(), and set().

◆ recoveredDetIds_EE_

std::set<DetId> EcalRecHitWorkerRecover::recoveredDetIds_EE_
protected

Definition at line 103 of file EcalRecHitWorkerRecover.h.

Referenced by alreadyInserted(), insertRecHit(), and set().

◆ recoverEEFE_

bool EcalRecHitWorkerRecover::recoverEEFE_
protected

Definition at line 76 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ recoverEEIsolatedChannels_

bool EcalRecHitWorkerRecover::recoverEEIsolatedChannels_
protected

Definition at line 72 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ recoverEEVFE_

bool EcalRecHitWorkerRecover::recoverEEVFE_
protected

Definition at line 74 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ singleRecoveryMethod_

std::string EcalRecHitWorkerRecover::singleRecoveryMethod_
protected

Definition at line 68 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ singleRecoveryThreshold_

double EcalRecHitWorkerRecover::singleRecoveryThreshold_
protected

Definition at line 66 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ sum8RecoveryThreshold_

double EcalRecHitWorkerRecover::sum8RecoveryThreshold_
protected

Definition at line 67 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ tpDigiToken_

edm::EDGetTokenT<EcalTrigPrimDigiCollection> EcalRecHitWorkerRecover::tpDigiToken_
protected

Definition at line 86 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and run().

◆ tpgscaleTokens_

EcalTPGScale::Tokens EcalRecHitWorkerRecover::tpgscaleTokens_
protected

Definition at line 105 of file EcalRecHitWorkerRecover.h.

Referenced by run().

◆ ttMap_

edm::ESHandle<EcalTrigTowerConstituentsMap> EcalRecHitWorkerRecover::ttMap_
protected

Definition at line 92 of file EcalRecHitWorkerRecover.h.

Referenced by estimateEnergy(), run(), and set().

◆ ttMapToken_

edm::ESGetToken<EcalTrigTowerConstituentsMap, IdealGeometryRecord> EcalRecHitWorkerRecover::ttMapToken_
protected

Definition at line 98 of file EcalRecHitWorkerRecover.h.

Referenced by EcalRecHitWorkerRecover(), and set().

EcalRecHitWorkerBaseClass::EE_VFE
Definition: EcalRecHitWorkerBaseClass.h:15
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
EcalRecHit::kNeighboursRecovered
Definition: EcalRecHit.h:29
EcalRecHitWorkerRecover::caloGeometryToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
Definition: EcalRecHitWorkerRecover.h:63
EcalRecHitWorkerRecover::checkChannelStatus
bool checkChannelStatus(const DetId &id, const std::vector< int > &statusestoexclude)
Definition: EcalRecHitWorkerRecover.cc:433
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
EcalRecHit
Definition: EcalRecHit.h:15
EcalRecHit::kTPSaturated
Definition: EcalRecHit.h:33
mps_fire.i
i
Definition: mps_fire.py:428
edm::ESInputTag
Definition: ESInputTag.h:87
edm::SortedCollection::const_iterator
std::vector< T >::const_iterator const_iterator
Definition: SortedCollection.h:80
EcalTPGScale
Definition: EcalTPGScale.h:16
EcalDeadChannelRecoveryAlgos::setParameters
void setParameters(const edm::ParameterSet &ps)
Definition: EcalDeadChannelRecoveryAlgos.cc:17
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
hit::id
unsigned int id
Definition: SiStripHitEffFromCalibTree.cc:92
EcalRecHitWorkerRecover::pEcalMapping_
edm::ESHandle< EcalElectronicsMapping > pEcalMapping_
Definition: EcalRecHitWorkerRecover.h:87
edm::Handle::product
T const * product() const
Definition: Handle.h:70
EcalRecHitWorkerRecover::chStatus_
edm::ESHandle< EcalChannelStatus > chStatus_
Definition: EcalRecHitWorkerRecover.h:61
EcalRecHitWorkerRecover::eeDeadChannelCorrector
EcalDeadChannelRecoveryAlgos< EEDetId > eeDeadChannelCorrector
Definition: EcalRecHitWorkerRecover.h:108
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
vid
Definition: VIDCutFlowResult.h:25
EcalRecHitWorkerRecover::eventSetup_
const edm::EventSetup * eventSetup_
Definition: EcalRecHitWorkerRecover.h:83
EcalRecHitWorkerRecover::recoverEEIsolatedChannels_
bool recoverEEIsolatedChannels_
Definition: EcalRecHitWorkerRecover.h:72
EcalRecHit::kL1SpikeFlag
Definition: EcalRecHit.h:34
mps_update.status
status
Definition: mps_update.py:69
EcalRecHitWorkerRecover::tpgscaleTokens_
EcalTPGScale::Tokens tpgscaleTokens_
Definition: EcalRecHitWorkerRecover.h:105
CaloGeometry::getPosition
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
Definition: CaloGeometry.cc:50
ecaldqm::zside
int zside(DetId const &)
Definition: EcalDQMCommonUtils.cc:189
EcalRecHitWorkerRecover::recoveredDetIds_EB_
std::set< DetId > recoveredDetIds_EB_
Definition: EcalRecHitWorkerRecover.h:102
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
EBDetId
Definition: EBDetId.h:17
EcalRecHitWorkerRecover::dbStatusToBeExcludedEE_
std::vector< int > dbStatusToBeExcludedEE_
Definition: EcalRecHitWorkerRecover.h:80
EcalRecHitWorkerBaseClass::EB_single
Definition: EcalRecHitWorkerBaseClass.h:15
EcalRecHitWorkerRecover::singleRecoveryThreshold_
double singleRecoveryThreshold_
Definition: EcalRecHitWorkerRecover.h:66
EcalRecHitWorkerRecover::pEcalMappingToken_
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > pEcalMappingToken_
Definition: EcalRecHitWorkerRecover.h:97
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
EcalRecHitWorkerRecover::logWarningEtThreshold_EB_FE_
double logWarningEtThreshold_EB_FE_
Definition: EcalRecHitWorkerRecover.h:89
edm::SortedCollection
Definition: SortedCollection.h:49
EcalRecHitWorkerRecover::insertRecHit
void insertRecHit(const EcalRecHit &hit, EcalRecHitCollection &collection)
Definition: EcalRecHitWorkerRecover.cc:391
EcalRecHitWorkerRecover::logWarningEtThreshold_EE_FE_
double logWarningEtThreshold_EE_FE_
Definition: EcalRecHitWorkerRecover.h:90
EcalRecHitWorkerRecover::recoverEEVFE_
bool recoverEEVFE_
Definition: EcalRecHitWorkerRecover.h:74
EcalRecHitWorkerRecover::ecalScaleTokens_
EcalTPGScale::Tokens ecalScaleTokens_
Definition: EcalRecHitWorkerRecover.h:85
EcalRecHitWorkerRecover::caloTopology_
edm::ESHandle< CaloTopology > caloTopology_
Definition: EcalRecHitWorkerRecover.h:59
EcalRecHitWorkerRecover::estimateEnergy
float estimateEnergy(int ieta, EcalRecHitCollection *hits, const std::set< DetId > &sId, const std::vector< DetId > &vId, const EcalTPGScale &tpgscale)
Definition: EcalRecHitWorkerRecover.cc:362
EcalDeadChannelRecoveryAlgos::correct
float correct(const DetIdT id, const EcalRecHitCollection &hit_collection, std::string algo, double single8Cut, double sum8Cut, bool *accFlag)
Definition: EcalDeadChannelRecoveryAlgos.cc:27
CaloTopologyRecord
Definition: CaloTopologyRecord.h:10
EcalRecHitWorkerRecover::alreadyInserted
bool alreadyInserted(const DetId &id)
Definition: EcalRecHitWorkerRecover.cc:414
EcalRecHitWorkerRecover::rechitMaker_
std::unique_ptr< EcalRecHitSimpleAlgo > rechitMaker_
Definition: EcalRecHitWorkerRecover.h:100
EcalTrigTowerDetId
Definition: EcalTrigTowerDetId.h:14
findQualityFiles.v
v
Definition: findQualityFiles.py:179
EcalRecHit::kTowerRecovered
Definition: EcalRecHit.h:30
edm::Handle
Definition: AssociativeIterator.h:50
EcalRecHitWorkerRecover::laserToken_
edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecord > laserToken_
Definition: EcalRecHitWorkerRecover.h:56
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
CaloTopology
Definition: CaloTopology.h:19
EcalBarrelGeometryRecord
Definition: EcalBarrelGeometryRecord.h:23
EcalBarrel
Definition: EcalSubdetector.h:10
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
DetId
Definition: DetId.h:17
EcalRecHitWorkerBaseClass::EB_FE
Definition: EcalRecHitWorkerBaseClass.h:15
CaloGeometry
Definition: CaloGeometry.h:21
PVValHelper::eta
Definition: PVValidationHelpers.h:70
EcalScDetId
Definition: EcalScDetId.h:24
EcalRecHitWorkerRecover::chStatusToken_
edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > chStatusToken_
Definition: EcalRecHitWorkerRecover.h:64
submitPVResolutionJobs.count
count
Definition: submitPVResolutionJobs.py:352
theta
Geom::Theta< T > theta() const
Definition: Basic3DVectorLD.h:150
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
edm::Event::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:535
cmsswSequenceInfo.tp
tp
Definition: cmsswSequenceInfo.py:17
EcalLaserDbRecord
Definition: EcalLaserDbRecord.h:19
EEDetId
Definition: EEDetId.h:14
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalRecHitWorkerRecover::ttMapToken_
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > ttMapToken_
Definition: EcalRecHitWorkerRecover.h:98
EcalRecHitWorkerRecover::geo_
const CaloGeometry * geo_
Definition: EcalRecHitWorkerRecover.h:96
EcalEndcap
Definition: EcalSubdetector.h:10
EcalTrigTowerConstituentsMap
Definition: EcalTrigTowerConstituentsMap.h:19
EcalRecHitWorkerRecover::ttMap_
edm::ESHandle< EcalTrigTowerConstituentsMap > ttMap_
Definition: EcalRecHitWorkerRecover.h:92
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
ecal_dqm_sourceclient-live_cfg.EcalLaserDbService
EcalLaserDbService
Definition: ecal_dqm_sourceclient-live_cfg.py:65
EcalRecHitWorkerRecover::tpDigiToken_
edm::EDGetTokenT< EcalTrigPrimDigiCollection > tpDigiToken_
Definition: EcalRecHitWorkerRecover.h:86
EcalUncalibratedRecHit::id
DetId id() const
Definition: EcalUncalibratedRecHit.h:38
EcalChannelStatusRcd
Definition: EcalChannelStatusRcd.h:5
EcalRecHitWorkerRecover::recoveredDetIds_EE_
std::set< DetId > recoveredDetIds_EE_
Definition: EcalRecHitWorkerRecover.h:103
EcalRecHitWorkerRecover::ebGeom_
const CaloSubdetectorGeometry * ebGeom_
Definition: EcalRecHitWorkerRecover.h:95
edm::SortedCollection< EcalRecHit >::iterator
std::vector< EcalRecHit >::iterator iterator
Definition: SortedCollection.h:81
edm::SortedCollection::end
const_iterator end() const
Definition: SortedCollection.h:267
EcalTPGScale::getTPGInGeV
double getTPGInGeV(const EcalTriggerPrimitiveDigi &tpDigi) const
Definition: EcalTPGScale.cc:17
EcalRecHitWorkerRecover::pEBGeom_
edm::ESHandle< CaloSubdetectorGeometry > pEBGeom_
Definition: EcalRecHitWorkerRecover.h:94
PV3DBase::eta
T eta() const
Definition: PV3DBase.h:73
EcalRecHitWorkerBaseClass::EE_FE
Definition: EcalRecHitWorkerBaseClass.h:15
universalConfigTemplate.collection
collection
Definition: universalConfigTemplate.py:81
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:155
PVValHelper::dy
Definition: PVValidationHelpers.h:50
CaloSubdetectorGeometry::getGeometry
virtual std::shared_ptr< const CaloCellGeometry > getGeometry(const DetId &id) const
Get the cell geometry of a given detector id. Should return false if not found.
Definition: CaloSubdetectorGeometry.cc:36
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
EcalRecHit::kDead
Definition: EcalRecHit.h:31
EcalChannelStatus
EcalChannelStatusMap EcalChannelStatus
Definition: EcalChannelStatus.h:13
res
Definition: Electron.h:6
EcalTrigTowerConstituentsMap::towerOf
EcalTrigTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
Definition: EcalTrigTowerConstituentsMap.cc:11
EcalRecHitWorkerRecover::recoverEBIsolatedChannels_
bool recoverEBIsolatedChannels_
Definition: EcalRecHitWorkerRecover.h:71
EcalRecHitWorkerRecover::caloTopologyToken_
edm::ESGetToken< CaloTopology, CaloTopologyRecord > caloTopologyToken_
Definition: EcalRecHitWorkerRecover.h:62
EcalRecHitWorkerRecover::sum8RecoveryThreshold_
double sum8RecoveryThreshold_
Definition: EcalRecHitWorkerRecover.h:67
edm::SortedCollection::find
iterator find(key_type k)
Definition: SortedCollection.h:240
EcalRecHitWorkerRecover::recoverEBFE_
bool recoverEBFE_
Definition: EcalRecHitWorkerRecover.h:75
EcalMappingRcd
Definition: EcalMappingRcd.h:15
EcalDeadChannelRecoveryAlgos::setCaloTopology
void setCaloTopology(const CaloTopology *topology)
Definition: EcalDeadChannelRecoveryAlgos.cc:22
EcalRecHitWorkerRecover::recoverEEFE_
bool recoverEEFE_
Definition: EcalRecHitWorkerRecover.h:76
EcalTrigTowerConstituentsMap::constituentsOf
std::vector< DetId > constituentsOf(const EcalTrigTowerDetId &id) const
Get the constituent detids for this tower id.
Definition: EcalTrigTowerConstituentsMap.cc:162
EcalRecHitWorkerRecover::ebDeadChannelCorrector
EcalDeadChannelRecoveryAlgos< EBDetId > ebDeadChannelCorrector
Definition: EcalRecHitWorkerRecover.h:107
EcalRecHitWorkerBaseClass::EcalRecHitWorkerBaseClass
EcalRecHitWorkerBaseClass(const edm::ParameterSet &, edm::ConsumesCollector &c)
Definition: EcalRecHitWorkerBaseClass.h:17
packedPFCandidateRefMixer_cfi.pf
pf
Definition: packedPFCandidateRefMixer_cfi.py:4
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
EcalRecHitWorkerRecover::laser
edm::ESHandle< EcalLaserDbService > laser
Definition: EcalRecHitWorkerRecover.h:55
EcalRecHitWorkerRecover::dbStatusToBeExcludedEB_
std::vector< int > dbStatusToBeExcludedEB_
Definition: EcalRecHitWorkerRecover.h:81
CaloSubdetectorGeometry
Definition: CaloSubdetectorGeometry.h:22
EcalRecHitWorkerBaseClass::EB_VFE
Definition: EcalRecHitWorkerBaseClass.h:15
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
EEDetId::validDetId
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
EcalRecHitWorkerRecover::singleRecoveryMethod_
std::string singleRecoveryMethod_
Definition: EcalRecHitWorkerRecover.h:68
EcalCondObjectContainer::const_iterator
std::vector< Item >::const_iterator const_iterator
Definition: EcalCondObjectContainer.h:19
mps_fire.result
result
Definition: mps_fire.py:311
EcalRecHitWorkerBaseClass::EE_single
Definition: EcalRecHitWorkerBaseClass.h:15
EcalRecHitWorkerRecover::ecalMapping_
const EcalElectronicsMapping * ecalMapping_
Definition: EcalRecHitWorkerRecover.h:88
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
HLT_FULL_cff.flags
flags
Definition: HLT_FULL_cff.py:13150
EcalRecHitWorkerRecover::killDeadChannels_
bool killDeadChannels_
Definition: EcalRecHitWorkerRecover.h:69
edm::Log
Definition: MessageLogger.h:70
edm::InputTag
Definition: InputTag.h:15
PVValHelper::dx
Definition: PVValidationHelpers.h:49
EcalUncalibratedRecHit::flags
uint32_t flags() const
Definition: EcalUncalibratedRecHit.h:35
IdealGeometryRecord
Definition: IdealGeometryRecord.h:25
hit
Definition: SiStripHitEffFromCalibTree.cc:88
EcalRecHitWorkerRecover::caloGeometry_
edm::ESHandle< CaloGeometry > caloGeometry_
Definition: EcalRecHitWorkerRecover.h:60
EcalRecHitWorkerRecover::recoverEBVFE_
bool recoverEBVFE_
Definition: EcalRecHitWorkerRecover.h:73
EcalRecHitWorkerRecover::pEBGeomToken_
edm::ESGetToken< CaloSubdetectorGeometry, EcalBarrelGeometryRecord > pEBGeomToken_
Definition: EcalRecHitWorkerRecover.h:99