Imperial Analysis
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ic::Tau Class Reference

This class stores a subset of the reco::PFTau properties which are most commonly used in analysis. More...

#include "UserCode/ICHiggsTauTau/interface/Tau.hh"

+ Inheritance diagram for ic::Tau:

Public Member Functions

 Tau ()
 
virtual ~Tau ()
 
virtual void Print () const
 
 ClassDef (Tau, 3)
 
Properties
std::map< std::size_t, float >
const & 
tau_ids () const
 Get the map containing the hashed discriminator labels and corresponding values. More...
 
int const & decay_mode () const
 The tau decay mode identifier. More...
 
float const & lead_ecal_energy () const
 ECAL energy of the leading charged PF constituent. More...
 
float const & lead_hcal_energy () const
 HCAL energy of the leading charged PF constituent. More...
 
float const & lead_p () const
 Momentum of the leading charged PF constituent. More...
 
float const & lead_dxy_vertex () const
 Transverse impact parameter of the leading charged constituent track with the primary vertex. More...
 
float const & lead_dz_vertex () const
 Longitudinal impact parameter of the leading charged constituent track with the primary vertex. More...
 
double vx () const
 The x-coordinate of the leading track PCA. More...
 
double vy () const
 The y-coordinate of the leading track PCA. More...
 
double vz () const
 The z-coordinate of the leading track PCA. More...
 
std::vector< std::size_t > const & constituent_tracks () const
 A vector referring to the constituent track ic::Track::id() More...
 
std::vector< std::size_t > const & sig_charged_cands () const
 A vector referring to the signal PFCandidates. More...
 
std::vector< std::size_t > const & iso_charged_cands () const
 A vector referring to the isolation PFCandidates. More...
 
std::vector< std::size_t > const & sig_gamma_cands () const
 A vector referring to the signal PFCandidates. More...
 
std::vector< std::size_t > const & iso_gamma_cands () const
 A vector referring to the isolation PFCandidates. More...
 
Setters
void set_tau_ids (std::map< std::size_t, float > const &tau_ids)
 Get the map containing the hashed discriminator labels and corresponding values. More...
 
void set_decay_mode (int const &decay_mode)
 The tau decay mode identifier. More...
 
void set_lead_ecal_energy (float const &lead_ecal_energy)
 ECAL energy of the leading charged PF constituent. More...
 
void set_lead_hcal_energy (float const &lead_hcal_energy)
 HCAL energy of the leading charged PF constituent. More...
 
void set_lead_p (float const &lead_p)
 Momentum of the leading charged PF constituent. More...
 
void set_lead_dxy_vertex (float const &lead_dxy_vertex)
 Transverse impact parameter of the leading charged constituent track with the primary vertex. More...
 
void set_lead_dz_vertex (float const &lead_dz_vertex)
 Longitudinal impact parameter of the leading charged constituent track with the primary vertex. More...
 
void set_vx (double const &x)
 The x-coordinate of the leading track PCA. More...
 
void set_vy (double const &y)
 The y-coordinate of the leading track PCA. More...
 
void set_vz (double const &z)
 The z-coordinate of the leading track PCA. More...
 
void set_constituent_tracks (std::vector< std::size_t > const &constituent_tracks)
 A vector referring to the constituent track ic::Track::id() More...
 
void set_sig_charged_cands (std::vector< std::size_t > const &sig_charged_cands)
 A vector referring to the isolation PFCandidates. More...
 
void set_iso_charged_cands (std::vector< std::size_t > const &iso_charged_cands)
 A vector referring to the isolation PFCandidates. More...
 
void set_sig_gamma_cands (std::vector< std::size_t > const &sig_gamma_cands)
 A vector referring to the isolation PFCandidates. More...
 
void set_iso_gamma_cands (std::vector< std::size_t > const &iso_gamma_cands)
 A vector referring to the isolation PFCandidates. More...
 
Tau discriminators

The Tau class contains a map for storing arbitrary pairs of hashed strings and floats, most commonly used for storing the output of the main tau discriminators.

void SetTauID (std::string const &name, float const &value)
 Add a new entry, overwriting any existing one with the same name. More...
 
bool HasTauID (std::string const &name) const
 Check if a value with label name has already been defined. More...
 
float GetTauID (std::string const &name) const
 Get the value associated to a label. More...
 
