CMS 3D CMS Logo

ScoutingParticle.h
Go to the documentation of this file.
1 #ifndef DataFormats_ScoutingParticle_h
2 #define DataFormats_ScoutingParticle_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  ScoutingParticle(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  ScoutingParticle() : 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<ScoutingParticle> ScoutingParticleCollection;
34 
35 #endif
ScoutingParticle::m
float m() const
Definition: ScoutingParticle.h:20
ScoutingParticle::pt_
float pt_
Definition: ScoutingParticle.h:25
ScoutingParticle::pdgId
int pdgId() const
Definition: ScoutingParticle.h:21
ScoutingParticle::phi_
float phi_
Definition: ScoutingParticle.h:27
ScoutingParticle::phi
float phi() const
Definition: ScoutingParticle.h:19
ScoutingParticle::pt
float pt() const
Definition: ScoutingParticle.h:17
ScoutingParticle::m_
float m_
Definition: ScoutingParticle.h:28
ScoutingParticle
Definition: ScoutingParticle.h:8
ScoutingParticle::ScoutingParticle
ScoutingParticle()
Definition: ScoutingParticle.h:14
ScoutingParticle::eta
float eta() const
Definition: ScoutingParticle.h:18
ScoutingParticle::eta_
float eta_
Definition: ScoutingParticle.h:26
ScoutingParticle::vertex
int vertex() const
Definition: ScoutingParticle.h:22
ScoutingParticle::pdgId_
int pdgId_
Definition: ScoutingParticle.h:29
ScoutingParticle::vertex_
int vertex_
Definition: ScoutingParticle.h:30
ScoutingParticle::ScoutingParticle
ScoutingParticle(float pt, float eta, float phi, float m, int pdgId, int vertex)
Definition: ScoutingParticle.h:11
ScoutingParticleCollection
std::vector< ScoutingParticle > ScoutingParticleCollection
Definition: ScoutingParticle.h:33