PandaRoot
PndFtsHoughTrackerTaskQA.h
Go to the documentation of this file.
1 
11 #ifndef PndFtsHoughTrackerTaskQA_H
12 #define PndFtsHoughTrackerTaskQA_H
13 
14 #include "PndFtsHoughTrackerTask.h"
16 #include "FairTask.h"
17 #include <cmath>
18 #include <vector>
19 #include "Rtypes.h" // for Double_t, Int_t, etc
20 #include <iostream>
21 
22 #include "TVector3.h"
23 #include "PndFtsHit.h"
24 #include "TClonesArray.h"
25 #include "PndFtsTube.h"
26 
28 class PndFtsHoughSpace;
29 class PndGeoFtsPar;
30 class FairField;
31 
32 // For error reporting
33 #include "TString.h"
34 #include <stdexcept>
35 // for debugging
36 #include "FairMCPoint.h"
37 
39  public:
45  PndFtsHoughTrackerTaskQA(Int_t verbose = 0);
48 
50  virtual InitStatus Init();
52  virtual InitStatus ReInit();
53 
57  virtual void Exec(Option_t *opt);
59  virtual void FinishEvent();
60 
62  virtual void Finish();
63 
64  Int_t getNEvtsWithEnoughParabolas() const { return fNEvtsWithEnoughParabolas; };
65  void setNParabolasToFind(Int_t nParabolasToFind) { fNParabolasToFind = nParabolasToFind; };
66  // use this for parameter optimization
67  void OverwriteTrackFinderParams(PndFtsHoughTrackFinderParams newParams) { fTrackFinderParams = newParams; };
68 
69  private:
70  PndFtsHoughTrackFinderParams fTrackFinderParams;
71  Int_t fNParabolasToFind; // defines how many parabolas I should find in the event
72  Int_t fNEvtsWithEnoughParabolas; // counts in how many events I have found >= fNParabolasToFind
73 
74  // TODO: I don't think I need the copy constructor and the operator=
77 
78  ClassDef(PndFtsHoughTrackerTaskQA, 1);
79 };
80 
81 #endif
virtual InitStatus Init()
Initialization of task at the beginning of a run.
void OverwriteTrackFinderParams(PndFtsHoughTrackFinderParams newParams)
PndFtsHoughTrackerTaskQA(Int_t verbose=0)
Constructor with flags. Can also be used as standard constructor.
Interface between PandaRoot (data input and output) and PndFtsHoughTrackFinder (implementation of PR ...
virtual InitStatus ReInit()
ReInitiliazation of task when the runID changes.
void setNParabolasToFind(Int_t nParabolasToFind)
Parameters for Hough space track finder. Created: 09.02.2015.
virtual void FinishEvent()
When is this executed? After each event?
For automatic parameter optimization. This class tries numerous parameters and prints out good combin...
Class for Hough space based on TH2S (for the moment). Saves the hits which enter this Hough space and...
~PndFtsHoughTrackerTaskQA()
Destructor.
Class for saving a FTS track cand. for Hough transform based FTS PR.
virtual void Exec(Option_t *opt)
Executed for each event.
virtual void Finish()
Writes output to root file, I guess. Called at the end of the run.