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 
28 
29 #include <vector>
30 #include <string>
31 
34 class CaloGeometryRecord;
36 
38 public:
41 
42  void beginEvent(const edm::EventSetup&);
43 
44  bool operator()(const reco::Candidate* tau) const;
45 
46 private:
47  const unsigned minStatus_;
48  const double dR2_;
50  const int verbosity_;
54 
56 
57  void updateBadTowers(const edm::EventSetup&);
58 
59  struct TowerInfo {
60  TowerInfo(uint32_t id, unsigned nBad, unsigned maxStatus, double eta, double phi)
61  : id_(id), nBad_(nBad), maxStatus_(maxStatus), eta_(eta), phi_(phi) {}
62  uint32_t id_;
63  unsigned nBad_;
64  unsigned maxStatus_;
65  double eta_;
66  double phi_;
67  };
68 
69  std::vector<TowerInfo> badTowers_;
70  static const uint16_t statusMask_ = 0x1F;
71 
75 
77 };
78 
79 #endif // RecoTauTag_RecoTau_AntiElectronDeadECAL_h
AntiElectronDeadECAL::statusMask_
static const uint16_t statusMask_
Definition: AntiElectronDeadECAL.h:70
AntiElectronDeadECAL::~AntiElectronDeadECAL
~AntiElectronDeadECAL()
Definition: AntiElectronDeadECAL.cc:27
AntiElectronDeadECAL::isFirstEvent_
bool isFirstEvent_
Definition: AntiElectronDeadECAL.h:76
edm::ESWatcher< EcalChannelStatusRcd >
AntiElectronDeadECAL::verbosity_
const int verbosity_
Definition: AntiElectronDeadECAL.h:50
metsig::tau
Definition: SignAlgoResolutions.h:49
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
AntiElectronDeadECAL::dR2_
const double dR2_
Definition: AntiElectronDeadECAL.h:48
AntiElectronDeadECAL::caloGeometryWatcher_
edm::ESWatcher< CaloGeometryRecord > caloGeometryWatcher_
Definition: AntiElectronDeadECAL.h:73
PositionAtECalEntranceComputer
Definition: PositionAtECalEntranceComputer.h:25
AntiElectronDeadECAL::updateBadTowers
void updateBadTowers(const edm::EventSetup &)
Definition: AntiElectronDeadECAL.cc:65
AntiElectronDeadECAL::TowerInfo
Definition: AntiElectronDeadECAL.h:59
AntiElectronDeadECAL::operator()
bool operator()(const reco::Candidate *tau) const
Definition: AntiElectronDeadECAL.cc:94
AntiElectronDeadECAL
Definition: AntiElectronDeadECAL.h:37
PVValHelper::eta
Definition: PVValidationHelpers.h:70
AntiElectronDeadECAL::idealGeometryWatcher_
edm::ESWatcher< IdealGeometryRecord > idealGeometryWatcher_
Definition: AntiElectronDeadECAL.h:74
AntiElectronDeadECAL::TowerInfo::nBad_
unsigned nBad_
Definition: AntiElectronDeadECAL.h:63
AntiElectronDeadECAL::caloGeometryToken_
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
Definition: AntiElectronDeadECAL.h:52
AntiElectronDeadECAL::positionAtECalEntrance_
PositionAtECalEntranceComputer positionAtECalEntrance_
Definition: AntiElectronDeadECAL.h:55
EcalTrigTowerConstituentsMap
Definition: EcalTrigTowerConstituentsMap.h:19
edm::ParameterSet
Definition: ParameterSet.h:47
AntiElectronDeadECAL::AntiElectronDeadECAL
AntiElectronDeadECAL(const edm::ParameterSet &, edm::ConsumesCollector &&)
Definition: AntiElectronDeadECAL.cc:16
AntiElectronDeadECAL::minStatus_
const unsigned minStatus_
Definition: AntiElectronDeadECAL.h:47
EcalChannelStatusRcd
Definition: EcalChannelStatusRcd.h:5
AntiElectronDeadECAL::TowerInfo::TowerInfo
TowerInfo(uint32_t id, unsigned nBad, unsigned maxStatus, double eta, double phi)
Definition: AntiElectronDeadECAL.h:60
AntiElectronDeadECAL::ttMapToken_
const edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > ttMapToken_
Definition: AntiElectronDeadECAL.h:53
edm::EventSetup
Definition: EventSetup.h:58
AntiElectronDeadECAL::TowerInfo::eta_
double eta_
Definition: AntiElectronDeadECAL.h:65
edm::ESGetToken
Definition: EventSetup.h:48
reco::Candidate
Definition: Candidate.h:27
DDAxes::phi
AntiElectronDeadECAL::channelStatusWatcher_
edm::ESWatcher< EcalChannelStatusRcd > channelStatusWatcher_
Definition: AntiElectronDeadECAL.h:72
AntiElectronDeadECAL::channelStatusToken_
const edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > channelStatusToken_
Definition: AntiElectronDeadECAL.h:51
AntiElectronDeadECAL::TowerInfo::maxStatus_
unsigned maxStatus_
Definition: AntiElectronDeadECAL.h:64
ESWatcher.h
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
EventSetup.h
Candidate.h
ParameterSet.h
AntiElectronDeadECAL::TowerInfo::id_
uint32_t id_
Definition: AntiElectronDeadECAL.h:62
AntiElectronDeadECAL::TowerInfo::phi_
double phi_
Definition: AntiElectronDeadECAL.h:66
PositionAtECalEntranceComputer.h
EcalChannelStatus.h
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
AntiElectronDeadECAL::extrapolateToECalEntrance_
const bool extrapolateToECalEntrance_
Definition: AntiElectronDeadECAL.h:49
IdealGeometryRecord
Definition: IdealGeometryRecord.h:25
AntiElectronDeadECAL::badTowers_
std::vector< TowerInfo > badTowers_
Definition: AntiElectronDeadECAL.h:69
AntiElectronDeadECAL::beginEvent
void beginEvent(const edm::EventSetup &)
Definition: AntiElectronDeadECAL.cc:29