Tracks

class TrackSelector : public xAH::Algorithm

Public Functions

TrackSelector()
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()
EL::StatusCode executeTrackCollection(float mcEvtWeight)
EL::StatusCode executeTracksInJets()
virtual EL::StatusCode postExecute()
virtual EL::StatusCode finalize()
virtual EL::StatusCode histFinalize()
virtual int PassCuts(const xAOD::TrackParticle *jet, const xAOD::Vertex *pvx)

Public Members

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

input container name

std::string m_outContainerName = ""

output container name

std::string m_inJetContainerName = ""

input jet container name

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

std::string m_cutLevelString = ""

available: Loose LoosePrimary TightPrimary LooseMuon LooseElectron MinBias HILoose HITight

float m_pT_max = 1e8

require pT < pt_max

float m_pT_min = 1e8

require pT > pt_max

float m_p_min = 1e8

require |p| > p_min

float m_eta_max = 1e8

require |eta| < eta_max

float m_eta_min = 1e8

require |eta| > eta_min

float m_etaSigned_min = 1e8

require eta > eta_min

float m_etaSigned_max = 1e8

require eta < eta_max

float m_d0_max = 1e8

require |d0| < d0_max

float m_z0_max = 1e8

require |z0| < z0_max

float m_sigmad0_max = 1e8

maximum error on d0

float m_d0oversigmad0_max = 1e8

maximum significance of |d0|

float m_z0sinT_max = 1e8

require |z0xsin(theta)| < z0sintheta_max

float m_sigmaz0_max = 1e8

maximum error on z0

float m_sigmaz0sintheta_max = 1e8

maximum error on z0*sin(theta)

float m_z0oversigmaz0_max = 1e8

max |z0| significance

float m_z0sinthetaoversigmaz0sintheta_max = 1e8

max |z0sin(theta)| significance

int m_nPixelHits_min = 1e8

minimum pixel hits (counting dead sensors)

int m_nPixelHitsPhysical_min = 1e8

minimum pixel hits (no dead sensors)

int m_nSctHits_min = 1e8

minimum SCT hits (counting dead sensors)

int m_nSctHitsPhysical_min = 1e8

minimum SCT hits (no dead sensors)

int m_nSi_min = 1e8

require nSi >= nSi_min (nSi = nPix + nSct)

int m_nSiPhysical_min = 1e8

require nSi >= nSi_min (nSi = nPix + nSct, no dead sensors)

int m_nPixHoles_max = 1e8

require nPixHoles <= nPixHoles_max

int m_nSctHoles_max = 1e8

require nSCTHoles <= nSCTHoles_max

int m_nSiHoles_max = 1e8

maximum silicon holes

int m_nInnermostPixel_min = 1e8

minimum nIBL (if expected)

int m_nNextToInnermostPixel_min = 1e8

minimum nBL (if expected)

int m_nBothInnermostLayersHits_min = 1e8

minimum nIBL + nBL (if every hit that is not expected, we require one less)

int m_nPixelSharedHits_max = 1e8

maximum pixel hits shared with other tracks

int m_nSctSharedHits_max = 1e8

maximum SCT hits shared with other tracks

int m_nSiSharedHits_max = 1e8

maximum silicon hits shared with other tracks

int m_nSiSharedModules_max = 1e8

maximum (pixel + SCT/2) shared hits

float m_chi2NdofCut_max = 1e8

require chi2/ndof < chi2NdofCut_max

float m_chi2Prob_max = 1e8

require TMath::Prob(chi2,ndof) < chi2ProbMax

float m_chi2Prob_min = 1e8

require TMath::Prob(chi2,ndof) > chi2ProbMax

int m_nBL_min = 1e8

require nIBL >= nBL_min (not recommended; for downward compatibility)

std::string m_passAuxDecorKeys = ""
std::string m_failAuxDecorKeys = ""
bool m_doTracksInJets = false

do track selection on track within jets

Private Members

std::vector<std::string> m_passKeys
std::vector<std::string> m_failKeys
asg::AnaToolHandle<InDet::IInDetTrackSelectionTool> m_trkSelTool_handle = {"InDet::InDetTrackSelectionTool/TrackSelectionTool", this}
int m_numEvent
int m_numObject
int m_numEventPass
int m_numObjectPass
TH1D *m_cutflowHist = nullptr
TH1D *m_cutflowHistW = nullptr
int m_cutflow_bin