stablejet is hosted by Hepforge, IPPP Durham
StableJet
StabilityUserInfo.h
1 #ifndef FastJetStability_StabilityUserInfo_h
2 #define FastJetStability_StabilityUserInfo_h
3 
4 #include "JetStabilityDefs.h"
5 
6 namespace stab {
7 
8 
15 
16 public:
17 
20  :m_pdgId(0),m_charge(0.) {}
21 
23  inline StabilityUserInfo(int pdgId,double charge)
24  :m_pdgId(pdgId)
25  ,m_charge(charge){ }
26 
28  inline StabilityUserInfo( const StabilityUserInfo &info)
29  :m_pdgId(info.pdgId())
30  ,m_charge(info.charge()){ }
31 
33  inline virtual ~StabilityUserInfo() { }
34 
35  // -------- accessor methods ----------------------
36 
38  inline int pdgId() const { return m_pdgId; }
39 
41  inline double charge() const { return m_charge; }
42 
43 
44 private:
45  int m_pdgId;
46 
47  double m_charge;
48 
49 };
50 
51 } // end stab namespace
52 
53 #endif
StabilityUserInfo(const StabilityUserInfo &info)
copy constructor
int pdgId() const
return the pdgId of the particle
StabilityUserInfo()
default constructor
virtual ~StabilityUserInfo()
destructor
double charge() const
return the charge of the particle
StabilityUserInfo(int pdgId, double charge)
construct with pdgId as argument