TIMBER  beta
Tree Interface for Making Binned Events with RDataFrame
Public Member Functions | Public Attributes | List of all members
GenParticleObjs Class Reference

C++ class. Class that stores and manipulates the information for gen particles. Stores all gen particles in the event and member functions can be used to access the gen particles by index. More...

Collaboration diagram for GenParticleObjs:
Collaboration graph
[legend]

Public Member Functions

 GenParticleObjs (RVec< float > in_pt, RVec< float > in_eta, RVec< float > in_phi, RVec< float > in_m, RVec< int > in_pdgId, RVec< int > in_status, RVec< int > in_statusFlags, RVec< int > in_genPartIdxMother)
 Constructor which takes in all info from the GenPart collection in NanoAOD Just assigns the inputs to internal variables. More...
 
 GenParticleObjs (Collection genParts)
 Construct a new Gen Particle object. More...
 
std::map< std::string, bool > CompareToVector (LVector vect)
 Compares GenPart object to a provided vector. More...
 
Particle SetIndex (int idx)
 Sets the index of the lookup particle. More...
 
int GetStatusFlag (std::string flagName)
 Returns the bool for the flag name provided. More...
 

Public Attributes

Particle particle
 

Detailed Description

C++ class. Class that stores and manipulates the information for gen particles. Stores all gen particles in the event and member functions can be used to access the gen particles by index.

Constructor & Destructor Documentation

◆ GenParticleObjs() [1/2]

GenParticleObjs ( RVec< float >  in_pt,
RVec< float >  in_eta,
RVec< float >  in_phi,
RVec< float >  in_m,
RVec< int >  in_pdgId,
RVec< int >  in_status,
RVec< int >  in_statusFlags,
RVec< int >  in_genPartIdxMother 
)

Constructor which takes in all info from the GenPart collection in NanoAOD Just assigns the inputs to internal variables.

Parameters
in_ptInput \(p_T\)
in_etaInput \(eta\)
in_phiInput \(phi\)
in_mInput mass
in_pdgIdInput PDG ID
in_statusInput status
in_statusFlagsInput status flags
in_genPartIdxMotherInput mother index

◆ GenParticleObjs() [2/2]

GenParticleObjs ( Collection  genParts)

Construct a new Gen Particle object.

Parameters
genPartsCollection object filled with GenPart branches from NanoAOD.

Member Function Documentation

◆ CompareToVector()

std::map< std::string, bool > CompareToVector ( LVector  vect)

Compares GenPart object to a provided vector.

Parameters
vectThe vector to compare against the current particle.
Returns
std::map< std::string, bool> Map with keys "sameHemisphere" (phi<pi), "deltaR" (deltaR < 0.8), "deltaM" (|delta m|/m_gen < 0.05) which all return bools.

◆ GetStatusFlag()

int GetStatusFlag ( std::string  flagName)

Returns the bool for the flag name provided.

Parameters
flagName
Returns
int Status flag.

◆ SetIndex()

Particle SetIndex ( int  idx)

Sets the index of the lookup particle.

Parameters
idxThe index in the collection
Returns
Particle

Member Data Documentation

◆ particle

Particle particle

the current particle object queued for access


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