Project
Loading...
Searching...
No Matches
o2::globaltracking::MatchTPCITS Class Reference

#include <MatchTPCITS.h>

Public Types

enum  DebugFlagTypes : UInt_t { MatchTreeAll = 0x1 << 1 , MatchTreeAccOnly = 0x1 << 2 , WinnerMatchesTree = 0x1 << 3 , TPCOrigTree = 0x1 << 4 }
 
using ITSCluster = o2::BaseCluster< float >
 
using ClusRange = o2::dataformats::RangeReference< int, int >
 
using TPCTransform = o2::gpu::TPCFastTransform
 
using BracketF = o2::math_utils::Bracket< float >
 
using BracketIR = o2::math_utils::Bracket< o2::InteractionRecord >
 
using Params = o2::globaltracking::MatchTPCITSParams
 
using MatCorrType = o2::base::Propagator::MatCorrType
 
using VDTriplet = o2::dataformats::Triplet< float, float, float >
 

Public Member Functions

 MatchTPCITS ()
 
 ~MatchTPCITS ()
 
void run (const o2::globaltracking::RecoContainer &inp, pmr::vector< o2::dataformats::TrackTPCITS > &matchedTracks, pmr::vector< o2::itsmft::TrkClusRef > &ABTrackletRefs, pmr::vector< int > &ABTrackletClusterIDs, pmr::vector< o2::MCCompLabel > &matchLabels, pmr::vector< o2::MCCompLabel > &ABTrackletLabels, pmr::vector< o2::dataformats::Triplet< float, float, float > > &calib)
 
void refitWinners (pmr::vector< o2::dataformats::TrackTPCITS > &matchedTracks, pmr::vector< o2::MCCompLabel > &matchLabels, pmr::vector< o2::dataformats::Triplet< float, float, float > > &calib)
 
bool refitTrackTPCITS (int slot, int iTPC, int &iITS, pmr::vector< o2::dataformats::TrackTPCITS > &matchedTracks, pmr::vector< o2::MCCompLabel > &matchLabels, pmr::vector< o2::dataformats::Triplet< float, float, float > > &calib)
 
void fillCalibDebug (int ifit, int iTPC, const o2::dataformats::TrackTPCITS &match, pmr::vector< o2::dataformats::Triplet< float, float, float > > &calib)
 
void reportSizes (pmr::vector< o2::dataformats::TrackTPCITS > &matchedTracks, pmr::vector< o2::itsmft::TrkClusRef > &ABTrackletRefs, pmr::vector< int > &ABTrackletClusterIDs, pmr::vector< o2::MCCompLabel > &matchLabels, pmr::vector< o2::MCCompLabel > &ABTrackletLabels, pmr::vector< o2::dataformats::Triplet< float, float, float > > &calib)
 
bool runAfterBurner (pmr::vector< o2::dataformats::TrackTPCITS > &matchedTracks, pmr::vector< o2::MCCompLabel > &matchLabels, pmr::vector< o2::MCCompLabel > &ABTrackletLabels, pmr::vector< int > &ABTrackletClusterIDs, pmr::vector< o2::itsmft::TrkClusRef > &ABTrackletRefs, pmr::vector< o2::dataformats::Triplet< float, float, float > > &calib)
 
void refitABWinners (pmr::vector< o2::dataformats::TrackTPCITS > &matchedTracks, pmr::vector< o2::MCCompLabel > &matchLabels, pmr::vector< o2::MCCompLabel > &ABTrackletLabels, pmr::vector< int > &ABTrackletClusterIDs, pmr::vector< o2::itsmft::TrkClusRef > &ABTrackletRefs, pmr::vector< o2::dataformats::Triplet< float, float, float > > &calib)
 
bool refitABTrack (int iITSAB, const TPCABSeed &seed, pmr::vector< o2::dataformats::TrackTPCITS > &matchedTracks, pmr::vector< int > &ABTrackletClusterIDs, pmr::vector< o2::itsmft::TrkClusRef > &ABTrackletRefs)
 
void setSkipTPCOnly (bool v)
 
