CMS 3D CMS Logo

Run3ScoutingPhoton.h
Go to the documentation of this file.
1 #ifndef DataFormats_Run3ScoutingPhoton_h
2 #define DataFormats_Run3ScoutingPhoton_h
3 
4 #include <vector>
5 
6 // Class for holding photon information, for use in data scouting
7 // IMPORTANT: the content of this class should be changed only in backwards compatible ways!
9 public:
10  //constructor with values for all data fields
12  float eta,
13  float phi,
14  float m,
15  float sigmaIetaIeta,
16  float hOverE,
17  float ecalIso,
18  float hcalIso,
19  float trkIso,
20  float r9,
21  float sMin,
22  float sMaj,
23  unsigned int seedId,
24  std::vector<float> energyMatrix,
25  std::vector<float> timingMatrix)
26  : pt_(pt),
27  eta_(eta),
28  phi_(phi),
29  m_(m),
31  hOverE_(hOverE),
34  trkIso_(trkIso),
35  r9_(r9),
36  sMin_(sMin),
37  sMaj_(sMaj),
38  seedId_(seedId),
41  //default constructor
43  : pt_(0),
44  eta_(0),
45  phi_(0),
46  m_(0),
47  sigmaIetaIeta_(0),
48  hOverE_(0),
49  ecalIso_(0),
50  hcalIso_(0),
51  trkIso_(0),
52  r9_(0),
53  sMin_(0),
54  sMaj_(0),
55  seedId_(0),
56  energyMatrix_(0),
57  timingMatrix_(0) {}
58 
59  //accessor functions
60  float pt() const { return pt_; }
61  float eta() const { return eta_; }
62  float phi() const { return phi_; }
63  float m() const { return m_; }
64  float sigmaIetaIeta() const { return sigmaIetaIeta_; }
65  float hOverE() const { return hOverE_; }
66  float ecalIso() const { return ecalIso_; }
67  float hcalIso() const { return hcalIso_; }
68  float trkIso() const { return trkIso_; }
69  float r9() const { return r9_; }
70  float sMin() const { return sMin_; }
71  float sMaj() const { return sMaj_; }
72  float seedId() const { return seedId_; }
73  std::vector<float> const& energyMatrix() const { return energyMatrix_; }
74  std::vector<float> const& timingMatrix() const { return timingMatrix_; }
75 
76 private:
77  float pt_;
78  float eta_;
79  float phi_;
80  float m_;
82  float hOverE_;
83  float ecalIso_;
84  float hcalIso_;
85  float trkIso_;
86  float r9_;
87  float sMin_;
88  float sMaj_;
89  unsigned int seedId_;
90  std::vector<float> energyMatrix_;
91  std::vector<float> timingMatrix_;
92 };
93 
94 typedef std::vector<Run3ScoutingPhoton> Run3ScoutingPhotonCollection;
95 
96 #endif
Run3ScoutingPhoton::ecalIso_
float ecalIso_
Definition: Run3ScoutingPhoton.h:83
Run3ScoutingPhoton::energyMatrix_
std::vector< float > energyMatrix_
Definition: Run3ScoutingPhoton.h:90
Run3ScoutingPhoton::trkIso_
float trkIso_
Definition: Run3ScoutingPhoton.h:85
Run3ScoutingPhoton::r9
float r9() const
Definition: Run3ScoutingPhoton.h:69
Run3ScoutingPhoton::m_
float m_
Definition: Run3ScoutingPhoton.h:80
Run3ScoutingPhoton::timingMatrix_
std::vector< float > timingMatrix_
Definition: Run3ScoutingPhoton.h:91
Run3ScoutingPhoton::timingMatrix
std::vector< float > const & timingMatrix() const
Definition: Run3ScoutingPhoton.h:74
Run3ScoutingPhoton::hOverE
float hOverE() const
Definition: Run3ScoutingPhoton.h:65
Run3ScoutingPhoton::Run3ScoutingPhoton
Run3ScoutingPhoton()
Definition: Run3ScoutingPhoton.h:42
Run3ScoutingPhoton::Run3ScoutingPhoton
Run3ScoutingPhoton(float pt, float eta, float phi, float m, float sigmaIetaIeta, float hOverE, float ecalIso, float hcalIso, float trkIso, float r9, float sMin, float sMaj, unsigned int seedId, std::vector< float > energyMatrix, std::vector< float > timingMatrix)
Definition: Run3ScoutingPhoton.h:11
Run3ScoutingPhoton::seedId_
unsigned int seedId_
Definition: Run3ScoutingPhoton.h:89
Run3ScoutingPhoton::hOverE_
float hOverE_
Definition: Run3ScoutingPhoton.h:82
Run3ScoutingPhoton::m
float m() const
Definition: Run3ScoutingPhoton.h:63
Run3ScoutingPhoton::sigmaIetaIeta_
float sigmaIetaIeta_
Definition: Run3ScoutingPhoton.h:81
Run3ScoutingPhoton::sMaj_
float sMaj_
Definition: Run3ScoutingPhoton.h:88
Run3ScoutingPhoton::ecalIso
float ecalIso() const
Definition: Run3ScoutingPhoton.h:66
Run3ScoutingPhotonCollection
std::vector< Run3ScoutingPhoton > Run3ScoutingPhotonCollection
Definition: Run3ScoutingPhoton.h:94
Run3ScoutingPhoton::phi_
float phi_
Definition: Run3ScoutingPhoton.h:79
Run3ScoutingPhoton::trkIso
float trkIso() const
Definition: Run3ScoutingPhoton.h:68
Run3ScoutingPhoton::sigmaIetaIeta
float sigmaIetaIeta() const
Definition: Run3ScoutingPhoton.h:64
Run3ScoutingPhoton::eta_
float eta_
Definition: Run3ScoutingPhoton.h:78
Run3ScoutingPhoton::phi
float phi() const
Definition: Run3ScoutingPhoton.h:62
Run3ScoutingPhoton::sMin
float sMin() const
Definition: Run3ScoutingPhoton.h:70
Run3ScoutingPhoton::energyMatrix
std::vector< float > const & energyMatrix() const
Definition: Run3ScoutingPhoton.h:73
Run3ScoutingPhoton::sMaj
float sMaj() const
Definition: Run3ScoutingPhoton.h:71
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
Run3ScoutingPhoton::r9_
float r9_
Definition: Run3ScoutingPhoton.h:86
Run3ScoutingPhoton::seedId
float seedId() const
Definition: Run3ScoutingPhoton.h:72
Run3ScoutingPhoton::hcalIso_
float hcalIso_
Definition: Run3ScoutingPhoton.h:84
Run3ScoutingPhoton::hcalIso
float hcalIso() const
Definition: Run3ScoutingPhoton.h:67
Run3ScoutingPhoton
Definition: Run3ScoutingPhoton.h:8
Run3ScoutingPhoton::eta
float eta() const
Definition: Run3ScoutingPhoton.h:61
Run3ScoutingPhoton::sMin_
float sMin_
Definition: Run3ScoutingPhoton.h:87
Run3ScoutingPhoton::pt
float pt() const
Definition: Run3ScoutingPhoton.h:60
Run3ScoutingPhoton::pt_
float pt_
Definition: Run3ScoutingPhoton.h:77