FairRoot/PandaRoot
PndRecoKalmanTask.h
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 // File and Version Information:
3 // $Id$
4 //
5 // Description:
6 // Kalman Filter Task
7 //
8 // Environment:
9 // Software developed for the PANDA Detector at FAIR.
10 //
11 // Author List:
12 // Sebastian Neubert TUM (original author)
13 // Stefano Spataro, UNI Torino
14 //
15 //-----------------------------------------------------------
16 
17 #ifndef PNDRECOKALMANTASK_HH
18 #define PNDRECOKALMANTASK_HH
19 
20 // Base Class Headers ----------------
21 #include "PndPersistencyTask.h"
22 
23 // Collaborating Class Headers -------
24 #include "TString.h"
25 #include "PndRecoKalmanFit.h"
26 #include "PndRecoDafFit.h"
27 
28 // Collaborating Class Declarations --
29 class TClonesArray;
30 class GFRecoHitFactory;
31 
32 
34  public:
35 
36  // Constructors/Destructors ---------
37  PndRecoKalmanTask(const char* name = "Genfit", Int_t iVerbose = 0);
39 
40  // Operators
41 
42 
43  // Accessors -----------------------
44 
45  // Modifiers -----------------------
48  }
49  // void SetTrackInIDBranchName(const TString& name) { fTrackInIDBranchName = name;}
52  }
53  void SetMvdBranchName(const TString& name) {
55  }
58  }
59  void SetPersistence(Bool_t opt = kTRUE) {
60  fPersistence = opt;
61  }
62  void SetGeane(Bool_t opt = kTRUE) {
63  fUseGeane = opt;
64  }
65  void SetIdealHyp(Bool_t opt = kTRUE) {
66  fIdealHyp = opt;
67  }
68  void SetDaf(Bool_t opt = kTRUE) {
69  fDaf = opt;
70  }
71  void SetPropagateToIP(Bool_t opt = kTRUE) {
72  fPropagateToIP = opt;
73  }
74  void SetPropagateDistance(Float_t opt = -1.) {
75  fPropagateDistance = opt;
76  }
77  void SetPerpPlane(Bool_t opt = kTRUE) {
78  fPerpPlane = opt;
79  }
80  void SetNumIterations(Int_t num) {
81  fNumIt = num;
82  }
83  void SetTrackRep(Short_t num) {
84  fTrackRep = num;
85  }
87  void SetParticleHypo(Int_t h);
88  void SetBusyCut(Int_t b) {
89  fBusyCut=b;
90  }
91 
92  // Operations ----------------------
93  virtual InitStatus Init();
94  void SetParContainers();
95  virtual void Exec(Option_t* opt);
96 
97  protected:
98 
99  // Private Data Members ------------
100  TClonesArray* fTrackArray;
101  // TClonesArray* fTrackIDArray; //! Input TCA for PndTrackID
102  TClonesArray* fMCTrackArray;
103  TClonesArray* fFitTrackArray;
104 
106  // TString fTrackInIDBranchName; //! Name of the input TCA
108 
111 
114  TDatabasePDG *pdg;
115 
117 
125  Short_t fTrackRep;
126  Int_t fNumIt;
127  Int_t fPDGHyp;
128  Int_t fBusyCut;
129 
131 
132 };
133 
134 #endif
135 
PndRecoKalmanTask(const char *name="Genfit", Int_t iVerbose=0)
void SetPersistence(Bool_t opt=kTRUE)
TString fTrackInBranchName
Output TCA for track.
TClonesArray * fTrackArray
int num[96]
Definition: ranlxd.cxx:381
TTree * b
void SetIdealHyp(Bool_t opt=kTRUE)
TLorentzVector s
Definition: Pnd2DStar.C:50
void SetMvdBranchName(const TString &name)
Short_t fTrackRep
Flag to use as initial plane the one perpendicular to the track (kFALSE)
Bool_t fPersistence
Particle DB.
virtual void Exec(Option_t *opt)
virtual InitStatus Init()
void SetParticleHypo(TString s)
TString fCentralTrackerBranchName
Name of the TCA for MVD.
ClassDef(PndRecoKalmanTask, 1)
Skip too busy events with more tracks.
void SetCentralTrackerBranchName(const TString &name)
void SetTrackOutBranchName(const TString &name)
TDatabasePDG * pdg
void SetPerpPlane(Bool_t opt=kTRUE)
Bool_t fIdealHyp
Flag to set on smoothing (not used)
void SetPropagateDistance(Float_t opt=-1.)
Int_t fPDGHyp
Number of iterations.
Bool_t fPerpPlane
Distance in [cm] to back-propagate the parameters, negative number means no backpropagation.
Factory object to create RecoHits from digitized and clustered data.
Bool_t fPropagateToIP
Flag to use Deterministic Annealing.
Int_t fNumIt
(0) GeaneTrackRep, 1 RKTrackRep
PndRecoKalmanFit * fFitter
Name of the TCA for central tracker.
void SetGeane(Bool_t opt=kTRUE)
TClonesArray * fFitTrackArray
Input TCA for PndMCTrack.
PndRecoDafFit * fDafFitter
Bool_t fDaf
Flag to use MC particle hypothesis.
TString fMvdBranchName
Name of the output TCA.
void SetDaf(Bool_t opt=kTRUE)
TString name
void SetTrackRep(Short_t num)
void SetBusyCut(Int_t b)
void SetTrackInBranchName(const TString &name)
TString fTrackOutBranchName
Name of the input TCA.
void SetPropagateToIP(Bool_t opt=kTRUE)
Int_t iVerbose
void SetNumIterations(Int_t num)
Bool_t fSmoothing
Flag to use Geane.
Float_t fPropagateDistance
Flag to propagate the parameters to the interaction point (kTRUE)
TClonesArray * fMCTrackArray
Input TCA for PndTrack.
Int_t fBusyCut
Hypothesis.
Bool_t fUseGeane
Persistence.