void setCosmics (bool v)
 
bool isCosmics () const
 
void setNThreads (int n)
 perform all initializations
 
void init ()
 
void end ()
 
void reportTiming ()
 clear results of previous event reco
 
void clear ()
 set Bunch filling and init helpers for validation by BCs
 
void setBunchFilling (const o2::BunchFilling &bf)
 
void setNHBPerTF (int n)
 ITS readout mode.
 
void setITSTriggered (bool v)
 
bool isITSTriggered () const
 
void setUseFT0 (bool v)
 
bool getUseFT0 () const
 
void setUseBCFilling (bool v)
 
bool getUseBCFilling () const
 set ITS ROFrame duration in microseconds
 
void setITSROFrameLengthMUS (float fums)
 set ITS ROFrame duration in BC (continuous mode only)
 
void setITSROFrameLengthInBC (int nbc)
 
void setITSTimeBiasInBC (int n)
 
int getITSTimeBiasInBC () const
 
float getITSTimeBiasMUS () const
 
void setITSDictionary (const o2::itsmft::TopologyDictionary *d)
 set flag to use MC truth
 
void setMCTruthOn (bool v)
 request VDrift calibration
 
void setVDriftCalib (bool v)
 
void setTPCVDrift (const o2::tpc::VDriftCorrFact &v)
 
void setTPCCorrMaps (o2::gpu::CorrectionMapsHelper *maph)
 print settings
 
void print () const
 
void printCandidatesTPC () const
 
void printCandidatesITS () const
 
void setUseMatCorrFlag (MatCorrType f)
 
auto getUseMatCorrFlag () const
 
bool isDebugFlag (UInt_t flags) const
 get debug trees flags
 
UInt_t getDebugFlags () const
 set or unset debug stream flag
 
void setDebugFlag (UInt_t flag, bool on=true)
 set the name of output debug file
 
void setDebugTreeFileName (std::string name)
 get the name of output debug file
 
const std::string & getDebugTreeFileName () const
 fill matching debug tree
 
void fillTPCITSmatchTree (int itsID, int tpcID, int rejFlag, float chi2=-1., float tCorr=0.)
 
void dumpWinnerMatches ()
 
void dumpTPCOrig (bool acc, int tpcIndex)
 

Static Public Attributes

static constexpr int MaxUpDnLadders = 3
 
static constexpr int MaxLadderCand = 2 * MaxUpDnLadders + 1
 
static constexpr int MaxSeedsPerLayer = 50
 
static constexpr int NITSLayers = o2::its::RecoGeomHelper::getNLayers()
 perform matching for provided input
 

Detailed Description

Definition at line 333 of file MatchTPCITS.h.

Member Typedef Documentation

◆ BracketF

◆ BracketIR

◆ ClusRange

◆ ITSCluster

◆ MatCorrType

◆ Params

◆ TPCTransform

◆ VDTriplet

Definition at line 343 of file MatchTPCITS.h.

Member Enumeration Documentation

◆ DebugFlagTypes

Enumerator
MatchTreeAll 

produce matching candidates tree for all candidates

MatchTreeAccOnly 

fill the matching candidates tree only once the cut is passed

WinnerMatchesTree 

separate debug tree for winner matches

TPCOrigTree 

original TPC tracks with some aux info

Definition at line 451 of file MatchTPCITS.h.

Constructor & Destructor Documentation

◆ MatchTPCITS()

MatchTPCITS::MatchTPCITS ( )
default

◆ ~MatchTPCITS()

MatchTPCITS::~MatchTPCITS ( )
default

Member Function Documentation

◆ clear()

void MatchTPCITS::clear ( )

set Bunch filling and init helpers for validation by BCs

< clear results of previous TF reconstruction

Definition at line 164 of file MatchTPCITS.cxx.

◆ dumpTPCOrig()

void o2::globaltracking::MatchTPCITS::dumpTPCOrig ( bool  acc,
int  tpcIndex 
)

◆ dumpWinnerMatches()

void o2::globaltracking::MatchTPCITS::dumpWinnerMatches ( )

