CMS 3D CMS Logo

BeamHaloSummary.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_METRECO_BEAMHALOSUMMARY_H
2 #define DATAFORMATS_METRECO_BEAMHALOSUMMARY_H
3 
4 /*
5  [class]: BeamHaloSummary
6  [authors]: R. Remington, The University of Florida
7  [description]: Container class that stores Ecal,CSC,Hcal, and Global BeamHalo data
8  [date]: October 15, 2009
9 */
10 
14 
19 
22 
23 namespace reco {
24  class BeamHaloInfoProducer;
25 
28 
29  public:
30  //constructors
33 
34  //destructor
35  virtual ~BeamHaloSummary() {}
36 
37  const bool HcalLooseHaloId() const { return !HcalHaloReport.empty() ? HcalHaloReport[0] : false; }
38  const bool HcalTightHaloId() const { return HcalHaloReport.size() > 1 ? HcalHaloReport[1] : false; }
39 
40  const bool EcalLooseHaloId() const { return !EcalHaloReport.empty() ? EcalHaloReport[0] : false; }
41  const bool EcalTightHaloId() const { return EcalHaloReport.size() > 1 ? EcalHaloReport[1] : false; }
42 
43  const bool CSCLooseHaloId() const { return !CSCHaloReport.empty() ? CSCHaloReport[0] : false; }
44  const bool CSCTightHaloId() const { return CSCHaloReport.size() > 1 ? CSCHaloReport[1] : false; }
45  const bool CSCTightHaloIdTrkMuUnveto() const { return CSCHaloReport.size() > 4 ? CSCHaloReport[4] : false; }
46  const bool CSCTightHaloId2015() const { return CSCHaloReport.size() > 5 ? CSCHaloReport[5] : false; }
47 
48  const bool GlobalLooseHaloId() const { return !GlobalHaloReport.empty() ? GlobalHaloReport[0] : false; }
49  const bool GlobalTightHaloId() const { return GlobalHaloReport.size() > 1 ? GlobalHaloReport[1] : false; }
50  const bool GlobalTightHaloId2016() const { return GlobalHaloReport.size() > 2 ? GlobalHaloReport[2] : false; }
51  const bool GlobalSuperTightHaloId2016() const { return GlobalHaloReport.size() > 3 ? GlobalHaloReport[3] : false; }
52 
53  const bool EventSmellsLikeHalo() const {
55  }
56  const bool LooseId() const { return EventSmellsLikeHalo(); }
57  const bool TightId() const {
59  }
60  const bool ExtremeTightId() const { return GlobalTightHaloId(); }
61 
62  // Getters
63  std::vector<char>& GetHcalHaloReport() { return HcalHaloReport; }
64  const std::vector<char>& GetHcalHaloReport() const { return HcalHaloReport; }
65 
66  std::vector<char>& GetEcalHaloReport() { return EcalHaloReport; }
67  const std::vector<char>& GetEcalHaloReport() const { return EcalHaloReport; }
68 
69  std::vector<char>& GetCSCHaloReport() { return CSCHaloReport; }
70  const std::vector<char>& GetCSCHaloReport() const { return CSCHaloReport; }
71 
72  std::vector<char>& GetGlobalHaloReport() { return GlobalHaloReport; }
73  const std::vector<char>& GetGlobalHaloReport() const { return GlobalHaloReport; }
74 
75  std::vector<int>& GetHcaliPhiSuspects() { return HcaliPhiSuspects; }
76  const std::vector<int>& GetHcaliPhiSuspects() const { return HcaliPhiSuspects; }
77 
78  std::vector<int>& GetEcaliPhiSuspects() { return EcaliPhiSuspects; }
79  const std::vector<int>& GetEcaliPhiSuspects() const { return EcaliPhiSuspects; }
80 
81  std::vector<int>& GetGlobaliPhiSuspects() { return GlobaliPhiSuspects; }
82  const std::vector<int>& GetGlobaliPhiSuspects() const { return GlobaliPhiSuspects; }
83 
84  std::vector<HaloTowerStrip>& getProblematicStrips() { return problematicStrips; }
85  const std::vector<HaloTowerStrip>& getProblematicStrips() const { return problematicStrips; }
86 
87  private:
88  std::vector<char> HcalHaloReport;
89  std::vector<char> EcalHaloReport;
90  std::vector<char> CSCHaloReport;
91  std::vector<char> GlobalHaloReport;
92 
93  std::vector<int> HcaliPhiSuspects;
94  std::vector<int> EcaliPhiSuspects;
95  std::vector<int> GlobaliPhiSuspects;
96 
97  std::vector<HaloTowerStrip> problematicStrips;
98  };
99 
100 } // namespace reco
101 
102 #endif
reco::BeamHaloSummary::~BeamHaloSummary
virtual ~BeamHaloSummary()
Definition: BeamHaloSummary.h:35
RefProd.h
reco::BeamHaloSummary::CSCTightHaloId
const bool CSCTightHaloId() const
Definition: BeamHaloSummary.h:44
reco::BeamHaloSummary::GetGlobalHaloReport
std::vector< char > & GetGlobalHaloReport()
Definition: BeamHaloSummary.h:72
reco::BeamHaloSummary::GetHcaliPhiSuspects
std::vector< int > & GetHcaliPhiSuspects()
Definition: BeamHaloSummary.h:75
reco::BeamHaloSummary::HcalHaloReport
std::vector< char > HcalHaloReport
Definition: BeamHaloSummary.h:88
reco::BeamHaloSummary::getProblematicStrips
const std::vector< HaloTowerStrip > & getProblematicStrips() const
Definition: BeamHaloSummary.h:85
reco::BeamHaloSummary::GlobalHaloReport
std::vector< char > GlobalHaloReport
Definition: BeamHaloSummary.h:91
reco::BeamHaloSummary::CSCTightHaloId2015
const bool CSCTightHaloId2015() const
Definition: BeamHaloSummary.h:46
hcal
Definition: ConfigurationDatabase.cc:13
reco::BeamHaloSummary::HcaliPhiSuspects
std::vector< int > HcaliPhiSuspects
Definition: BeamHaloSummary.h:93
reco::BeamHaloSummary::HcalTightHaloId
const bool HcalTightHaloId() const
Definition: BeamHaloSummary.h:38
reco::BeamHaloSummary::BeamHaloInfoProducer
friend class reco::BeamHaloInfoProducer
Definition: BeamHaloSummary.h:27
reco::BeamHaloSummary::GetHcaliPhiSuspects
const std::vector< int > & GetHcaliPhiSuspects() const
Definition: BeamHaloSummary.h:76
reco::HcalHaloData
Definition: HcalHaloData.h:37
reco::BeamHaloSummary::GetCSCHaloReport
std::vector< char > & GetCSCHaloReport()
Definition: BeamHaloSummary.h:69
reco::BeamHaloSummary::CSCHaloReport
std::vector< char > CSCHaloReport
Definition: BeamHaloSummary.h:90
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
reco::BeamHaloSummary::GetHcalHaloReport
const std::vector< char > & GetHcalHaloReport() const
Definition: BeamHaloSummary.h:64
ecal
Definition: ElectronicsMappingGPU.h:13
GlobalHaloData.h
reco::BeamHaloSummary::LooseId
const bool LooseId() const
Definition: BeamHaloSummary.h:56
csc
Definition: L1Track.h:19
reco::BeamHaloSummary::GetGlobaliPhiSuspects
const std::vector< int > & GetGlobaliPhiSuspects() const
Definition: BeamHaloSummary.h:82
reco::BeamHaloSummary
Definition: BeamHaloSummary.h:26
reco::BeamHaloSummary::ExtremeTightId
const bool ExtremeTightId() const
Definition: BeamHaloSummary.h:60
reco::BeamHaloSummary::EcalHaloReport
std::vector< char > EcalHaloReport
Definition: BeamHaloSummary.h:89
reco::BeamHaloSummary::GlobaliPhiSuspects
std::vector< int > GlobaliPhiSuspects
Definition: BeamHaloSummary.h:95
reco::BeamHaloSummary::EcalTightHaloId
const bool EcalTightHaloId() const
Definition: BeamHaloSummary.h:41
reco::BeamHaloSummary::problematicStrips
std::vector< HaloTowerStrip > problematicStrips
Definition: BeamHaloSummary.h:97
reco::BeamHaloSummary::GetEcaliPhiSuspects
std::vector< int > & GetEcaliPhiSuspects()
Definition: BeamHaloSummary.h:78
reco::BeamHaloSummary::EventSmellsLikeHalo
const bool EventSmellsLikeHalo() const
Definition: BeamHaloSummary.h:53
reco::BeamHaloSummary::GetGlobaliPhiSuspects
std::vector< int > & GetGlobaliPhiSuspects()
Definition: BeamHaloSummary.h:81
reco::BeamHaloSummary::GetHcalHaloReport
std::vector< char > & GetHcalHaloReport()
Definition: BeamHaloSummary.h:63
reco::BeamHaloSummary::GetCSCHaloReport
const std::vector< char > & GetCSCHaloReport() const
Definition: BeamHaloSummary.h:70
EcalHaloData.h
HcalHaloData.h
RefVector.h
reco::BeamHaloSummary::GlobalSuperTightHaloId2016
const bool GlobalSuperTightHaloId2016() const
Definition: BeamHaloSummary.h:51
reco::GlobalHaloData
Definition: GlobalHaloData.h:17
reco::EcalHaloData
Definition: EcalHaloData.h:21
CaloTowerDetId.h
reco::BeamHaloSummary::TightId
const bool TightId() const
Definition: BeamHaloSummary.h:57
reco::BeamHaloSummary::CSCTightHaloIdTrkMuUnveto
const bool CSCTightHaloIdTrkMuUnveto() const
Definition: BeamHaloSummary.h:45
reco::BeamHaloSummary::BeamHaloSummary
BeamHaloSummary()
Definition: BeamHaloSummary.cc:12
reco::BeamHaloSummary::getProblematicStrips
std::vector< HaloTowerStrip > & getProblematicStrips()
Definition: BeamHaloSummary.h:84
reco::BeamHaloSummary::GetGlobalHaloReport
const std::vector< char > & GetGlobalHaloReport() const
Definition: BeamHaloSummary.h:73
Ref.h
DetId.h
reco::BeamHaloSummary::HcalLooseHaloId
const bool HcalLooseHaloId() const
Definition: BeamHaloSummary.h:37
reco::BeamHaloSummary::GetEcalHaloReport
const std::vector< char > & GetEcalHaloReport() const
Definition: BeamHaloSummary.h:67
reco::BeamHaloSummary::GlobalLooseHaloId
const bool GlobalLooseHaloId() const
Definition: BeamHaloSummary.h:48
reco::BeamHaloSummary::GetEcalHaloReport
std::vector< char > & GetEcalHaloReport()
Definition: BeamHaloSummary.h:66
reco::CSCHaloData
Definition: CSCHaloData.h:24
reco::BeamHaloSummary::CSCLooseHaloId
const bool CSCLooseHaloId() const
Definition: BeamHaloSummary.h:43
reco::BeamHaloSummary::EcaliPhiSuspects
std::vector< int > EcaliPhiSuspects
Definition: BeamHaloSummary.h:94
CSCHaloData.h
reco::BeamHaloSummary::GlobalTightHaloId
const bool GlobalTightHaloId() const
Definition: BeamHaloSummary.h:49
reco::BeamHaloSummary::GlobalTightHaloId2016
const bool GlobalTightHaloId2016() const
Definition: BeamHaloSummary.h:50
reco::BeamHaloSummary::EcalLooseHaloId
const bool EcalLooseHaloId() const
Definition: BeamHaloSummary.h:40
reco::BeamHaloSummary::GetEcaliPhiSuspects
const std::vector< int > & GetEcaliPhiSuspects() const
Definition: BeamHaloSummary.h:79