Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:40

0001 #ifndef DataFormats_ScoutingParticle_h
0002 #define DataFormats_ScoutingParticle_h
0003 
0004 #include <vector>
0005 
0006 //class for holding PF candidate information, for use in data scouting
0007 //IMPORTANT: the content of this class should be changed only in backwards compatible ways!
0008 class ScoutingParticle {
0009 public:
0010   //constructor with values for all data fields
0011   ScoutingParticle(float pt, float eta, float phi, float m, int pdgId, int vertex)
0012       : pt_(pt), eta_(eta), phi_(phi), m_(m), pdgId_(pdgId), vertex_(vertex) {}
0013   //default constructor
0014   ScoutingParticle() : pt_(0), eta_(0), phi_(0), m_(0), pdgId_(0), vertex_(-1) {}
0015 
0016   //accessor functions
0017   float pt() const { return pt_; }
0018   float eta() const { return eta_; }
0019   float phi() const { return phi_; }
0020   float m() const { return m_; }
0021   int pdgId() const { return pdgId_; }
0022   int vertex() const { return vertex_; }
0023 
0024 private:
0025   float pt_;
0026   float eta_;
0027   float phi_;
0028   float m_;
0029   int pdgId_;
0030   int vertex_;
0031 };
0032 
0033 typedef std::vector<ScoutingParticle> ScoutingParticleCollection;
0034 
0035 #endif