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 
14 #include <vector>
15 
17 
23 
35 
37 public:
40 
41  void set(const edm::EventSetup& es) override;
42  bool run(const edm::Event& evt, const EcalUncalibratedRecHit& uncalibRH, EcalRecHitCollection& result) override;
43 
44 protected:
46  float recCheckCalib(float energy, int ieta);
47  bool alreadyInserted(const DetId& id);
48  float estimateEnergy(int ieta,
50  const std::set<DetId>& sId,
51  const std::vector<DetId>& vId,
52  const EcalTPGScale& tpgscale);
53  bool checkChannelStatus(const DetId& id, const std::vector<int>& statusestoexclude);
54 
57 
58  // isolated dead channels
65 
70 
77 
78  // list of channel statuses for which recovery in EE should
79  // not be attempted
80  std::vector<int> dbStatusToBeExcludedEE_;
81  std::vector<int> dbStatusToBeExcludedEB_;
82 
83  const edm::EventSetup* eventSetup_ = nullptr;
84  // dead FE
91 
93 
100  std::unique_ptr<EcalRecHitSimpleAlgo> rechitMaker_;
101 
102  std::set<DetId> recoveredDetIds_EB_;
103  std::set<DetId> recoveredDetIds_EE_;
104 
106 
109 };
110 
111 #endif
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
EcalRecHitSimpleAlgo.h
EcalTPGScale
Definition: EcalTPGScale.h:16
EcalRecHitWorkerRecover::pEcalMapping_
edm::ESHandle< EcalElectronicsMapping > pEcalMapping_
Definition: EcalRecHitWorkerRecover.h:87
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
ESHandle.h
EcalRecHitWorkerRecover::eventSetup_
const edm::EventSetup * eventSetup_
Definition: EcalRecHitWorkerRecover.h:83
EcalRecHitWorkerRecover::recoverEEIsolatedChannels_
bool recoverEEIsolatedChannels_
Definition: EcalRecHitWorkerRecover.h:72
EcalRecHitWorkerRecover::tpgscaleTokens_
EcalTPGScale::Tokens tpgscaleTokens_
Definition: EcalRecHitWorkerRecover.h:105
edm::EDGetTokenT
Definition: EDGetToken.h:33
EcalRecHitWorkerRecover::recoveredDetIds_EB_
std::set< DetId > recoveredDetIds_EB_
Definition: EcalRecHitWorkerRecover.h:102
EcalRecHitWorkerRecover::recCheckCalib
float recCheckCalib(float energy, int ieta)
Definition: EcalRecHitWorkerRecover.cc:428
EcalTPGScale::Tokens
Definition: EcalTPGScale.h:18
EcalRecHitWorkerRecover::dbStatusToBeExcludedEE_
std::vector< int > dbStatusToBeExcludedEE_
Definition: EcalRecHitWorkerRecover.h:80
EcalRecHitWorkerRecover::singleRecoveryThreshold_
double singleRecoveryThreshold_
Definition: EcalRecHitWorkerRecover.h:66
EcalRecHitWorkerRecover::pEcalMappingToken_
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > pEcalMappingToken_
Definition: EcalRecHitWorkerRecover.h:97
EcalRecHitWorkerRecover::logWarningEtThreshold_EB_FE_
double logWarningEtThreshold_EB_FE_
Definition: EcalRecHitWorkerRecover.h:89
edm::SortedCollection< EcalRecHit >
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
EcalRecHitWorkerRecover::alreadyInserted
bool alreadyInserted(const DetId &id)
Definition: EcalRecHitWorkerRecover.cc:414
EcalRecHitWorkerRecover::rechitMaker_
std::unique_ptr< EcalRecHitSimpleAlgo > rechitMaker_
Definition: EcalRecHitWorkerRecover.h:100
EcalRecHitWorkerRecover::laserToken_
edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecord > laserToken_
Definition: EcalRecHitWorkerRecover.h:56
ESGetToken.h
DetId
Definition: DetId.h:17
CaloGeometry
Definition: CaloGeometry.h:21
EcalBarrelGeometryRecord.h
EcalMappingRcd.h
EcalLaserDbService.h
EcalRecHitWorkerRecover::chStatusToken_
edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > chStatusToken_
Definition: EcalRecHitWorkerRecover.h:64
EcalDigiCollections.h
EcalDeadChannelRecoveryAlgos.h
edm::ESHandle< EcalLaserDbService >
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
CaloGeometryRecord.h
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
EcalRecHitWorkerRecover::ttMap_
edm::ESHandle< EcalTrigTowerConstituentsMap > ttMap_
Definition: EcalRecHitWorkerRecover.h:92
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
CaloSubdetectorGeometry.h
edm::ParameterSet
Definition: ParameterSet.h:47
EcalRecHitWorkerRecover::tpDigiToken_
edm::EDGetTokenT< EcalTrigPrimDigiCollection > tpDigiToken_
Definition: EcalRecHitWorkerRecover.h:86
EcalDeadChannelRecoveryAlgos< EBDetId >
EcalRecHitWorkerRecover::recoveredDetIds_EE_
std::set< DetId > recoveredDetIds_EE_
Definition: EcalRecHitWorkerRecover.h:103
EcalRecHitWorkerRecover::ebGeom_
const CaloSubdetectorGeometry * ebGeom_
Definition: EcalRecHitWorkerRecover.h:95
EcalRecHitWorkerBaseClass.h
CaloTopologyRecord.h
EcalElectronicsMapping.h
EcalRecHitWorkerRecover::pEBGeom_
edm::ESHandle< CaloSubdetectorGeometry > pEBGeom_
Definition: EcalRecHitWorkerRecover.h:94
universalConfigTemplate.collection
collection
Definition: universalConfigTemplate.py:81
EcalRecHitWorkerRecover
Definition: EcalRecHitWorkerRecover.h:36
IdealGeometryRecord.h
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecord >
EcalRecHitWorkerRecover::set
void set(const edm::EventSetup &es) override
Definition: EcalRecHitWorkerRecover.cc:52
EcalRecHitWorkerRecover::recoverEBIsolatedChannels_
bool recoverEBIsolatedChannels_
Definition: EcalRecHitWorkerRecover.h:71
CaloTopology.h
EcalUncalibratedRecHit
Definition: EcalUncalibratedRecHit.h:8
EcalRecHitWorkerRecover::caloTopologyToken_
edm::ESGetToken< CaloTopology, CaloTopologyRecord > caloTopologyToken_
Definition: EcalRecHitWorkerRecover.h:62
EcalRecHitWorkerRecover::sum8RecoveryThreshold_
double sum8RecoveryThreshold_
Definition: EcalRecHitWorkerRecover.h:67
EcalLaserDbRecord.h
EcalTrigTowerConstituentsMap.h
EcalRecHitWorkerRecover::recoverEBFE_
bool recoverEBFE_
Definition: EcalRecHitWorkerRecover.h:75
EcalRecHitWorkerRecover::recoverEEFE_
bool recoverEEFE_
Definition: EcalRecHitWorkerRecover.h:76
EcalRecHitWorkerRecover::ebDeadChannelCorrector
EcalDeadChannelRecoveryAlgos< EBDetId > ebDeadChannelCorrector
Definition: EcalRecHitWorkerRecover.h:107
EcalRecHitWorkerRecover::laser
edm::ESHandle< EcalLaserDbService > laser
Definition: EcalRecHitWorkerRecover.h:55
CaloGeometry.h
EcalRecHitWorkerRecover::dbStatusToBeExcludedEB_
std::vector< int > dbStatusToBeExcludedEB_
Definition: EcalRecHitWorkerRecover.h:81
CaloSubdetectorGeometry
Definition: CaloSubdetectorGeometry.h:22
EcalRecHitWorkerRecover::~EcalRecHitWorkerRecover
~EcalRecHitWorkerRecover() override
Definition: EcalRecHitWorkerRecover.h:39
EcalRecHitWorkerRecover::singleRecoveryMethod_
std::string singleRecoveryMethod_
Definition: EcalRecHitWorkerRecover.h:68
mps_fire.result
result
Definition: mps_fire.py:311
EcalRecHitWorkerRecover::ecalMapping_
const EcalElectronicsMapping * ecalMapping_
Definition: EcalRecHitWorkerRecover.h:88
edm::Event
Definition: Event.h:73
EcalRecHitWorkerRecover::killDeadChannels_
bool killDeadChannels_
Definition: EcalRecHitWorkerRecover.h:69
EcalRecHitWorkerRecover::EcalRecHitWorkerRecover
EcalRecHitWorkerRecover(const edm::ParameterSet &, edm::ConsumesCollector &c)
Definition: EcalRecHitWorkerRecover.cc:17
EcalChannelStatus.h
EcalRecHitWorkerBaseClass
Definition: EcalRecHitWorkerBaseClass.h:13
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
EcalRecHitWorkerRecover::run
bool run(const edm::Event &evt, const EcalUncalibratedRecHit &uncalibRH, EcalRecHitCollection &result) override
Definition: EcalRecHitWorkerRecover.cc:69
EcalChannelStatusRcd.h
hit
Definition: SiStripHitEffFromCalibTree.cc:88
EcalTPGScale.h
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