CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Run3ScoutingParticle.h
Go to the documentation of this file.
1 #ifndef DataFormats_Scouting_Run3ScoutingParticle_h
2 #define DataFormats_Scouting_Run3ScoutingParticle_h
3 
4 #include <vector>
5 #include <cstdint>
6 
7 //class for holding PF candidate information, for use in data scouting
8 //IMPORTANT: the content of this class should be changed only in backwards compatible ways!
10 public:
11  //constructor with values for all data fields
13  float eta,
14  float phi,
15  float m,
16  int pdgId,
17  int vertex,
18  float normchi2,
19  float dz,
20  float dxy,
21  float dzsig,
22  float dxysig,
23  uint8_t lostInnerHits,
24  uint8_t quality,
25  float trk_pt,
26  float trk_eta,
27  float trk_phi)
28  : pt_(pt),
29  eta_(eta),
30  phi_(phi),
31  m_(m),
32  pdgId_(pdgId),
33  vertex_(vertex),
34  normchi2_(normchi2),
35  dz_(dz),
36  dxy_(dxy),
37  dzsig_(dzsig),
38  dxysig_(dxysig),
39  lostInnerHits_(lostInnerHits),
40  quality_(quality),
41  trk_pt_(trk_pt),
42  trk_eta_(trk_eta),
43  trk_phi_(trk_phi) {}
44 
45  // default constractor
47  : pt_(0),
48  eta_(0),
49  phi_(0),
50  m_(0),
51  pdgId_(0),
52  vertex_(-1),
53  normchi2_(0),
54  dz_(0),
55  dxy_(0),
56  dzsig_(0),
57  dxysig_(0),
58  lostInnerHits_(0),
59  quality_(0),
60  trk_pt_(0),
61  trk_eta_(0),
62  trk_phi_(0) {}
63 
64  //accessor functions
65  float pt() const { return pt_; }
66  float eta() const { return eta_; }
67  float phi() const { return phi_; }
68  float m() const { return m_; }
69  int pdgId() const { return pdgId_; }
70  int vertex() const { return vertex_; }
71  float normchi2() const { return normchi2_; }
72  float dz() const { return dz_; }
73  float dxy() const { return dxy_; }
74  float dzsig() const { return dzsig_; }
75  float dxysig() const { return dxysig_; }
76  uint8_t lostInnerHits() const { return lostInnerHits_; }
77  uint8_t quality() const { return quality_; }
78  float trk_pt() const { return trk_pt_; }
79  float trk_eta() const { return trk_eta_; }
80  float trk_phi() const { return trk_phi_; }
81 
82 private:
83  float pt_;
84  float eta_;
85  float phi_;
86  float m_;
87  int pdgId_;
88  int vertex_;
89  float normchi2_;
90  float dz_;
91  float dxy_;
92  float dzsig_;
93  float dxysig_;
94  uint8_t lostInnerHits_;
95  uint8_t quality_;
96  float trk_pt_;
97  float trk_eta_;
98  float trk_phi_;
99 };
100 
101 typedef std::vector<Run3ScoutingParticle> Run3ScoutingParticleCollection;
102 
103 #endif // DataFormats_Scouting_Run3ScoutingParticle_h
std::vector< Run3ScoutingParticle > Run3ScoutingParticleCollection
uint8_t quality() const
uint8_t lostInnerHits() const
Run3ScoutingParticle(float pt, float eta, float phi, float m, int pdgId, int vertex, float normchi2, float dz, float dxy, float dzsig, float dxysig, uint8_t lostInnerHits, uint8_t quality, float trk_pt, float trk_eta, float trk_phi)