CMS 3D CMS Logo

AntiElectronDeadECAL.h
Go to the documentation of this file.
1 #ifndef RecoTauTag_RecoTau_AntiElectronDeadECAL_h
2 #define RecoTauTag_RecoTau_AntiElectronDeadECAL_h
3 
27 
28 #include <vector>
29 #include <string>
30 
32 class CaloGeometryRecord;
34 
36 public:
37  explicit AntiElectronDeadECAL(const edm::ParameterSet&);
39 
40  void beginEvent(const edm::EventSetup&);
41 
42  bool operator()(const reco::Candidate* tau) const;
43 
44 private:
45  const unsigned minStatus_;
46  const double dR2_;
48  const int verbosity_;
49 
51 
52  void updateBadTowers(const edm::EventSetup&);
53 
54  struct TowerInfo {
55  TowerInfo(uint32_t id, unsigned nBad, unsigned maxStatus, double eta, double phi)
56  : id_(id), nBad_(nBad), maxStatus_(maxStatus), eta_(eta), phi_(phi) {}
57  uint32_t id_;
58  unsigned nBad_;
59  unsigned maxStatus_;
60  double eta_;
61  double phi_;
62  };
63 
64  std::vector<TowerInfo> badTowers_;
65  static const uint16_t statusMask_ = 0x1F;
66 
70 
72 };
73 
74 #endif // RecoTauTag_RecoTau_AntiElectronDeadECAL_h
AntiElectronDeadECAL::statusMask_
static const uint16_t statusMask_
Definition: AntiElectronDeadECAL.h:65
AntiElectronDeadECAL::~AntiElectronDeadECAL
~AntiElectronDeadECAL()
Definition: AntiElectronDeadECAL.cc:25
AntiElectronDeadECAL::isFirstEvent_
bool isFirstEvent_
Definition: AntiElectronDeadECAL.h:71
edm::ESWatcher< EcalChannelStatusRcd >
AntiElectronDeadECAL::verbosity_
const int verbosity_
Definition: AntiElectronDeadECAL.h:48
metsig::tau
Definition: SignAlgoResolutions.h:49
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
AntiElectronDeadECAL::dR2_
const double dR2_
Definition: AntiElectronDeadECAL.h:46
AntiElectronDeadECAL::caloGeometryWatcher_
edm::ESWatcher< CaloGeometryRecord > caloGeometryWatcher_
Definition: AntiElectronDeadECAL.h:68
PositionAtECalEntranceComputer
Definition: PositionAtECalEntranceComputer.h:19
AntiElectronDeadECAL::updateBadTowers
void updateBadTowers(const edm::EventSetup &)
Definition: AntiElectronDeadECAL.cc:63
AntiElectronDeadECAL::TowerInfo
Definition: AntiElectronDeadECAL.h:54
AntiElectronDeadECAL::operator()
bool operator()(const reco::Candidate *tau) const
Definition: AntiElectronDeadECAL.cc:111
AntiElectronDeadECAL
Definition: AntiElectronDeadECAL.h:35
PVValHelper::eta
Definition: PVValidationHelpers.h:69
AntiElectronDeadECAL::idealGeometryWatcher_
edm::ESWatcher< IdealGeometryRecord > idealGeometryWatcher_
Definition: AntiElectronDeadECAL.h:69
AntiElectronDeadECAL::AntiElectronDeadECAL
AntiElectronDeadECAL(const edm::ParameterSet &)
Definition: AntiElectronDeadECAL.cc:18
AntiElectronDeadECAL::TowerInfo::nBad_
unsigned nBad_
Definition: AntiElectronDeadECAL.h:58
AntiElectronDeadECAL::positionAtECalEntrance_
PositionAtECalEntranceComputer positionAtECalEntrance_
Definition: AntiElectronDeadECAL.h:50
edm::ParameterSet
Definition: ParameterSet.h:36
AntiElectronDeadECAL::minStatus_
const unsigned minStatus_
Definition: AntiElectronDeadECAL.h:45
EcalChannelStatusRcd
Definition: EcalChannelStatusRcd.h:5
AntiElectronDeadECAL::TowerInfo::TowerInfo
TowerInfo(uint32_t id, unsigned nBad, unsigned maxStatus, double eta, double phi)
Definition: AntiElectronDeadECAL.h:55
edm::EventSetup
Definition: EventSetup.h:57
AntiElectronDeadECAL::TowerInfo::eta_
double eta_
Definition: AntiElectronDeadECAL.h:60
reco::Candidate
Definition: Candidate.h:27
DDAxes::phi
AntiElectronDeadECAL::channelStatusWatcher_
edm::ESWatcher< EcalChannelStatusRcd > channelStatusWatcher_
Definition: AntiElectronDeadECAL.h:67
AntiElectronDeadECAL::TowerInfo::maxStatus_
unsigned maxStatus_
Definition: AntiElectronDeadECAL.h:59
ESWatcher.h
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
EventSetup.h
Candidate.h
ParameterSet.h
AntiElectronDeadECAL::TowerInfo::id_
uint32_t id_
Definition: AntiElectronDeadECAL.h:57
AntiElectronDeadECAL::TowerInfo::phi_
double phi_
Definition: AntiElectronDeadECAL.h:61
PositionAtECalEntranceComputer.h
AntiElectronDeadECAL::extrapolateToECalEntrance_
const bool extrapolateToECalEntrance_
Definition: AntiElectronDeadECAL.h:47
IdealGeometryRecord
Definition: IdealGeometryRecord.h:27
AntiElectronDeadECAL::badTowers_
std::vector< TowerInfo > badTowers_
Definition: AntiElectronDeadECAL.h:64
AntiElectronDeadECAL::beginEvent
void beginEvent(const edm::EventSetup &)
Definition: AntiElectronDeadECAL.cc:27