StRoot
1
|
Public Member Functions | |
const std::vector < GenfitTrackResult > & | getTrackResults () const |
const std::vector< Seed_t > & | getTrackSeeds () const |
const EventStats & | getEventStats () const |
void | Clear () |
void | setConfigFile (std::string cf) |
Set the Config File object. More... | |
void | setSaveCriteriaValues (bool save) |
Set the Save Criteria Values object. More... | |
void | setConfig (FwdTrackerConfig cfg) |
void | setData (std::shared_ptr< FwdDataSource >data) |
virtual void | initialize (TString geoCache, bool genHistograms) |
Initialize FwdTracker. More... | |
std::vector < KiTrack::ICriterion * > | loadCriteria (string path) |
Loads Criteria from XML configuration. Utility function for loading criteria from XML config. More... | |
void | clearCriteria (std::vector< KiTrack::ICriterion * > &crits) |
Clear the loaded criteria. More... | |
std::vector< float > | getCriteriaValues (std::string crit_name) |
Get the Criteria Values object. More... | |
std::vector< std::map < std::string, float > > | getCriteriaAllValues (std::string crit_name) |
Get the Criteria All Values object. More... | |
std::vector< int > | getCriteriaTrackIds (std::string crit_name) |
Get the Criteria Track Ids object. More... | |
void | clearSavedCriteriaValues () |
Clear the saved values for two hit and three hit criteria. | |
size_t | nHitsInHitMap (FwdDataSource::HitMap_t &hitmap) |
Determine the total num of hits in the hitmap. More... | |
void | removeHits (FwdDataSource::HitMap_t &hitmap, std::vector< Seed_t > &tracks) |
Remove used hits from the hit map. More... | |
void | mergeHitmaps (FwdDataSource::HitMap_t &hitmap1, FwdDataSource::HitMap_t &hitmap2) |
merges the FST and FTT hitmaps into a single hitmap The FTT hits are shifted by the number of FST sectors More... | |
void | cleanup () |
cleanup the event-wise data structures More... | |
bool | useMcTrackFinding () |
void | findTrackSeeds () |
Perform the track finding Creates a list of track seeds from the hitmaps Retrieve them using getTrackSeeds() | |
std::vector < genfit::GFRaveVertex * > | findFwdVertices (const vector< GenfitTrackResult > &globalTracks) |
GenfitTrackResult | fitTrack (Seed_t &seed, TVector3 *momentumSeedState=nullptr) |
Perform a single fit from seed points. More... | |
void | doTrackFitting (const std::vector< Seed_t > &trackSeeds) |
Loop on track seeds and fit each one. More... | |
void | doMcTrackFinding (FwdDataSource::McTrackMap_t &mcTrackMap, int seedSource) |
MC track finding builds track seeds from available hits using MC association. More... | |
size_t | sliceHitMapInPhi (FwdDataSource::HitMap_t &inputMap, FwdDataSource::HitMap_t &outputMap, float phi_min, float phi_max) |
Slices a hitmap into a phi section. More... | |
vector< Seed_t > | doSeedFindingOnHitmapSubset (size_t iIteration, FwdDataSource::HitMap_t &hitmap) |
Does track finding steps on a subset of hits (phi slice) More... | |
void | doSeedFindingIteration (size_t iIteration, FwdDataSource::HitMap_t &hitmap) |
Main tracking procedure. More... | |
void | addFstHitsMc (GenfitTrackResult >r) |
Adds compatible FST hits to tracks seeded with FTT. | |
void | addFttHits (GenfitTrackResult >r, size_t disk) |
Adds compatible FTT hits to tracks seeded with FST. More... | |
void | addFttHitsMc (GenfitTrackResult >r) |
Adds compatible FTT hits using MC info. | |
void | addFstHits (GenfitTrackResult >r, size_t disk) |
Adds compatible FST hits to a track. More... | |
Seed_t | findFstHitsNearProjectedState (Seed_t &available_hits, genfit::MeasuredStateOnPlane &msp, double dphi=0.004 *20.5, double dr=2.75 *2) |
Finds FST hits near projected state. More... | |
Seed_t | findFttHitsNearProjectedState (Seed_t &available_hits, genfit::MeasuredStateOnPlane &msp, double dx=1.5, double dy=1.5) |
Finds FTT hits near projected state. More... | |
bool | getSaveCriteriaValues () |
std::vector < KiTrack::ICriterion * > | getTwoHitCriteria () |
std::vector < KiTrack::ICriterion * > | getThreeHitCriteria () |
TrackFitter * | getTrackFitter () |
void | setEventVertex (TVector3 v, TMatrixDSym cov) |
TVector3 | getEventVertex () |
Protected Types | |
enum | SeedSource { kFstSeed = 0, kFttSeed, kSimSeed, kSeqSeed } |
Protected Attributes | |
unsigned long long int | nEvents |
bool | mDoTrackFitting = true |
bool | mSaveCriteriaValues = false |
int | mSeedSource = 1 |
FwdTrackerConfig | mConfig |
std::string | mConfigFile |
size_t | mTotalHitsRemoved |
std::vector< GenfitTrackResult > | mTrackResults |
std::vector< Seed_t > | mTrackSeeds |
std::vector< Seed_t > | mTrackSeedsThisIteration |
EventStats | mEventStats |
TVector3 | mEventVertex |
FwdHit | mEventVertexHit |
genfit::GFRaveVertexFactory | mGFRVertices |
std::shared_ptr< FwdDataSource > | mDataSource |
TrackFitter * | mTrackFitter = nullptr |
std::vector < KiTrack::ICriterion * > | mTwoHitCrit |
std::vector < KiTrack::ICriterion * > | mThreeHitCrit |
TString | mGeoCache |
Definition at line 249 of file FwdTracker.h.
|
inline |
Adds compatible FST hits to a track.
gtr | : The GenfitTrackResult to add FST hits to |
disk | : The FST disk number |
Definition at line 1419 of file FwdTracker.h.
|
inline |
Adds compatible FTT hits to tracks seeded with FST.
gtr | : The GenfitTrackResult to add FTT hits to |
disk | : The FTT disk number |
Definition at line 1348 of file FwdTracker.h.
|
inline |
cleanup the event-wise data structures
Definition at line 523 of file FwdTracker.h.
|
inline |
Clear the loaded criteria.
crits | : vector of ICriterion pointers to properly clear |
Definition at line 349 of file FwdTracker.h.
|
inline |
MC track finding builds track seeds from available hits using MC association.
mcTrackMap | : Mc tracks |
useFttAsSource | : Use FTT for seeds or (false) use Fst |
Definition at line 983 of file FwdTracker.h.
|
inline |
Main tracking procedure.
iIteration | : The track iteration |
hitmap | : the hitmap of available hits per plane |
Definition at line 1229 of file FwdTracker.h.
|
inline |
Does track finding steps on a subset of hits (phi slice)
doSeedFindingOnHitmapSubset
iIteration,: | tracking iteration (for determining params) |
hitmap,: | the hitmap to use, should already be subset of original |
Definition at line 1079 of file FwdTracker.h.
|
inline |
Loop on track seeds and fit each one.
Track fitting proceeds in 3 possible iterations
trackSeeds | : Track seeds |
Definition at line 728 of file FwdTracker.h.
References GenfitTrackResult::setDCA().
|
inline |
Finds FST hits near projected state.
available_hits | : FST hits to consider |
msp | : measured state on plabe from existing track projection |
dphi | : search distance in phi |
dr | : search distance in r |
Definition at line 1459 of file FwdTracker.h.
|
inline |
Finds FTT hits near projected state.
available_hits | : FTT hits to consider |
msp | : measured state on plane from existing track fit projection |
dx | : search distance in x |
dy | : search distance in y |
Definition at line 1490 of file FwdTracker.h.
|
inline |
Perform a single fit from seed points.
seed | : seed points from either FTT or FST |
includeVertex | : include the primary vertex in the fit or not |
Definition at line 675 of file FwdTracker.h.
|
inline |
Get the Criteria All Values object.
crit_name | : Criteria values to get |
Definition at line 394 of file FwdTracker.h.
|
inline |
Get the Criteria Track Ids object.
crit_name | : Name of criteria to get track ids for |
Definition at line 423 of file FwdTracker.h.
|
inline |
Get the Criteria Values object.
crit_name | : Criteria to get |
Definition at line 365 of file FwdTracker.h.
|
inlinevirtual |
Initialize FwdTracker.
geoCache | : name of cached geometry file |
genHistograms | : generate histograms |
Reimplemented in ForwardTracker.
Definition at line 295 of file FwdTracker.h.
Referenced by ForwardTracker::initialize().
|
inline |
Loads Criteria from XML configuration. Utility function for loading criteria from XML config.
path | : path in config to load |
Definition at line 309 of file FwdTracker.h.
|
inline |
merges the FST and FTT hitmaps into a single hitmap The FTT hits are shifted by the number of FST sectors
hitmap1,: | FST hitmap |
hitmap2,: | FTT hitmap |
Definition at line 510 of file FwdTracker.h.
|
inline |
Determine the total num of hits in the hitmap.
hitmap | : hitmap to consider |
Definition at line 472 of file FwdTracker.h.
|
inline |
Remove used hits from the hit map.
hitmap | : hitmap with hits used this round |
tracks | : tracks formed from hits |
Definition at line 486 of file FwdTracker.h.
|
inline |
Set the Config File object.
cf | : config filename |
Definition at line 271 of file FwdTracker.h.
|
inline |
Set the Save Criteria Values object.
save | : true to save crit values |
Definition at line 280 of file FwdTracker.h.
|
inline |
Slices a hitmap into a phi section.
sliceHitMapInPhi
inputMap | INPUT hitmap to process |
outputMap | OUTPUT hitmap, will be cleared and filled with only the hits from inputMap that are within phi region |
phi_min | The minimum phi to accept |
phi_max | The maximum Phi to accept |
Definition at line 1056 of file FwdTracker.h.