CMS 3D CMS Logo

EcalDeadChannelRecoveryBDTG.h
Go to the documentation of this file.
1 #ifndef RecoLocalCalo_EcalDeadChannelRecoveryAlgos_EcalDeadChannelRecoveryBDTG_H
2 #define RecoLocalCalo_EcalDeadChannelRecoveryAlgos_EcalDeadChannelRecoveryBDTG_H
3 
5 
8 
11 
14 
15 #include "TMVA/Reader.h"
16 
17 #include <string>
18 #include <memory>
19 
20 template <typename DetIdT>
22 public:
25 
26  void setParameters(const edm::ParameterSet &ps);
27  void setCaloTopology(const CaloTopology *topo) { topology_ = topo; }
28 
29  double recover(
30  const DetIdT id, const EcalRecHitCollection &hit_collection, double single8Cut, double sum8Cut, bool *acceptFlag);
31 
32  void loadFile();
33  void addVariables(TMVA::Reader *reader);
34 
35 private:
37  struct XtalMatrix {
38  std::array<float, 9> rEn, ieta, iphi;
39  float sumE8;
40  };
41 
42  XtalMatrix mx_;
43 
46 
47  std::unique_ptr<TMVA::Reader> readerNoCrack;
48  std::unique_ptr<TMVA::Reader> readerCrack;
49 };
50 
51 #endif
EcalDeadChannelRecoveryBDTG::XtalMatrix::ieta
std::array< float, 9 > ieta
Definition: EcalDeadChannelRecoveryBDTG.h:38
EcalDeadChannelRecoveryBDTG::setCaloTopology
void setCaloTopology(const CaloTopology *topo)
Definition: EcalDeadChannelRecoveryBDTG.h:27
EcalDeadChannelRecoveryBDTG::bdtWeightFileCracks_
edm::FileInPath bdtWeightFileCracks_
Definition: EcalDeadChannelRecoveryBDTG.h:45
EcalDeadChannelRecoveryBDTG::mx_
XtalMatrix mx_
Definition: EcalDeadChannelRecoveryBDTG.h:42
EBDetId.h
EEDetId.h
EcalDeadChannelRecoveryBDTG::recover
double recover(const DetIdT id, const EcalRecHitCollection &hit_collection, double single8Cut, double sum8Cut, bool *acceptFlag)
EcalDeadChannelRecoveryBDTG::EcalDeadChannelRecoveryBDTG
EcalDeadChannelRecoveryBDTG()
Definition: EcalDeadChannelRecoveryBDTG.cc:46
edm::SortedCollection< EcalRecHit >
EcalDeadChannelRecoveryBDTG::readerCrack
std::unique_ptr< TMVA::Reader > readerCrack
Definition: EcalDeadChannelRecoveryBDTG.h:48
CaloTopology
Definition: CaloTopology.h:19
EcalRecHitCollections.h
EcalDeadChannelRecoveryBDTG::readerNoCrack
std::unique_ptr< TMVA::Reader > readerNoCrack
Definition: EcalDeadChannelRecoveryBDTG.h:47
EcalDeadChannelRecoveryBDTG::setParameters
void setParameters(const edm::ParameterSet &ps)
EcalDeadChannelRecoveryBDTG::loadFile
void loadFile()
EcalDeadChannelRecoveryBDTG
Definition: EcalDeadChannelRecoveryBDTG.h:21
edm::FileInPath
Definition: FileInPath.h:64
DQM.reader
reader
Definition: DQM.py:105
EcalDeadChannelRecoveryBDTG::~EcalDeadChannelRecoveryBDTG
~EcalDeadChannelRecoveryBDTG()
Definition: EcalDeadChannelRecoveryBDTG.cc:49
EcalDeadChannelRecoveryBDTG::XtalMatrix::iphi
std::array< float, 9 > iphi
Definition: EcalDeadChannelRecoveryBDTG.h:38
EcalDeadChannelRecoveryBDTG::XtalMatrix::sumE8
float sumE8
Definition: EcalDeadChannelRecoveryBDTG.h:39
EcalDeadChannelRecoveryBDTG::XtalMatrix::rEn
std::array< float, 9 > rEn
Definition: EcalDeadChannelRecoveryBDTG.h:38
EcalDeadChannelRecoveryBDTG::addVariables
void addVariables(TMVA::Reader *reader)
edm::ParameterSet
Definition: ParameterSet.h:47
EcalDeadChannelRecoveryBDTG::bdtWeightFileNoCracks_
edm::FileInPath bdtWeightFileNoCracks_
Definition: EcalDeadChannelRecoveryBDTG.h:44
EcalDeadChannelRecoveryBDTG::XtalMatrix
Definition: EcalDeadChannelRecoveryBDTG.h:37
CaloTopology.h
CaloSubdetectorTopology.h
TMVAZipReader.h
ParameterSet.h
EcalDeadChannelRecoveryBDTG::topology_
const CaloTopology * topology_
Definition: EcalDeadChannelRecoveryBDTG.h:36