![]() |
PandaRoot
|
Interface between PandaRoot (data input and output) and PndFtsHoughTrackFinder (implementation of PR algorithm). More...
#include <PndFtsHoughTrackerTask.h>
Public Types | |
enum | DebugLevelMultiplicators { kHoughSpaces = 2, kAllFoundPeaksTogether = 3, kEachFoundPeakSeparately = 5, kMcTruthPeaksExclusively = 7, kMcTruthPeaksProjected = 11, kHitCurvesExclusively = 13, kHitCurvesProjected = 17 } |
Public Member Functions | |
PndFtsHoughTrackerTask (Int_t verbose=0, Bool_t persistence=kTRUE) | |
Constructor with flags. Can also be used as standard constructor. More... | |
~PndFtsHoughTrackerTask () | |
Destructor. More... | |
virtual void | SetParContainers () |
Loads the parameter container from the runtime database. More... | |
virtual InitStatus | Init () |
Initialization of task at the beginning of a run. More... | |
virtual InitStatus | ReInit () |
ReInitiliazation of task when the runID changes. More... | |
virtual void | Exec (Option_t *opt) |
Executed for each event. More... | |
virtual void | FinishEvent () |
When is this executed? After each event? More... | |
virtual void | Finish () |
Writes output to root file, I guess. Called at the end of the run. More... | |
void | SetVerbose (Int_t verbose) |
void | SetPersistence (Bool_t val) |
void | SetSaveDebugInfo (Int_t saveDebugInfo) |
Int_t | GetVerbose () const |
Int_t | GetSaveDebugInfo () const |
Returns the verbosity level. More... | |
UInt_t | GetEventNr () const |
Returns the save debug flag. More... | |
Int_t | GetNFtsHits () const |
Returns the event number. More... | |
const PndFtsHit * | GetFtsHit (UInt_t hitId) const |
Returns pointer to the hit with index hitId in the FTS hit array. More... | |
Int_t | getMcTruthIdForHitId (UInt_t hitId) const |
const PndFtsTube * | GetFtsTube (const PndFtsHit *const myHit) const |
Returns pointer to the FTS tube corresponding to input FTS hit. More... | |
const TVector3 | GetFtsHitPosErrors (const PndFtsHit *const ftsHit) const |
Returns the position error (based on FTS straw geometry) for the hit with index hitId in the FTS hit array. More... | |
const TMatrixT< Double_t > | GetFtsHitCovMatrix (const PndFtsHit *const ftsHit) const |
Returns the position covariance matrix (based on FTS straw geometry) for the hit with index hitId in the FTS hit array. More... | |
Int_t | getFtsBranchId () const |
Returns detector Id of FTS. Try not to use it. More... | |
TClonesArray * | getFtsHitArrayPtr () const |
Returns pointer to the hit array in which FTS hits are saved as PndFtsHit. Try not to use it. More... | |
FairField * | getMagneticFieldPtr () const |
![]() | |
PndPersistencyTask () | |
PndPersistencyTask (const char *name, Int_t iVerbose=1) | |
virtual | ~PndPersistencyTask () |
void | SetPersistency (Bool_t val=kTRUE) |
Bool_t | GetPersistency () |
Public Attributes | |
FairLogger * | fLogger |
Returns pointer to the B field. More... | |
Protected Member Functions | |
void | throwError (const TString s) const |
For error reporting. More... | |
void | CheckForDuplicateFtsHits () |
PndFtsHoughTrackerTask (const PndFtsHoughTrackerTask &) | |
PndFtsHoughTrackerTask | operator= (const PndFtsHoughTrackerTask &) |
ClassDef (PndFtsHoughTrackerTask, 1) | |
Protected Attributes | |
Int_t | fFtsBranchId |
Detector Id of FTS. More... | |
TClonesArray * | fFtsHitArray |
Input array of PndFtsHit. More... | |
TClonesArray * | fFtsMcPoints |
Input array of McPoints. More... | |
PndGeoFtsPar * | fFtsParameters |
Needed for FTS map creator. More... | |
TClonesArray * | fFtsTubeArray |
Input array of PndFtsTube (map of FTS tubes). More... | |
FairField * | fField |
For B field access. More... | |
TString | fTracksArrayName |
Branch name where to store the Track candidates. More... | |
TClonesArray * | fTrackCands |
Array of found track candidates in PndTrackCand (for output) More... | |
TClonesArray * | fTracks |
Array of found tracks in PndTrack (for output) More... | |
Int_t | fSaveDebugInfo |
Debug information will be created if >0. More... | |
UInt_t | fEventNr |
Event number for debugging purposes. More... | |
Interface between PandaRoot (data input and output) and PndFtsHoughTrackFinder (implementation of PR algorithm).
This task provides functionality / data for the FTS PR classes by passing a pointer to itself as an argument in the object's constructor.
This class was originally modeled after mvd/MvdTracking/PndMvdRiemannTrackFinderTask (among many others)
TODO Make this task work for time-based simulation as well [have a look at PndMvdRiemannTrackFinderTask::FillHitArray()]
Created: 18.06.2013
Definition at line 45 of file PndFtsHoughTrackerTask.h.
Enumerator | |
---|---|
kHoughSpaces | |
kAllFoundPeaksTogether | |
kEachFoundPeakSeparately | |
kMcTruthPeaksExclusively | |
kMcTruthPeaksProjected | |
kHitCurvesExclusively | |
kHitCurvesProjected |
Definition at line 47 of file PndFtsHoughTrackerTask.h.
PndFtsHoughTrackerTask::PndFtsHoughTrackerTask | ( | Int_t | verbose = 0 , |
Bool_t | persistence = kTRUE |
||
) |
Constructor with flags. Can also be used as standard constructor.
[in] | verbose | Verbosity level: 0 least, higher -> more output. |
[in] | persistence | kFALSE does not write track candidates from PR to output root file. |
[in] | saveDebugInfo | kTRUE will write internal representation of track(let) candidates to output root file. |
Referenced by CheckForDuplicateFtsHits().
PndFtsHoughTrackerTask::~PndFtsHoughTrackerTask | ( | ) |
Destructor.
|
protected |
|
inlineprotected |
Definition at line 228 of file PndFtsHoughTrackerTask.h.
References ClassDef(), GetEventNr(), GetFtsHit(), GetNFtsHits(), PndFtsHit::GetTubeID(), operator=(), and PndFtsHoughTrackerTask().
|
protected |
Referenced by CheckForDuplicateFtsHits().
|
virtual |
|
virtual |
Writes output to root file, I guess. Called at the end of the run.
Reimplemented in PndFtsHoughTrackerTaskQA.
|
virtual |
When is this executed? After each event?
Reimplemented in PndFtsHoughTrackerTaskQA.
|
inline |
Returns the save debug flag.
Definition at line 96 of file PndFtsHoughTrackerTask.h.
References fEventNr.
Referenced by CheckForDuplicateFtsHits(), and PndFtsHoughSpace::Print().
|
inline |
Returns detector Id of FTS. Try not to use it.
Definition at line 159 of file PndFtsHoughTrackerTask.h.
References fFtsBranchId.
|
inline |
Returns pointer to the hit with index hitId in the FTS hit array.
[in] | hitId | Index (in FTS hit array) of the hit which should be returned. |
Definition at line 109 of file PndFtsHoughTrackerTask.h.
References fFtsHitArray, GetNFtsHits(), and throwError().
Referenced by CheckForDuplicateFtsHits(), getMcTruthIdForHitId(), and PndFtsHoughSpace::Print().
|
inline |
Returns pointer to the hit array in which FTS hits are saved as PndFtsHit. Try not to use it.
Definition at line 166 of file PndFtsHoughTrackerTask.h.
References fFtsHitArray.
const TMatrixT<Double_t> PndFtsHoughTrackerTask::GetFtsHitCovMatrix | ( | const PndFtsHit *const | ftsHit | ) | const |
Returns the position covariance matrix (based on FTS straw geometry) for the hit with index hitId in the FTS hit array.
[in] | ftsHit | pointer to hit for which the error should be returned. |
Referenced by GetFtsTube().
const TVector3 PndFtsHoughTrackerTask::GetFtsHitPosErrors | ( | const PndFtsHit *const | ftsHit | ) | const |
Returns the position error (based on FTS straw geometry) for the hit with index hitId in the FTS hit array.
[in] | pointer | to hit for which the error should be returned. |
Referenced by GetFtsTube().
|
inline |
Returns pointer to the FTS tube corresponding to input FTS hit.
[in] | myHit | FTS hit for which the tube should be returned. |
Definition at line 137 of file PndFtsHoughTrackerTask.h.
References fFtsTubeArray, GetFtsHitCovMatrix(), GetFtsHitPosErrors(), and PndFtsHit::GetTubeID().
Referenced by PndFtsHoughSpace::Print().
|
inline |
Definition at line 171 of file PndFtsHoughTrackerTask.h.
References fField, and fLogger.
|
inline |
Definition at line 119 of file PndFtsHoughTrackerTask.h.
References fFtsMcPoints, GetFtsHit(), and throwError().
|
inline |
Returns the event number.
Returns the number of FTS hits.
Definition at line 104 of file PndFtsHoughTrackerTask.h.
References fFtsHitArray.
Referenced by CheckForDuplicateFtsHits(), and GetFtsHit().
|
inline |
Returns the verbosity level.
Definition at line 95 of file PndFtsHoughTrackerTask.h.
References fSaveDebugInfo.
|
inline |
Definition at line 94 of file PndFtsHoughTrackerTask.h.
|
virtual |
Initialization of task at the beginning of a run.
Reimplemented in PndFtsHoughTrackerTaskQA.
|
protected |
Referenced by CheckForDuplicateFtsHits().
|
virtual |
ReInitiliazation of task when the runID changes.
Reimplemented in PndFtsHoughTrackerTaskQA.
|
virtual |
Loads the parameter container from the runtime database.
|
inline |
Definition at line 87 of file PndFtsHoughTrackerTask.h.
References PndPersistencyTask::SetPersistency().
|
inline |
Definition at line 88 of file PndFtsHoughTrackerTask.h.
References fSaveDebugInfo.
|
inline |
Definition at line 86 of file PndFtsHoughTrackerTask.h.
|
inlineprotected |
For error reporting.
Definition at line 226 of file PndFtsHoughTrackerTask.h.
Referenced by GetFtsHit(), and getMcTruthIdForHitId().
|
protected |
Event number for debugging purposes.
Definition at line 224 of file PndFtsHoughTrackerTask.h.
Referenced by GetEventNr().
|
protected |
For B field access.
Definition at line 204 of file PndFtsHoughTrackerTask.h.
Referenced by getMagneticFieldPtr().
|
protected |
Detector Id of FTS.
Definition at line 188 of file PndFtsHoughTrackerTask.h.
Referenced by getFtsBranchId().
|
protected |
Input array of PndFtsHit.
Definition at line 189 of file PndFtsHoughTrackerTask.h.
Referenced by GetFtsHit(), getFtsHitArrayPtr(), and GetNFtsHits().
|
protected |
Input array of McPoints.
Definition at line 190 of file PndFtsHoughTrackerTask.h.
Referenced by getMcTruthIdForHitId().
|
protected |
Needed for FTS map creator.
I don't really know what that does...
Definition at line 196 of file PndFtsHoughTrackerTask.h.
|
protected |
Input array of PndFtsTube (map of FTS tubes).
Is filled by map creator
Definition at line 201 of file PndFtsHoughTrackerTask.h.
Referenced by GetFtsTube().
FairLogger* PndFtsHoughTrackerTask::fLogger |
Returns pointer to the B field.
For output handling.
Definition at line 171 of file PndFtsHoughTrackerTask.h.
Referenced by getMagneticFieldPtr().
|
protected |
Debug information will be created if >0.
Definition at line 223 of file PndFtsHoughTrackerTask.h.
Referenced by GetSaveDebugInfo(), and SetSaveDebugInfo().
|
protected |
Array of found track candidates in PndTrackCand (for output)
Definition at line 210 of file PndFtsHoughTrackerTask.h.
|
protected |
Array of found tracks in PndTrack (for output)
Definition at line 211 of file PndFtsHoughTrackerTask.h.
|
protected |
Branch name where to store the Track candidates.
Definition at line 209 of file PndFtsHoughTrackerTask.h.