◆ end()

void MatchTPCITS::end ( )

Definition at line 156 of file MatchTPCITS.cxx.

◆ fillCalibDebug()

void MatchTPCITS::fillCalibDebug ( int  ifit,
int  iTPC,
const o2::dataformats::TrackTPCITS match,
pmr::vector< o2::dataformats::Triplet< float, float, float > > &  calib 
)

Definition at line 1494 of file MatchTPCITS.cxx.

◆ fillTPCITSmatchTree()

void o2::globaltracking::MatchTPCITS::fillTPCITSmatchTree ( int  itsID,
int  tpcID,
int  rejFlag,
float  chi2 = -1.,
float  tCorr = 0. 
)

◆ getDebugFlags()

UInt_t o2::globaltracking::MatchTPCITS::getDebugFlags ( ) const
inline

set or unset debug stream flag

Definition at line 461 of file MatchTPCITS.h.

◆ getDebugTreeFileName()

const std::string & o2::globaltracking::MatchTPCITS::getDebugTreeFileName ( ) const
inline

fill matching debug tree

Definition at line 475 of file MatchTPCITS.h.

◆ getITSTimeBiasInBC()

int o2::globaltracking::MatchTPCITS::getITSTimeBiasInBC ( ) const
inline

Definition at line 413 of file MatchTPCITS.h.

◆ getITSTimeBiasMUS()

float o2::globaltracking::MatchTPCITS::getITSTimeBiasMUS ( ) const
inline

Definition at line 414 of file MatchTPCITS.h.

◆ getUseBCFilling()

bool o2::globaltracking::MatchTPCITS::getUseBCFilling ( ) const
inline

set ITS ROFrame duration in microseconds

Definition at line 405 of file MatchTPCITS.h.

◆ getUseFT0()

bool o2::globaltracking::MatchTPCITS::getUseFT0 ( ) const
inline

Definition at line 402 of file MatchTPCITS.h.

◆ getUseMatCorrFlag()

auto o2::globaltracking::MatchTPCITS::getUseMatCorrFlag ( ) const
inline

Definition at line 446 of file MatchTPCITS.h.

◆ init()

void MatchTPCITS::init ( )

< perform initizalizations, precalculate what is needed

< max Y in the sector at reference X

Definition at line 214 of file MatchTPCITS.cxx.

◆ isCosmics()

bool o2::globaltracking::MatchTPCITS::isCosmics ( ) const
inline

Definition at line 381 of file MatchTPCITS.h.

◆ isDebugFlag()

bool o2::globaltracking::MatchTPCITS::isDebugFlag ( UInt_t  flags) const
inline

get debug trees flags

Definition at line 458 of file MatchTPCITS.h.

◆ isITSTriggered()

bool o2::globaltracking::MatchTPCITS::isITSTriggered ( ) const
inline

Definition at line 399 of file MatchTPCITS.h.

◆ print()

void MatchTPCITS::print ( ) const

< print all settings

Definition at line 1373 of file MatchTPCITS.cxx.

◆ printCandidatesITS()

void MatchTPCITS::printCandidatesITS ( ) const

< print mathing records

Definition at line 1247 of file MatchTPCITS.cxx.

◆ printCandidatesTPC()

void MatchTPCITS::printCandidatesTPC ( ) const

< print mathing records

Definition at line 1226 of file MatchTPCITS.cxx.

◆ refitABTrack()

bool MatchTPCITS::refitABTrack ( int  iITSAB,
const TPCABSeed seed,
pmr::vector< o2::dataformats::TrackTPCITS > &  matchedTracks,
pmr::vector< int > &  ABTrackletClusterIDs,
pmr::vector< o2::itsmft::TrkClusRef > &  ABTrackletRefs 
)

< refit AfterBurner track

Definition at line 1744 of file MatchTPCITS.cxx.

◆ refitABWinners()

