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
std::vector< char > & GetEcalHaloReport()
std::vector< char > CSCHaloReport
std::vector< int > GlobaliPhiSuspects
const bool GlobalTightHaloId() const
std::vector< char > EcalHaloReport
std::vector< char > GlobalHaloReport
const bool EcalLooseHaloId() const
const bool EventSmellsLikeHalo() const
std::vector< char > HcalHaloReport
const std::vector< char > & GetCSCHaloReport() const
std::vector< int > HcaliPhiSuspects
const std::vector< char > & GetHcalHaloReport() const
friend class reco::BeamHaloInfoProducer
std::vector< char > & GetCSCHaloReport()
const bool LooseId() const
const std::vector< int > & GetGlobaliPhiSuspects() const
const bool EcalTightHaloId() const
const std::vector< char > & GetGlobalHaloReport() const
std::vector< int > & GetEcaliPhiSuspects()
Definition: L1Track.h:19
const bool HcalLooseHaloId() const
const bool ExtremeTightId() const
std::vector< HaloTowerStrip > problematicStrips
const bool GlobalSuperTightHaloId2016() const
const bool GlobalTightHaloId2016() const
const bool CSCLooseHaloId() const
std::vector< int > & GetGlobaliPhiSuspects()
std::vector< int > EcaliPhiSuspects
const bool CSCTightHaloId() const
std::vector< char > & GetHcalHaloReport()
fixed size matrix
const bool TightId() const
std::vector< HaloTowerStrip > & getProblematicStrips()
const std::vector< int > & GetEcaliPhiSuspects() const
std::vector< char > & GetGlobalHaloReport()
std::vector< int > & GetHcaliPhiSuspects()
const std::vector< int > & GetHcaliPhiSuspects() const
const std::vector< HaloTowerStrip > & getProblematicStrips() const
const bool CSCTightHaloIdTrkMuUnveto() const
const bool CSCTightHaloId2015() const
const std::vector< char > & GetEcalHaloReport() const
const bool HcalTightHaloId() const
const bool GlobalLooseHaloId() const