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

C++ class. Stores identifying features of a particle in the GenPart collection. More...

Public Member Functions

void AddParent (int idx)
 Add parent index to track. More...
 
void AddChild (int idx)
 Add child index to track. More...
 
float DeltaR (LVector input_vector)
 Calculate \(\Delta R\) between current particle and input vector. More...
 

Public Attributes

bool flag = true
 
int index
 
int * pdgId
 
int * status
 
std::map< std::string, int > statusFlags
 
int parentIndex
 
std::vector< int > childIndex
 
LVector vect
 

Detailed Description

C++ class. Stores identifying features of a particle in the GenPart collection.

Member Function Documentation

◆ AddChild()

void AddChild ( int  idx)

Add child index to track.

Parameters
idxChild index

◆ AddParent()

void AddParent ( int  idx)

Add parent index to track.

Parameters
idxParent index

◆ DeltaR()

float DeltaR ( LVector  input_vector)

Calculate \(\Delta R\) between current particle and input vector.

Parameters
input_vectorThe vector to compare against the current particle.
Returns
float \(\Delta R\) value

Member Data Documentation

◆ childIndex

std::vector<int> childIndex

Children indices

◆ flag

bool flag = true

Should always be true unless we need to return a None-like particle

◆ index

int index

Index in collection

◆ parentIndex

int parentIndex

Parent index

◆ pdgId

int* pdgId

PDG ID of particle

◆ status

int* status

Pythia status of particle

◆ statusFlags

std::map<std::string, int> statusFlags

Map of status flags for set gen particle

◆ vect

LVector vect

Lorentz vector


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