FairRoot/PandaRoot
PndMvdRiemannTrackFinderTaskCutPar.h
Go to the documentation of this file.
1 #ifndef PNDMVDRIEMANNTRACKFINDERTASKCUTPAR_H_
2 #define PNDMVDRIEMANNTRACKFINDERTASKCUTPAR_H_
3 
4 #include "FairTask.h"
5 #include "PndSdsHit.h"
6 #include "TH2F.h"
7 #include "TVector3.h"
8 
9 #include "TString.h"
10 #include "PndRiemannHit.h"
11 
12 
13 class PndMvdRiemannTrackFinderTaskCutPar : public FairTask
14 {
15 public:
20 
22  virtual void SetParContainers();
23  virtual InitStatus Init();
24  virtual InitStatus ReInit();
25 
27  virtual void Exec(Option_t* opt);
28  virtual void FinishEvent();
29 
30  void SetMaxSZChi2(double val) {fMaxSZChi2 = val;}
31  void SetMaxSZDist(double val) {fMaxSZDist = val;}
33  void SetMaxDist(double val) {fMaxDist = val;}
34 
35  void CalcCuts();
36 
37  //void PrintResult(); // not implemented
38  void SetVerbose(Int_t verbose){ fVerbose = verbose;};
39 
40 private:
45  int fEventNr;
46 
47  double fMaxSZChi2;
48  double fMaxSZDist;
49  double fMinPointDist;
50  double fMaxDist;
51 
52  TClonesArray* fHitArray;
53  TClonesArray* fHitArray2;
54  TClonesArray* fTrackCandArray;
55  TClonesArray* fMCTrackArray;
56  TClonesArray* fRiemannTracks;
57 
58  void Register();
59  void Reset();
60  void ProduceHits();
61 
63  void CalcRiemannTracks();
64  void CalcParHists();
65 
66  unsigned int fNCut;
67 
68  int fNbin;
69  double frangeDist;
70  double frangeChi2;
71  double fPtS;
72  double fPtF;
73  static const int fNPt=10;
74  double fThetaS;
75  double fThetaF;
76  static const int fNTh=10;
77 
78  TH1F *fhistsDist[fNPt][fNTh];
79  TH1F *fhistsChi2[fNPt][fNTh];
80  TH2F *fCutDistH;
81  TH2F *fCutChi2H;
82 
84 
85 
86 };
87 
88 #endif /*PndMvdRiemannTrackFinderTaskCutPar_H_*/
int fNbin
number of bins in the cut hists during calculation of the cut parameters
int fVerbose
Definition: poormantracks.C:24
unsigned int fNCut
cut max number of hits in IdealTrack
Double_t val[nBoxes][nFEBox]
Definition: createCalib.C:11
#define verbose
bool CheckTooCloseHits(PndRiemannHit hit1, PndRiemannHit hit2)
static const int fNTh
number of Theta bins
ClassDef(PndMvdRiemannTrackFinderTaskCutPar, 1)
PndMvdRiemannTrackFinderTaskCutPar & operator=(const PndMvdRiemannTrackFinderTaskCutPar &)=delete