CMS 3D CMS Logo

EcalRecHitWorkerRecover.h
Go to the documentation of this file.
1 #ifndef RecoLocalCalo_EcalRecProducers_EcalRecHitWorkerRecover_hh
2 #define RecoLocalCalo_EcalRecProducers_EcalRecHitWorkerRecover_hh
3 
11 
13 #include <vector>
14 
16 
22 
27 
29 
31 public:
34 
35  void set(const edm::EventSetup& es) override;
36  bool run(const edm::Event& evt, const EcalUncalibratedRecHit& uncalibRH, EcalRecHitCollection& result) override;
37 
38 protected:
40  float recCheckCalib(float energy, int ieta);
41  bool alreadyInserted(const DetId& id);
42  float estimateEnergy(int ieta, EcalRecHitCollection* hits, const std::set<DetId>& sId, const std::vector<DetId>& vId);
43  bool checkChannelStatus(const DetId& id, const std::vector<int>& statusestoexclude);
44 
46 
47  // isolated dead channels
51 
56 
63 
64  // list of channel statuses for which recovery in EE should
65  // not be attempted
66  std::vector<int> dbStatusToBeExcludedEE_;
67  std::vector<int> dbStatusToBeExcludedEB_;
68 
69  // dead FE
76 
78 
82 
83  std::unique_ptr<EcalRecHitSimpleAlgo> rechitMaker_;
84 
85  std::set<DetId> recoveredDetIds_EB_;
86  std::set<DetId> recoveredDetIds_EE_;
87 
89 
92 };
93 
94 #endif
EcalRecHitWorkerRecover::checkChannelStatus
bool checkChannelStatus(const DetId &id, const std::vector< int > &statusestoexclude)
Definition: EcalRecHitWorkerRecover.cc:426
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
EcalRecHit
Definition: EcalRecHit.h:15
EcalRecHitSimpleAlgo.h
EcalTPGScale
Definition: EcalTPGScale.h:8
EcalRecHitWorkerRecover::pEcalMapping_
edm::ESHandle< EcalElectronicsMapping > pEcalMapping_
Definition: EcalRecHitWorkerRecover.h:72
EcalRecHitWorkerRecover::chStatus_
edm::ESHandle< EcalChannelStatus > chStatus_
Definition: EcalRecHitWorkerRecover.h:50
EcalRecHitWorkerRecover::eeDeadChannelCorrector
EcalDeadChannelRecoveryAlgos< EEDetId > eeDeadChannelCorrector
Definition: EcalRecHitWorkerRecover.h:91
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
ESHandle.h
EcalRecHitWorkerRecover::recoverEEIsolatedChannels_
bool recoverEEIsolatedChannels_
Definition: EcalRecHitWorkerRecover.h:58
edm::EDGetTokenT
Definition: EDGetToken.h:33
EcalRecHitWorkerRecover::recoveredDetIds_EB_
std::set< DetId > recoveredDetIds_EB_
Definition: EcalRecHitWorkerRecover.h:85
EcalRecHitWorkerRecover::recCheckCalib
float recCheckCalib(float energy, int ieta)
Definition: EcalRecHitWorkerRecover.cc:421
EcalRecHitWorkerRecover::dbStatusToBeExcludedEE_
std::vector< int > dbStatusToBeExcludedEE_
Definition: EcalRecHitWorkerRecover.h:66
EcalRecHitWorkerRecover::singleRecoveryThreshold_
double singleRecoveryThreshold_
Definition: EcalRecHitWorkerRecover.h:52
EcalRecHitWorkerRecover::logWarningEtThreshold_EB_FE_
double logWarningEtThreshold_EB_FE_
Definition: EcalRecHitWorkerRecover.h:74
edm::SortedCollection< EcalRecHit >
EcalRecHitWorkerRecover::insertRecHit
void insertRecHit(const EcalRecHit &hit, EcalRecHitCollection &collection)
Definition: EcalRecHitWorkerRecover.cc:384
EcalRecHitWorkerRecover::logWarningEtThreshold_EE_FE_
double logWarningEtThreshold_EE_FE_
Definition: EcalRecHitWorkerRecover.h:75
EcalRecHitWorkerRecover::recoverEEVFE_
bool recoverEEVFE_
Definition: EcalRecHitWorkerRecover.h:60
EcalRecHitWorkerRecover::caloTopology_
edm::ESHandle< CaloTopology > caloTopology_
Definition: EcalRecHitWorkerRecover.h:48
EcalRecHitWorkerRecover::alreadyInserted
bool alreadyInserted(const DetId &id)
Definition: EcalRecHitWorkerRecover.cc:407
EcalRecHitWorkerRecover::rechitMaker_
std::unique_ptr< EcalRecHitSimpleAlgo > rechitMaker_
Definition: EcalRecHitWorkerRecover.h:83
EcalRecHitWorkerRecover::tpgscale_
EcalTPGScale tpgscale_
Definition: EcalRecHitWorkerRecover.h:88
DetId
Definition: DetId.h:17
CaloGeometry
Definition: CaloGeometry.h:21
EcalRecHitWorkerRecover::ecalScale_
EcalTPGScale ecalScale_
Definition: EcalRecHitWorkerRecover.h:70
EcalLaserDbService.h
EcalDigiCollections.h
EcalDeadChannelRecoveryAlgos.h
EcalRecHitWorkerRecover::estimateEnergy
float estimateEnergy(int ieta, EcalRecHitCollection *hits, const std::set< DetId > &sId, const std::vector< DetId > &vId)
Definition: EcalRecHitWorkerRecover.cc:356
edm::ESHandle< EcalLaserDbService >
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalRecHitWorkerRecover::geo_
const CaloGeometry * geo_
Definition: EcalRecHitWorkerRecover.h:81
EcalRecHitWorkerRecover::ttMap_
edm::ESHandle< EcalTrigTowerConstituentsMap > ttMap_
Definition: EcalRecHitWorkerRecover.h:77
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
CaloSubdetectorGeometry.h
edm::ParameterSet
Definition: ParameterSet.h:36
EcalRecHitWorkerRecover::tpDigiToken_
edm::EDGetTokenT< EcalTrigPrimDigiCollection > tpDigiToken_
Definition: EcalRecHitWorkerRecover.h:71
EcalDeadChannelRecoveryAlgos< EBDetId >
EcalRecHitWorkerRecover::recoveredDetIds_EE_
std::set< DetId > recoveredDetIds_EE_
Definition: EcalRecHitWorkerRecover.h:86
EcalRecHitWorkerRecover::ebGeom_
const CaloSubdetectorGeometry * ebGeom_
Definition: EcalRecHitWorkerRecover.h:80
EcalRecHitWorkerBaseClass.h
EcalElectronicsMapping.h
EcalRecHitWorkerRecover::pEBGeom_
edm::ESHandle< CaloSubdetectorGeometry > pEBGeom_
Definition: EcalRecHitWorkerRecover.h:79
universalConfigTemplate.collection
collection
Definition: universalConfigTemplate.py:81
EcalRecHitWorkerRecover
Definition: EcalRecHitWorkerRecover.h:30
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
EcalRecHitWorkerRecover::set
void set(const edm::EventSetup &es) override
Definition: EcalRecHitWorkerRecover.cc:49
EcalRecHitWorkerRecover::recoverEBIsolatedChannels_
bool recoverEBIsolatedChannels_
Definition: EcalRecHitWorkerRecover.h:57
CaloTopology.h
EcalUncalibratedRecHit
Definition: EcalUncalibratedRecHit.h:8
EcalRecHitWorkerRecover::sum8RecoveryThreshold_
double sum8RecoveryThreshold_
Definition: EcalRecHitWorkerRecover.h:53
EcalTrigTowerConstituentsMap.h
EcalRecHitWorkerRecover::recoverEBFE_
bool recoverEBFE_
Definition: EcalRecHitWorkerRecover.h:61
EcalRecHitWorkerRecover::recoverEEFE_
bool recoverEEFE_
Definition: EcalRecHitWorkerRecover.h:62
EcalRecHitWorkerRecover::ebDeadChannelCorrector
EcalDeadChannelRecoveryAlgos< EBDetId > ebDeadChannelCorrector
Definition: EcalRecHitWorkerRecover.h:90
EcalRecHitWorkerRecover::laser
edm::ESHandle< EcalLaserDbService > laser
Definition: EcalRecHitWorkerRecover.h:45
CaloGeometry.h
EcalRecHitWorkerRecover::dbStatusToBeExcludedEB_
std::vector< int > dbStatusToBeExcludedEB_
Definition: EcalRecHitWorkerRecover.h:67
CaloSubdetectorGeometry
Definition: CaloSubdetectorGeometry.h:22
EcalRecHitWorkerRecover::~EcalRecHitWorkerRecover
~EcalRecHitWorkerRecover() override
Definition: EcalRecHitWorkerRecover.h:33
EcalRecHitWorkerRecover::singleRecoveryMethod_
std::string singleRecoveryMethod_
Definition: EcalRecHitWorkerRecover.h:54
mps_fire.result
result
Definition: mps_fire.py:303
EcalRecHitWorkerRecover::ecalMapping_
const EcalElectronicsMapping * ecalMapping_
Definition: EcalRecHitWorkerRecover.h:73
edm::Event
Definition: Event.h:73
EcalRecHitWorkerRecover::killDeadChannels_
bool killDeadChannels_
Definition: EcalRecHitWorkerRecover.h:55
EcalRecHitWorkerRecover::EcalRecHitWorkerRecover
EcalRecHitWorkerRecover(const edm::ParameterSet &, edm::ConsumesCollector &c)
Definition: EcalRecHitWorkerRecover.cc:21
EcalChannelStatus.h
EcalRecHitWorkerBaseClass
Definition: EcalRecHitWorkerBaseClass.h:13
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
EcalRecHitWorkerRecover::run
bool run(const edm::Event &evt, const EcalUncalibratedRecHit &uncalibRH, EcalRecHitCollection &result) override
Definition: EcalRecHitWorkerRecover.cc:67
hit
Definition: SiStripHitEffFromCalibTree.cc:88
EcalTPGScale.h
EcalRecHitWorkerRecover::caloGeometry_
edm::ESHandle< CaloGeometry > caloGeometry_
Definition: EcalRecHitWorkerRecover.h:49
EcalRecHitWorkerRecover::recoverEBVFE_
bool recoverEBVFE_
Definition: EcalRecHitWorkerRecover.h:59