Imperial Analysis
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GenParticle.hh
Go to the documentation of this file.
1 #ifndef ICHiggsTauTau_GenParticle_hh
2 #define ICHiggsTauTau_GenParticle_hh
3 #include <vector>
4 #include "Math/Point3D.h"
5 #include "Math/Point3Dfwd.h"
7 #include "Rtypes.h"
8 
9 
10 namespace ic {
11 
16  IsPrompt = 0,
31 };
32 
33 
38 class GenParticle : public Candidate {
39 
40  private:
41  typedef ROOT::Math::XYZPoint Point;
42 
43  public:
44  GenParticle();
45  virtual ~GenParticle();
46  virtual void Print() const;
47 
49 
50  inline int index() const { return index_; }
52 
55  inline int pdgid() const { return pdgid_; }
56 
58  inline int status() const { return status_; }
59 
62  inline std::vector<int> const& mothers() const { return mothers_; }
63 
66  inline std::vector<int> const& daughters() const { return daughters_; }
67 
69  inline std::vector<bool> const& statusFlags() const { return statusFlags_; }
72 
74  inline void set_index(int const& index) { index_ = index; }
76 
78  inline void set_pdgid(int const& pdgid) { pdgid_ = pdgid; }
79 
81  inline void set_status(int const& status) { status_ = status; }
82 
84  inline void set_mothers(std::vector<int> const& mothers) {
85  mothers_ = mothers;
86  }
87 
89  inline void set_daughters(std::vector<int> const& daughters) {
90  daughters_ = daughters;
91  }
92 
94  inline void set_statusFlags(std::vector<bool> const& statusFlags) {
95  statusFlags_ = statusFlags;
96  }
99  private:
100  int index_;
101  int pdgid_;
102  int status_;
103  std::vector<int> mothers_;
104  std::vector<int> daughters_;
105  std::vector<bool> statusFlags_;
106 
107  #ifndef SKIP_CINT_DICT
108  public:
109  ClassDef(GenParticle, 4);
110  #endif
111 };
112 
113 typedef std::vector<ic::GenParticle> GenParticleCollection;
114 }
116 #endif
int pdgid() const
PDG number to identify the particle type, see this link
Definition: GenParticle.hh:55
std::vector< bool > const & statusFlags() const
A genstatusflags object to give information about the production of the particle. ...
Definition: GenParticle.hh:69
void set_daughters(std::vector< int > const &daughters)
A vector of ic::GenParticle::index() values that identify the daughter particles. ...
Definition: GenParticle.hh:89
virtual ~GenParticle()
Definition: GenParticle.cc:7
std::vector< int > const & mothers() const
A vector of ic::GenParticle::index() values that identify the mother particles.
Definition: GenParticle.hh:62
Stores a four-momentum, charge and identifier, and is the base class for most other physics objects...
Definition: Candidate.hh:13
std::vector< int > const & daughters() const
A vector of ic::GenParticle::index() values that identify the daughter particles. ...
Definition: GenParticle.hh:66
Definition: CaloJet.hh:9
GenStatusBits
Stores the order of the gen status flags stored inside the ic::GenParticle.
Definition: GenParticle.hh:15
void set_pdgid(int const &pdgid)
PDG number to identify the particle type, see this link
Definition: GenParticle.hh:78
int status() const
The generator-dependent particle status.
Definition: GenParticle.hh:58
int index() const
The index position of the particle in the original list.
Definition: GenParticle.hh:51
virtual void Print() const
Definition: GenParticle.cc:9
void set_statusFlags(std::vector< bool > const &statusFlags)
A genstatusflags object to give information about the production of the particle. ...
Definition: GenParticle.hh:94
void set_index(int const &index)
The index position of the particle in the original list.
Definition: GenParticle.hh:75
void set_status(int const &status)
The generator-dependent particle status.
Definition: GenParticle.hh:81
void set_mothers(std::vector< int > const &mothers)
A vector of ic::GenParticle::index() values that identify the mother particles.
Definition: GenParticle.hh:84
std::vector< ic::GenParticle > GenParticleCollection
Definition: GenParticle.hh:113
Stores the basic properties of generator-level particles as well as mother-daughter relations with ot...
Definition: GenParticle.hh:38
ClassDef(GenParticle, 4)