- Public Member Functions inherited from ic::Candidate
 Candidate ()
 
virtual ~Candidate ()
 
 ClassDef (Candidate, 2)
 
Vector const & vector () const
 Four-momentum. More...
 
std::size_t id () const
 Unique identifier. More...
 
double pt () const
 Direct access to the \( p_{\text{T}} \). More...
 
double eta () const
 Direct access to \( \eta \). More...
 
double phi () const
 Direct access to \( \phi \). More...
 
double energy () const
 Direct access to the energy. More...
 
int charge () const
 Electric charge. More...
 
double M () const
 Calculates the candidate mass. More...
 
void set_vector (Vector const &vector)
 Four-momentum. More...
 
void set_id (std::size_t const &id)
 Unique identifier. More...
 
void set_pt (double const &pt)
 Direct access to the \( p_{\text{T}} \). More...
 
void set_eta (double const &eta)
 Direct access to \( \eta \). More...
 
void set_phi (double const &phi)
 Direct access to \( \phi \). More...
 
void set_energy (double const &energy)
 Direct access to the energy. More...
 
void set_charge (int const &charge)
 Electric charge. More...
 

Detailed Description

This class stores a subset of the reco::PFTau properties which are most commonly used in analysis.

Examples:
plugins/ICTauProducer.hh.

Definition at line 17 of file Tau.hh.

Constructor & Destructor Documentation

ic::Tau::Tau ( )

Definition at line 7 of file Tau.cc.

ic::Tau::~Tau ( )
virtual

Definition at line 16 of file Tau.cc.

Member Function Documentation

void ic::Tau::Print ( ) const
virtual

Reimplemented from ic::Candidate.

Definition at line 18 of file Tau.cc.

std::map<std::size_t, float> const& ic::Tau::tau_ids ( ) const
inline

Get the map containing the hashed discriminator labels and corresponding values.

Definition at line 32 of file Tau.hh.

int const& ic::Tau::decay_mode ( ) const
inline

The tau decay mode identifier.

Definition at line 37 of file Tau.hh.

float const& ic::Tau::lead_ecal_energy ( ) const
inline

ECAL energy of the leading charged PF constituent.

Definition at line 40 of file Tau.hh.

float const& ic::Tau::lead_hcal_energy ( ) const
inline

HCAL energy of the leading charged PF constituent.

Definition at line 43 of file Tau.hh.

float const& ic::Tau::lead_p ( ) const
inline

Momentum of the leading charged PF constituent.

Definition at line 46 of file Tau.hh.

float const& ic::Tau::lead_dxy_vertex ( ) const
inline

Transverse impact parameter of the leading charged constituent track with the primary vertex.

Definition at line 50 of file Tau.hh.

float const& ic::Tau::lead_dz_vertex ( ) const
inline

Longitudinal impact parameter of the leading charged constituent track with the primary vertex.

Definition at line 54 of file Tau.hh.

double ic::Tau::vx ( ) const
inline

The x-coordinate of the leading track PCA.

Definition at line 57 of file Tau.hh.

double ic::Tau::vy ( ) const
inline

The y-coordinate of the leading track PCA.

Definition at line 60 of file Tau.hh.

double ic::Tau::vz ( ) const
inline

The z-coordinate of the leading track PCA.

Definition at line 63 of file Tau.hh.

std::vector<std::size_t> const& ic::Tau::constituent_tracks ( ) const
inline

A vector referring to the constituent track ic::Track::id()

Definition at line 66 of file Tau.hh.

std::vector<std::size_t> const& ic::Tau::sig_charged_cands ( ) const
inline

A vector referring to the signal PFCandidates.

Definition at line 71 of file Tau.hh.

std::vector<std::size_t> const& ic::Tau::iso_charged_cands ( ) const
inline

A vector referring to the isolation PFCandidates.

Definition at line 76 of file Tau.hh.

std::vector<std::size_t> const& ic::Tau::sig_gamma_cands ( ) const
inline

A vector referring to the signal PFCandidates.

Definition at line 81 of file Tau.hh.

std::vector<std::size_t> const& ic::Tau::iso_gamma_cands ( ) const
inline

A vector referring to the isolation PFCandidates.

Definition at line 86 of file Tau.hh.

void ic::Tau::set_tau_ids ( std::map< std::size_t, float > const &  tau_ids)
inline

Get the map containing the hashed discriminator labels and corresponding values.