void MatchTPCITS::refitABWinners ( pmr::vector< o2::dataformats::TrackTPCITS > &  matchedTracks,
pmr::vector< o2::MCCompLabel > &  matchLabels,
pmr::vector< o2::MCCompLabel > &  ABTrackletLabels,
pmr::vector< int > &  ABTrackletClusterIDs,
pmr::vector< o2::itsmft::TrkClusRef > &  ABTrackletRefs,
pmr::vector< o2::dataformats::Triplet< float, float, float > > &  calib 
)

Definition at line 2061 of file MatchTPCITS.cxx.

◆ refitTrackTPCITS()

bool MatchTPCITS::refitTrackTPCITS ( int  slot,
int  iTPC,
int iITS,
pmr::vector< o2::dataformats::TrackTPCITS > &  matchedTracks,
pmr::vector< o2::MCCompLabel > &  matchLabels,
pmr::vector< o2::dataformats::Triplet< float, float, float > > &  calib 
)

< refit in inward direction the pair of TPC and ITS tracks

precise time estimate, optionally corrected for bias

track time is outside of the nominal ITS time

assign ITS boundary

Definition at line 1578 of file MatchTPCITS.cxx.

◆ refitWinners()

void MatchTPCITS::refitWinners ( pmr::vector< o2::dataformats::TrackTPCITS > &  matchedTracks,
pmr::vector< o2::MCCompLabel > &  matchLabels,
pmr::vector< o2::dataformats::Triplet< float, float, float > > &  calib 
)

< refit winning tracks

Definition at line 1419 of file MatchTPCITS.cxx.

◆ reportSizes()

void MatchTPCITS::reportSizes ( pmr::vector< o2::dataformats::TrackTPCITS > &  matchedTracks,
pmr::vector< o2::itsmft::TrkClusRef > &  ABTrackletRefs,
pmr::vector< int > &  ABTrackletClusterIDs,
pmr::vector< o2::MCCompLabel > &  matchLabels,
pmr::vector< o2::MCCompLabel > &  ABTrackletLabels,
pmr::vector< o2::dataformats::Triplet< float, float, float > > &  calib 
)

Definition at line 2691 of file MatchTPCITS.cxx.

◆ reportTiming()

void MatchTPCITS::reportTiming ( )

clear results of previous event reco

Definition at line 148 of file MatchTPCITS.cxx.

◆ run()

void MatchTPCITS::run ( const o2::globaltracking::RecoContainer inp,
pmr::vector< o2::dataformats::TrackTPCITS > &  matchedTracks,
pmr::vector< o2::itsmft::TrkClusRef > &  ABTrackletRefs,
pmr::vector< int > &  ABTrackletClusterIDs,
pmr::vector< o2::MCCompLabel > &  matchLabels,
pmr::vector< o2::MCCompLabel > &  ABTrackletLabels,
pmr::vector< o2::dataformats::Triplet< float, float, float > > &  calib 
)

< perform matching for provided input

Definition at line 80 of file MatchTPCITS.cxx.

◆ runAfterBurner()

bool MatchTPCITS::runAfterBurner ( pmr::vector< o2::dataformats::TrackTPCITS > &  matchedTracks,
pmr::vector< o2::MCCompLabel > &  matchLabels,
pmr::vector< o2::MCCompLabel > &  ABTrackletLabels,
pmr::vector< int > &  ABTrackletClusterIDs,
pmr::vector< o2::itsmft::TrkClusRef > &  ABTrackletRefs,
pmr::vector< o2::dataformats::Triplet< float, float, float > > &  calib 
)

Definition at line 1966 of file MatchTPCITS.cxx.

◆ setBunchFilling()

void MatchTPCITS::setBunchFilling ( const o2::BunchFilling bf)

Definition at line 2548 of file MatchTPCITS.cxx.

◆ setCosmics()

void o2::globaltracking::MatchTPCITS::setCosmics ( bool  v)
inline

Definition at line 380 of file MatchTPCITS.h.

◆ setDebugFlag()

void o2::globaltracking::MatchTPCITS::setDebugFlag ( UInt_t  flag,
bool  on = true 
)

set the name of output debug file

◆ setDebugTreeFileName()

