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);
36  bool run(const edm::Event& evt, const EcalUncalibratedRecHit& uncalibRH, EcalRecHitCollection & result);
37 
38  protected:
39 
41  float recCheckCalib(float energy, int ieta);
42  bool alreadyInserted( const DetId & id );
43  float estimateEnergy(int ieta, EcalRecHitCollection* hits,
44  const std::set<DetId>& sId,
45  const std::vector<DetId>& vId);
46  bool checkChannelStatus(const DetId& id,
47  const std::vector<int>& statusestoexclude);
48 
50 
51  // isolated dead channels
55 
56 
60 
67 
68  // list of channel statuses for which recovery in EE should
69  // not be attempted
70  std::vector<int> dbStatusToBeExcludedEE_;
71  std::vector<int> dbStatusToBeExcludedEB_;
72 
73  // dead FE
80 
82 
86 
87  std::unique_ptr<EcalRecHitSimpleAlgo> rechitMaker_;
88 
89  std::set<DetId> recoveredDetIds_EB_;
90  std::set<DetId> recoveredDetIds_EE_;
91 
93 
96 
97 };
98 
99 #endif
bool alreadyInserted(const DetId &id)
EcalDeadChannelRecoveryAlgos< EEDetId > eeDeadChannelCorrector
std::vector< int > dbStatusToBeExcludedEE_
edm::ESHandle< CaloTopology > caloTopology_
float recCheckCalib(float energy, int ieta)
void insertRecHit(const EcalRecHit &hit, EcalRecHitCollection &collection)
std::unique_ptr< EcalRecHitSimpleAlgo > rechitMaker_
edm::ESHandle< EcalTrigTowerConstituentsMap > ttMap_
edm::ESHandle< CaloSubdetectorGeometry > pEBGeom_
float estimateEnergy(int ieta, EcalRecHitCollection *hits, const std::set< DetId > &sId, const std::vector< DetId > &vId)
const CaloSubdetectorGeometry * ebGeom_
Definition: DetId.h:18
edm::EDGetTokenT< EcalTrigPrimDigiCollection > tpDigiToken_
std::set< DetId > recoveredDetIds_EE_
EcalRecHitWorkerRecover(const edm::ParameterSet &, edm::ConsumesCollector &c)
edm::ESHandle< CaloGeometry > caloGeometry_
std::vector< int > dbStatusToBeExcludedEB_
EcalDeadChannelRecoveryAlgos< EBDetId > ebDeadChannelCorrector
edm::ESHandle< EcalChannelStatus > chStatus_
edm::ESHandle< EcalLaserDbService > laser
const EcalElectronicsMapping * ecalMapping_
edm::ESHandle< EcalElectronicsMapping > pEcalMapping_
bool run(const edm::Event &evt, const EcalUncalibratedRecHit &uncalibRH, EcalRecHitCollection &result)
bool checkChannelStatus(const DetId &id, const std::vector< int > &statusestoexclude)
std::set< DetId > recoveredDetIds_EB_