Definition at line 94 of file Tau.hh.

void ic::Tau::set_decay_mode ( int const &  decay_mode)
inline

The tau decay mode identifier.

Examples:
plugins/ICTauProducer.hh.

Definition at line 99 of file Tau.hh.

void ic::Tau::set_lead_ecal_energy ( float const &  lead_ecal_energy)
inline

ECAL energy of the leading charged PF constituent.

Examples:
plugins/ICTauProducer.hh.

Definition at line 104 of file Tau.hh.

void ic::Tau::set_lead_hcal_energy ( float const &  lead_hcal_energy)
inline

HCAL energy of the leading charged PF constituent.

Examples:
plugins/ICTauProducer.hh.

Definition at line 109 of file Tau.hh.

void ic::Tau::set_lead_p ( float const &  lead_p)
inline

Momentum of the leading charged PF constituent.

Examples:
plugins/ICTauProducer.hh.

Definition at line 114 of file Tau.hh.

void ic::Tau::set_lead_dxy_vertex ( float const &  lead_dxy_vertex)
inline

Transverse impact parameter of the leading charged constituent track with the primary vertex.

Examples:
plugins/ICTauProducer.hh.

Definition at line 117 of file Tau.hh.

void ic::Tau::set_lead_dz_vertex ( float const &  lead_dz_vertex)
inline

Longitudinal impact parameter of the leading charged constituent track with the primary vertex.

Examples:
plugins/ICTauProducer.hh.

Definition at line 122 of file Tau.hh.

void ic::Tau::set_vx ( double const &  x)
inline

The x-coordinate of the leading track PCA.

Examples:
plugins/ICTauProducer.hh.

Definition at line 127 of file Tau.hh.

void ic::Tau::set_vy ( double const &  y)
inline

The y-coordinate of the leading track PCA.

Examples:
plugins/ICTauProducer.hh.

Definition at line 130 of file Tau.hh.

void ic::Tau::set_vz ( double const &  z)
inline

The z-coordinate of the leading track PCA.

Examples:
plugins/ICTauProducer.hh.

Definition at line 133 of file Tau.hh.

void ic::Tau::set_constituent_tracks ( std::vector< std::size_t > const &  constituent_tracks)
inline

A vector referring to the constituent track ic::Track::id()

Examples:
plugins/ICTauProducer.hh.

Definition at line 136 of file Tau.hh.

void ic::Tau::set_sig_charged_cands ( std::vector< std::size_t > const &  sig_charged_cands)
inline

A vector referring to the isolation PFCandidates.

Examples:
plugins/ICTauProducer.hh.

Definition at line 142 of file Tau.hh.

void ic::Tau::set_iso_charged_cands ( std::vector< std::size_t > const &  iso_charged_cands)
inline

A vector referring to the isolation PFCandidates.

Examples:
plugins/ICTauProducer.hh.

Definition at line 148 of file Tau.hh.

void ic::Tau::set_sig_gamma_cands ( std::vector< std::size_t > const &  sig_gamma_cands)
inline

A vector referring to the isolation PFCandidates.

Examples:
plugins/ICTauProducer.hh.

Definition at line 154 of file Tau.hh.

void ic::Tau::set_iso_gamma_cands ( std::vector< std::size_t > const &  iso_gamma_cands)
inline

A vector referring to the isolation PFCandidates.

Examples:
plugins/ICTauProducer.hh.

Definition at line 160 of file Tau.hh.

void ic::Tau::SetTauID ( std::string const &  name,
float const &  value 
)

Add a new entry, overwriting any existing one with the same name.

Parameters
nameA label to identify the value, will be stored as a hash
valueThe value to associate to the label name
Examples:
plugins/ICTauProducer.hh.

Definition at line 20 of file Tau.cc.

bool ic::Tau::HasTauID ( std::string const &  name) const

Check if a value with label name has already been defined.

Parameters
nameThe label to check
Returns
True if the label exists in the map, false otherwise

Definition at line 35 of file Tau.cc.

float ic::Tau::GetTauID ( std::string const &  name) const

Get the value associated to a label.

Parameters
nameThe label to retrieve
Returns
The value associated to the label if found, otherwise zero.

Definition at line 24 of file Tau.cc.

ic::Tau::ClassDef ( Tau  ,
 
)

The documentation for this class was generated from the following files: