ATLAS Offline Software
Loading...
Searching...
No Matches
DecoratorHelpers.h File Reference
#include <AthContainers/Decorator.h>
#include <Math/Vector4D.h>
#include <TMath.h>
#include <xAODEventInfo/EventInfo.h>
#include <stdexcept>
#include <string>
#include <unordered_map>
#include <vector>
Include dependency graph for DecoratorHelpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CP::PartonDecorator
 Struct to manage and apply decorators to the EventInfo object. More...
struct  CP::PartonDecorator::ParticleDecorators
 Decorators of one scalar particle prefix; pdgId is nullptr if the "<prefix>_pdgId" decorator was not initialized. More...
struct  CP::PartonDecorator::VectorParticleDecorators
 Decorators of one vector particle prefix. More...

Namespaces

namespace  CP
 Select isolated Photons, Electrons and Muons.

Functions

template<typename T, typename U, typename V>
void CP::FillParticleInfo (const SG::Decorator< T > &dec, const U &value, const V *object)
 Template function to fill particle information into a given object.
template<typename T, typename U, typename V>
void CP::FillVectorParticleInfo (const SG::Decorator< std::vector< T > > &dec, const U &value, const V *object)
 Template function to fill vector particle information into a given object.
template<typename T, typename U>
void CP::FillParticleInfo (const SG::Decorator< T > &dec_pt, const SG::Decorator< T > &dec_eta, const SG::Decorator< T > &dec_phi, const SG::Decorator< T > &dec_m, const ROOT::Math::PtEtaPhiMVector &particle, U *object)
 Template function to fill basic particle kinematics (pt, eta, phi, m) into an object.
template<typename T, typename U>
void CP::FillVectorParticleInfo (const SG::Decorator< std::vector< T > > &dec_pt, const SG::Decorator< std::vector< T > > &dec_eta, const SG::Decorator< std::vector< T > > &dec_phi, const SG::Decorator< std::vector< T > > &dec_m, const ROOT::Math::PtEtaPhiMVector &particle, U *object)
 Template function to fill basic vector particle kinematics into an object.
template<typename T, typename U>
void CP::FillParticleInfo (const SG::Decorator< T > &dec_pt, const SG::Decorator< T > &dec_eta, const SG::Decorator< T > &dec_phi, const SG::Decorator< T > &dec_m, const SG::Decorator< int > &dec_pdgId, const ROOT::Math::PtEtaPhiMVector &particle, int pdgId, U *object)
 Template function to fill particle kinematics and PDG ID into an object.
template<typename T, typename U>
void CP::FillVectorParticleInfo (const SG::Decorator< std::vector< T > > &dec_pt, const SG::Decorator< std::vector< T > > &dec_eta, const SG::Decorator< std::vector< T > > &dec_phi, const SG::Decorator< std::vector< T > > &dec_m, const SG::Decorator< std::vector< int > > &dec_pdgId, const ROOT::Math::PtEtaPhiMVector &particle, int pdgId, U *object)
 Template function to fill vector particle kinematics and PDG ID into an object.
template<typename T, typename U>
void CP::FillDefaultParticleInfo (const SG::Decorator< T > &dec_pt, const SG::Decorator< T > &dec_eta, const SG::Decorator< T > &dec_phi, const SG::Decorator< T > &dec_m, U *object)
 Template function to fill default (placeholder) particle kinematics into an object.
template<typename T, typename U>
void CP::FillDefaultVectorParticleInfo (const SG::Decorator< std::vector< T > > &dec_pt, const SG::Decorator< std::vector< T > > &dec_eta, const SG::Decorator< std::vector< T > > &dec_phi, const SG::Decorator< std::vector< T > > &dec_m, U *object)
 Template function to fill default (placeholder) vector particle kinematics into an object.
template<typename T, typename U>
void CP::FillDefaultParticleInfo (const SG::Decorator< T > &dec_pt, const SG::Decorator< T > &dec_eta, const SG::Decorator< T > &dec_phi, const SG::Decorator< T > &dec_m, const SG::Decorator< int > &dec_pdgId, U *object)
 Template function to fill default (placeholder) particle kinematics and PDG ID into an object.
template<typename T, typename U>
void CP::FillDefaultVectorParticleInfo (const SG::Decorator< std::vector< T > > &dec_pt, const SG::Decorator< std::vector< T > > &dec_eta, const SG::Decorator< std::vector< T > > &dec_phi, const SG::Decorator< std::vector< T > > &dec_m, const SG::Decorator< std::vector< int > > &dec_pdgId, U *object)
 Template function to fill default (placeholder) vector particle kinematics and PDG ID into an object.