Truth

class TruthSelector : public xAH::Algorithm

Public Functions

TruthSelector()
virtual EL::StatusCode setupJob(EL::Job &job)
virtual EL::StatusCode fileExecute()
virtual EL::StatusCode histInitialize()
virtual EL::StatusCode changeInput(bool firstFile)
virtual EL::StatusCode initialize()
virtual EL::StatusCode execute()
virtual EL::StatusCode postExecute()
virtual EL::StatusCode finalize()
virtual EL::StatusCode histFinalize()
virtual bool executeSelection(const xAOD::TruthParticleContainer *inTruthParts, float mcEvtWeight, bool count, std::string outContainerName)
virtual int PassCuts(const xAOD::TruthParticle *truthPart)

Public Members

bool m_useCutFlow = true
std::string m_inContainerName = ""

input container name

std::string m_outContainerName = ""

output container name

std::string m_decor = "passSel"

The decoration key written to passing objects.

bool m_decorateSelectedObjects = true

decorate selected objects? defaul passSel

bool m_createSelectedContainer = false

fill using SG::VIEW_ELEMENTS to be light weight

int m_nToProcess = -1

look at n objects

int m_pass_min = -1

minimum number of objects passing cuts

int m_pass_max = -1

maximum number of objects passing cuts

float m_pT_max = 1e8

require pT < pt_max

float m_pT_min = 1e8

require pT > pt_min

float m_eta_max = 1e8

require eta < eta_max

float m_eta_min = 1e8

require eta > eta_max

float m_mass_max = 1e8

require mass < mass_max

float m_mass_min = 1e8

require mass > mass_max

float m_rapidity_max = 1e8

require rapidity < rapidity_max

float m_rapidity_min = 1e8

require rapidity > rapidity_min

unsigned int m_type = 1000

require classifierParticleType == type (defined by TruthClassifier: https://gitlab.cern.ch/atlas/athena/blob/21.2/PhysicsAnalysis/MCTruthClassifier/MCTruthClassifier/MCTruthClassifierDefs.h)

std::string m_typeOptions

require classifierParticleType to match any of the “|” separated type values (e.g. “1|2|3|4”)

unsigned int m_origin = 1000

require classifierParticleOrigin == origin (defined by TruthClassifier: https://gitlab.cern.ch/atlas/athena/blob/21.2/PhysicsAnalysis/MCTruthClassifier/MCTruthClassifier/MCTruthClassifierDefs.h)

std::string m_originOptions

require classifierParticleOrigin to match any of the “|” separated origin values (e.g. “10|12|13”)

float m_pT_dressed_min = 1e8

require pt_dressed > pt_dressed_min

float m_eta_dressed_min = 1e8

require eta_dressed > eta_dressed_min

float m_eta_dressed_max = 1e8

require eta_dressed > eta_dressed_max

Private Members

int m_numEvent
int m_numObject
int m_numEventPass
int m_weightNumEventPass
int m_numObjectPass
TH1D *m_cutflowHist = nullptr
TH1D *m_cutflowHistW = nullptr
int m_cutflow_bin
TH1D *m_truth_cutflowHist_1 = nullptr
int m_truth_cutflow_all
int m_truth_cutflow_ptmax_cut
int m_truth_cutflow_ptmin_cut
int m_truth_cutflow_eta_cut