FairRoot/PandaRoot
PndRichRecoTask.h
Go to the documentation of this file.
1 #ifndef PNDRICHRECOTASK_H
2 #define PNDRICHRECOTASK_H 1
3 
4 #include "FairTask.h"
5 #include "TClonesArray.h"
6 #include "PndRichReco.h"
7 #include "TVector3.h"
8 #include "TH1F.h"
9 #include "TF1.h"
10 #include <vector>
11 #include "PndRichResolution.h"
12 
13 class TClonesArray;
14 
15 class PndRichRecoTask : public FairTask {
16 
17  public:
18 
21 
24 
26  virtual InitStatus Init();
27 
29  virtual void Exec(Option_t* opt);
30 
32  void SetPersistence(Bool_t persistence) { fPersistence = persistence; }
33 
34  void SetGeoVersion(UInt_t version) { fGeoVersion = version; }
35  void SetParticleID(UInt_t pid) { fParticleID = pid; }
36  void SetTrackPosition(TVector3 pos) { fTrackPosition = pos; }
37  void SetTrackDirection(TVector3 dir) { fTrackDirection = dir; }
39  void SetTrackDirectionSecond(TVector3 dir) { fTrackDirectionSecond = dir; }
40  void SetNumberOfEvents(UInt_t events) { fNumberOfEvents = events; }
41  TF1* GetPeakParameters(std::vector<Double_t> v, UInt_t nbins, Double_t xmin, Double_t xmax, Double_t sig);
42 
43  void FinishEvent();
44  void FinishTask();
45 
46  private:
47 
50 
52  UInt_t fGeoVersion;
53  UInt_t fParticleID;
54  UInt_t fEvent;
56  TVector3 fTrackPosition;
57  TVector3 fTrackDirection;
60  std::vector<UInt_t> vnhits;
61  std::vector<Double_t> vth;
62  std::vector<Double_t> vph;
63  std::vector<Double_t> vdth;
64  std::vector<Double_t> vmean;
65  std::vector<Double_t> vsigma;
66 
68 
69  TClonesArray* fRichBarPoint;
70 
72 
73 };
74 
75 #endif
TVector3 pos
TVector3 fTrackDirectionSecond
std::vector< Double_t > vsigma
PndRichResolution * fRichResolution
void SetTrackDirection(TVector3 dir)
Double_t xmax
void SetParticleID(UInt_t pid)
TVector3 fTrackPosition
int pid()
virtual InitStatus Init()
__m128 v
Definition: P4_F32vec4.h:4
std::vector< Double_t > vmean
std::vector< Double_t > vth
TVector3 fTrackDirection
Double_t
void SetGeoVersion(UInt_t version)
TF1 * GetPeakParameters(std::vector< Double_t > v, UInt_t nbins, Double_t xmin, Double_t xmax, Double_t sig)
int nbins
Definition: full_core_ntp.C:33
TClonesArray * fRichBarPoint
void SetNumberOfEvents(UInt_t events)
void SetPersistence(Bool_t persistence)
std::vector< Double_t > vdth
std::vector< UInt_t > vnhits
TVector3 fTrackPositionSecond
PndRichReco * fRichReco
Double_t xmin
void SetTrackPosition(TVector3 pos)
ClassDef(PndRichRecoTask, 1)
PndRichBarPoint TCA.
void SetTrackPositionSecond(TVector3 pos)
void SetTrackDirectionSecond(TVector3 dir)
virtual void Exec(Option_t *opt)
std::vector< Double_t > vph