CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
10  public:
11  //constructor with values for all data fields
12  ScoutingParticle(float pt, float eta, float phi, float m,
13  int pdgId, int vertex):
14  pt_(pt), eta_(eta), phi_(phi), m_(m), pdgId_(pdgId), vertex_(vertex) {}
15  //default constructor
16  ScoutingParticle():pt_(0), eta_(0), phi_(0), m_(0), pdgId_(0), vertex_(-1) {}
17 
18  //accessor functions
19  float pt() const { return pt_; }
20  float eta() const { return eta_; }
21  float phi() const { return phi_; }
22  float m() const { return m_; }
23  int pdgId() const { return pdgId_; }
24  int vertex() const { return vertex_; }
25 
26  private:
27  float pt_;
28  float eta_;
29  float phi_;
30  float m_;
31  int pdgId_;
32  int vertex_;
33 };
34 
35 typedef std::vector<ScoutingParticle> ScoutingParticleCollection;
36 
37 #endif
float phi() const
int pdgId() const
float m() const
float eta() const
float pt() const
int vertex() const
std::vector< ScoutingParticle > ScoutingParticleCollection
ScoutingParticle(float pt, float eta, float phi, float m, int pdgId, int vertex)