CMS 3D CMS Logo

Run3ScoutingParticle.h
Go to the documentation of this file.
1 #ifndef DataFormats_Run3ScoutingParticle_h
2 #define DataFormats_Run3ScoutingParticle_h
3 
4 #include <vector>
5 
6 //class for holding PF candidate 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
11  Run3ScoutingParticle(float pt, float eta, float phi, float m, int pdgId, int vertex)
12  : pt_(pt), eta_(eta), phi_(phi), m_(m), pdgId_(pdgId), vertex_(vertex) {}
13  //default constructor
14  Run3ScoutingParticle() : pt_(0), eta_(0), phi_(0), m_(0), pdgId_(0), vertex_(-1) {}
15 
16  //accessor functions
17  float pt() const { return pt_; }
18  float eta() const { return eta_; }
19  float phi() const { return phi_; }
20  float m() const { return m_; }
21  int pdgId() const { return pdgId_; }
22  int vertex() const { return vertex_; }
23 
24 private:
25  float pt_;
26  float eta_;
27  float phi_;
28  float m_;
29  int pdgId_;
30  int vertex_;
31 };
32 
33 typedef std::vector<Run3ScoutingParticle> Run3ScoutingParticleCollection;
34 
35 #endif
Run3ScoutingParticle::pdgId
int pdgId() const
Definition: Run3ScoutingParticle.h:21
Run3ScoutingParticle::pt
float pt() const
Definition: Run3ScoutingParticle.h:17
Run3ScoutingParticle::m
float m() const
Definition: Run3ScoutingParticle.h:20
Run3ScoutingParticle
Definition: Run3ScoutingParticle.h:8
Run3ScoutingParticleCollection
std::vector< Run3ScoutingParticle > Run3ScoutingParticleCollection
Definition: Run3ScoutingParticle.h:33
Run3ScoutingParticle::pdgId_
int pdgId_
Definition: Run3ScoutingParticle.h:29
Run3ScoutingParticle::vertex
int vertex() const
Definition: Run3ScoutingParticle.h:22
Run3ScoutingParticle::eta_
float eta_
Definition: Run3ScoutingParticle.h:26
Run3ScoutingParticle::Run3ScoutingParticle
Run3ScoutingParticle()
Definition: Run3ScoutingParticle.h:14
Run3ScoutingParticle::phi_
float phi_
Definition: Run3ScoutingParticle.h:27
Run3ScoutingParticle::Run3ScoutingParticle
Run3ScoutingParticle(float pt, float eta, float phi, float m, int pdgId, int vertex)
Definition: Run3ScoutingParticle.h:11
Run3ScoutingParticle::vertex_
int vertex_
Definition: Run3ScoutingParticle.h:30
Run3ScoutingParticle::phi
float phi() const
Definition: Run3ScoutingParticle.h:19
Run3ScoutingParticle::pt_
float pt_
Definition: Run3ScoutingParticle.h:25
Run3ScoutingParticle::m_
float m_
Definition: Run3ScoutingParticle.h:28
Run3ScoutingParticle::eta
float eta() const
Definition: Run3ScoutingParticle.h:18