void o2::globaltracking::MatchTPCITS::setDebugTreeFileName ( std::string  name)
inline

get the name of output debug file

Definition at line 467 of file MatchTPCITS.h.

◆ setITSDictionary()

void o2::globaltracking::MatchTPCITS::setITSDictionary ( const o2::itsmft::TopologyDictionary d)
inline

set flag to use MC truth

Definition at line 417 of file MatchTPCITS.h.

◆ setITSROFrameLengthInBC()

void MatchTPCITS::setITSROFrameLengthInBC ( int  nbc)

Definition at line 2539 of file MatchTPCITS.cxx.

◆ setITSROFrameLengthMUS()

void MatchTPCITS::setITSROFrameLengthMUS ( float  fums)

set ITS ROFrame duration in BC (continuous mode only)

Definition at line 2530 of file MatchTPCITS.cxx.

◆ setITSTimeBiasInBC()

void MatchTPCITS::setITSTimeBiasInBC ( int  n)

Definition at line 2523 of file MatchTPCITS.cxx.

◆ setITSTriggered()

void o2::globaltracking::MatchTPCITS::setITSTriggered ( bool  v)
inline

Definition at line 398 of file MatchTPCITS.h.

◆ setMCTruthOn()

void o2::globaltracking::MatchTPCITS::setMCTruthOn ( bool  v)
inline

request VDrift calibration

Definition at line 426 of file MatchTPCITS.h.

◆ setNHBPerTF()

void o2::globaltracking::MatchTPCITS::setNHBPerTF ( int  n)
inline

ITS readout mode.

Definition at line 395 of file MatchTPCITS.h.

◆ setNThreads()

void MatchTPCITS::setNThreads ( int  n)

perform all initializations

Definition at line 2853 of file MatchTPCITS.cxx.

◆ setSkipTPCOnly()

void o2::globaltracking::MatchTPCITS::setSkipTPCOnly ( bool  v)
inline

Definition at line 376 of file MatchTPCITS.h.

◆ setTPCCorrMaps()

void MatchTPCITS::setTPCCorrMaps ( o2::gpu::CorrectionMapsHelper maph)

print settings

Definition at line 208 of file MatchTPCITS.cxx.

◆ setTPCVDrift()

void MatchTPCITS::setTPCVDrift ( const o2::tpc::VDriftCorrFact v)

Definition at line 200 of file MatchTPCITS.cxx.

◆ setUseBCFilling()

void o2::globaltracking::MatchTPCITS::setUseBCFilling ( bool  v)
inline

Definition at line 404 of file MatchTPCITS.h.

◆ setUseFT0()

void o2::globaltracking::MatchTPCITS::setUseFT0 ( bool  v)
inline

Definition at line 401 of file MatchTPCITS.h.

◆ setUseMatCorrFlag()

void o2::globaltracking::MatchTPCITS::setUseMatCorrFlag ( MatCorrType  f)
inline

Definition at line 445 of file MatchTPCITS.h.

◆ setVDriftCalib()

void o2::globaltracking::MatchTPCITS::setVDriftCalib ( bool  v)
inline

Definition at line 432 of file MatchTPCITS.h.

Member Data Documentation

◆ MaxLadderCand

constexpr int o2::globaltracking::MatchTPCITS::MaxLadderCand = 2 * MaxUpDnLadders + 1
staticconstexpr

Definition at line 349 of file MatchTPCITS.h.

◆ MaxSeedsPerLayer

constexpr int o2::globaltracking::MatchTPCITS::MaxSeedsPerLayer = 50
staticconstexpr

Definition at line 350 of file MatchTPCITS.h.

◆ MaxUpDnLadders

constexpr int o2::globaltracking::MatchTPCITS::MaxUpDnLadders = 3
staticconstexpr

Definition at line 348 of file MatchTPCITS.h.

◆ NITSLayers

constexpr int o2::globaltracking::MatchTPCITS::NITSLayers = o2::its::RecoGeomHelper::getNLayers()
staticconstexpr

perform matching for provided input

Definition at line 351 of file MatchTPCITS.h.


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