1 #ifndef ICHiggsTauTau_Jet_hh
2 #define ICHiggsTauTau_Jet_hh
19 typedef std::map<std::size_t, float> UFmap;
20 typedef std::map<std::size_t, std::string> TSmap;
25 virtual void Print()
const;
40 inline std::map<std::size_t, float>
const&
jec_factors()
const {
47 return b_discriminators_;
57 return gen_particles_;
63 return secondary_vertices_;
68 return uncorrected_energy_;
72 inline float const&
jet_area()
const {
return jet_area_; }
137 void SetJecFactor(std::string
const& name,
float const& value);
146 UFmap b_discriminators_;
147 std::vector<std::size_t> gen_particles_;
148 std::vector<std::size_t> secondary_vertices_;
149 double uncorrected_energy_;
154 std::string UnHashJecFactor(std::size_t jec)
const;
155 std::string UnHashDiscr(std::size_t dis)
const;
157 #ifndef SKIP_CINT_DICT
void set_hadron_flavour(int const &hadron_flavour)
Returns true flavour of jet as PDG code. The hadronic definition can only return 0, 4 or 5.
float const & jet_area() const
The jet area as used in the L1FastJet correction.
std::map< std::size_t, float > const & jec_factors() const
A map containing the jet energy corrections, where the key is stored as a hash of the identifying str...
void set_secondary_vertices(std::vector< std::size_t > const &secondary_vertices)
A map containing the b-tagging discriminators, where the key is stored as a hash of the identifying s...
void set_jec_factors(std::map< std::size_t, float > const &jec_factors)
A map containing the jet energy corrections, where the key is stored as a hash of the identifying str...
int const & hadron_flavour() const
Returns true flavour of jet as PDG code. The hadronic definition can only return 0, 4 or 5.
float GetJecFactor(std::string const &name) const
Returns a specific correction factor if name is defined, otherwise returns zero.
void SetBDiscriminator(std::string const &name, float const &value)
Store a b-tagging discriminator, overwriting any existing value with label name
Stores a four-momentum, charge and identifier, and is the base class for most other physics objects...
void set_parton_flavour(int const &parton_flavour)
An algorithmic determination of the true flavour of the jet, e.g. gluon, light, c or b quark...
int const & parton_flavour() const
An algorithmic determination of the true flavour of the jet, e.g. gluon, light, c or b quark...
std::vector< ic::Jet > JetCollection
void SetJecFactor(std::string const &name, float const &value)
Store a jet energy correction factor, overwriting any existing value with label name ...
virtual void Print() const
void set_gen_particles(std::vector< std::size_t > const &gen_particles)
A vector to refer to ic::GenParticle::id() values.
double const & uncorrected_energy() const
The raw value of the jet energy.
void set_jet_area(float const &jet_area)
The jet area as used in the L1FastJet correction.
std::vector< std::size_t > const & secondary_vertices() const
A map containing the b-tagging discriminators, where the key is stored as a hash of the identifying s...
void set_b_discriminators(std::map< std::size_t, float > const &b_discriminators)
A map containing the b-tagging discriminators, where the key is stored as a hash of the identifying s...
std::map< std::size_t, float > const & b_discriminators() const
A map containing the b-tagging discriminators, where the key is stored as a hash of the identifying s...
std::vector< std::size_t > const & gen_particles() const
A vector to refer to ic::GenParticle::id() values.
void set_uncorrected_energy(double const &uncorrected_energy)
The raw value of the jet energy.
float GetBDiscriminator(std::string const &name) const
Returns a specific discriminator value if name is defined, otherwise returns zero.
A basic jet class to store properties common to all jet types.