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:
20 
23 
25  virtual InitStatus Init();
26 
28  virtual void Exec(Option_t *opt);
29 
31  void SetPersistence(Bool_t persistence) { fPersistence = persistence; }
32 
33  void SetGeoVersion(UInt_t version) { fGeoVersion = version; }
34  void SetParticleID(UInt_t pid) { fParticleID = pid; }
35  void SetTrackPosition(TVector3 pos) { fTrackPosition = pos; }
36  void SetTrackDirection(TVector3 dir) { fTrackDirection = dir; }
37  void SetTrackPositionSecond(TVector3 pos) { fTrackPositionSecond = pos; }
38  void SetTrackDirectionSecond(TVector3 dir) { fTrackDirectionSecond = dir; }
39  void SetNumberOfEvents(UInt_t events) { fNumberOfEvents = events; }
40  TF1 *GetPeakParameters(std::vector<Double_t> v, UInt_t nbins, Double_t xmin, Double_t xmax, Double_t sig);
41 
42  void FinishEvent();
43  void FinishTask();
44 
45  private:
47  Bool_t fPersistence;
48 
49  UInt_t fNumberOfEvents;
50  UInt_t fGeoVersion;
51  UInt_t fParticleID;
52  UInt_t fEvent;
53  PndRichReco *fRichReco;
54  TVector3 fTrackPosition;
55  TVector3 fTrackDirection;
56  TVector3 fTrackPositionSecond;
57  TVector3 fTrackDirectionSecond;
58  std::vector<UInt_t> vnhits;
59  std::vector<Double_t> vth;
60  std::vector<Double_t> vph;
61  std::vector<Double_t> vdth;
62  std::vector<Double_t> vmean;
63  std::vector<Double_t> vsigma;
64 
65  PndRichResolution *fRichResolution;
66 
67  TClonesArray *fRichBarPoint;
68 
69  ClassDef(PndRichRecoTask, 1);
70 };
71 
72 #endif
void SetTrackDirection(TVector3 dir)
TF1 * GetPeakParameters(std::vector< Double_t > v, UInt_t nbins, Double_t xmin, Double_t xmax, Double_t sig)
virtual void Exec(Option_t *opt)
void SetParticleID(UInt_t pid)
virtual InitStatus Init()
__m128 v
Definition: P4_F32vec4.h:3
void SetGeoVersion(UInt_t version)
void SetNumberOfEvents(UInt_t events)
void SetPersistence(Bool_t persistence)
void SetTrackPosition(TVector3 pos)
void SetTrackPositionSecond(TVector3 pos)
void SetTrackDirectionSecond(TVector3 dir)