Imperial Analysis
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GenJet.hh
Go to the documentation of this file.
1 #ifndef ICHiggsTauTau_GenJet_hh
2 #define ICHiggsTauTau_GenJet_hh
3 #include <vector>
4 #include "Math/Point3D.h"
5 #include "Math/Point3Dfwd.h"
7 #include "Rtypes.h"
8 
9 namespace ic {
10 
15 class GenJet : public Candidate {
16  public:
17  GenJet();
18  virtual ~GenJet();
19  virtual void Print() const;
20 
22 
23  inline int flavour() const { return flavour_; }
25 
27  inline unsigned n_constituents() const { return n_constituents_; }
28 
31  inline std::vector<std::size_t> const& constituents() const {
32  return constituents_;
33  }
36 
38  inline void set_flavour(int const& flavour) { flavour_ = flavour; }
40 
42  inline void set_n_constituents(unsigned const& n_constituents) {
43  n_constituents_ = n_constituents;
44  }
45 
47  inline void set_constituents(std::vector<std::size_t> const& constituents) {
48  constituents_ = constituents;
49  }
52  private:
53  int flavour_;
54  unsigned n_constituents_;
55  std::vector<std::size_t> constituents_;
56 
57  #ifndef SKIP_CINT_DICT
58  public:
59  ClassDef(GenJet, 2);
60  #endif
61 };
62 
63 typedef std::vector<ic::GenJet> GenJetCollection;
64 }
66 #endif
void set_n_constituents(unsigned const &n_constituents)
The number of GenParticle constituents.
Definition: GenJet.hh:42
Stores the basic properties of a generator-level jet, in particular can save the IDs of the GenPartic...
Definition: GenJet.hh:15
Stores a four-momentum, charge and identifier, and is the base class for most other physics objects...
Definition: Candidate.hh:13
unsigned n_constituents() const
The number of GenParticle constituents.
Definition: GenJet.hh:27
void set_constituents(std::vector< std::size_t > const &constituents)
A vector of ic::GenParticle::id() values corresponding to the constituent particles.
Definition: GenJet.hh:47
Definition: CaloJet.hh:9
void set_flavour(int const &flavour)
The true flavour of the jet.
Definition: GenJet.hh:39
std::vector< std::size_t > const & constituents() const
A vector of ic::GenParticle::id() values corresponding to the constituent particles.
Definition: GenJet.hh:31
int flavour() const
The true flavour of the jet.
Definition: GenJet.hh:24
GenJet()
Definition: GenJet.cc:4
std::vector< ic::GenJet > GenJetCollection
Definition: GenJet.hh:63
virtual void Print() const
Definition: GenJet.cc:8
ClassDef(GenJet, 2)
virtual ~GenJet()
Definition: GenJet.cc:6