CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 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
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)