CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
20 namespace reco {
21  class BeamHaloInfoProducer;
22 
25  public:
26 
27  //constructors
30 
31  //destructor
32  virtual ~BeamHaloSummary() {}
33 
34  const bool HcalLooseHaloId()const { return HcalHaloReport.size() ? HcalHaloReport[0] : false ; }
35  const bool HcalTightHaloId()const { return HcalHaloReport.size() > 1 ? HcalHaloReport[1] : false ; }
36 
37  const bool EcalLooseHaloId()const { return EcalHaloReport.size() ? EcalHaloReport[0] : false ; }
38  const bool EcalTightHaloId()const { return EcalHaloReport.size() > 1 ? EcalHaloReport[1] : false ; }
39 
40  const bool CSCLooseHaloId() const { return CSCHaloReport.size() ? CSCHaloReport[0] : false ; }
41  const bool CSCTightHaloId() const { return CSCHaloReport.size() > 1 ? CSCHaloReport[1] : false ; }
42 
43  const bool GlobalLooseHaloId() const { return GlobalHaloReport.size() ? GlobalHaloReport[0] : false ; }
44  const bool GlobalTightHaloId() const { return GlobalHaloReport.size() > 1 ? GlobalHaloReport[1] : false ; }
45 
46  const bool EventSmellsLikeHalo() const { return HcalLooseHaloId() || EcalLooseHaloId() || CSCLooseHaloId() || GlobalLooseHaloId() ; }
47  const bool LooseId() const { return EventSmellsLikeHalo(); }
48  const bool TightId() const { return HcalTightHaloId() || EcalTightHaloId() || CSCTightHaloId() || GlobalTightHaloId() ; }
49  const bool ExtremeTightId ()const { return GlobalTightHaloId() ; }
50 
51  // Getters
52  std::vector<char>& GetHcalHaloReport(){return HcalHaloReport;}
53  const std::vector<char>& GetHcalHaloReport() const { return HcalHaloReport;}
54 
55  std::vector<char>& GetEcalHaloReport(){return EcalHaloReport;}
56  const std::vector<char>& GetEcalHaloReport() const {return EcalHaloReport;}
57 
58  std::vector<char>& GetCSCHaloReport() { return CSCHaloReport ;}
59  const std::vector<char>& GetCSCHaloReport() const { return CSCHaloReport ; }
60 
61  std::vector<char>& GetGlobalHaloReport() { return GlobalHaloReport ;}
62  const std::vector<char>& GetGlobalHaloReport() const {return GlobalHaloReport ; }
63 
64  std::vector<int>& GetHcaliPhiSuspects() { return HcaliPhiSuspects ; }
65  const std::vector<int>& GetHcaliPhiSuspects() const { return HcaliPhiSuspects ; }
66 
67  std::vector<int>& GetEcaliPhiSuspects() { return EcaliPhiSuspects ; }
68  const std::vector<int>& GetEcaliPhiSuspects() const { return EcaliPhiSuspects ; }
69 
70  std::vector<int>& GetGlobaliPhiSuspects() { return GlobaliPhiSuspects ;}
71  const std::vector<int>& GetGlobaliPhiSuspects() const { return GlobaliPhiSuspects ;}
72 
73  private:
74  std::vector<char> HcalHaloReport;
75  std::vector<char> EcalHaloReport;
76  std::vector<char> CSCHaloReport;
77  std::vector<char> GlobalHaloReport;
78 
79  std::vector<int> HcaliPhiSuspects;
80  std::vector<int> EcaliPhiSuspects;
81  std::vector<int> GlobaliPhiSuspects;
82 
83  };
84 
85 }
86 
87 
88 #endif
std::vector< char > & GetEcalHaloReport()
const bool EcalTightHaloId() const
std::vector< char > CSCHaloReport
const bool HcalTightHaloId() const
const bool GlobalLooseHaloId() const
std::vector< int > GlobaliPhiSuspects
const bool LooseId() const
std::vector< char > EcalHaloReport
std::vector< char > GlobalHaloReport
const bool TightId() const
const bool GlobalTightHaloId() const
const std::vector< char > & GetCSCHaloReport() const
std::vector< char > HcalHaloReport
const bool EventSmellsLikeHalo() const
const bool HcalLooseHaloId() const
const bool CSCTightHaloId() const
std::vector< int > HcaliPhiSuspects
const std::vector< char > & GetHcalHaloReport() const
friend class reco::BeamHaloInfoProducer
std::vector< char > & GetCSCHaloReport()
const std::vector< int > & GetHcaliPhiSuspects() const
const std::vector< char > & GetGlobalHaloReport() const
const std::vector< char > & GetEcalHaloReport() const
std::vector< int > & GetEcaliPhiSuspects()
const std::vector< int > & GetGlobaliPhiSuspects() const
const bool ExtremeTightId() const
std::vector< int > & GetGlobaliPhiSuspects()
std::vector< int > EcaliPhiSuspects
std::vector< char > & GetHcalHaloReport()
const bool CSCLooseHaloId() const
const std::vector< int > & GetEcaliPhiSuspects() const
std::vector< char > & GetGlobalHaloReport()
volatile std::atomic< bool > shutdown_flag false
std::vector< int > & GetHcaliPhiSuspects()
const bool EcalLooseHaloId() const