FairRoot/PandaRoot
PndSolCorrTask.h
Go to the documentation of this file.
1 #ifndef PndSolCorrTask_H_
2 #define PndSolCorrTask_H_
3 
4 
5 
6 
7 // Class to correct TimeStamps according to the flight path of the Particles, assuming speed of light and a straigt track path from the origin. Afterwards they get sorted timewise and written to the Outputfile
8 //With AddInputBranch(TString branchName) Branches are added to the task, with SetOutBranchName(TString name) the Output Branch name can be defined.
9 
10 #include "TClonesArray.h"
11 #include "FairTask.h"
12 #include "FairTimeStamp.h"
13 #include "FairHit.h"
14 #include "FairTSBufferFunctional.h"
15 
16 #include <vector>
17 #include <map>
18 
19 class PndSolCorrTask : public FairTask
20 {
21 public:
22 
24  PndSolCorrTask();
26  virtual ~PndSolCorrTask();
27 
28 
30  //virtual void SetParContainers();
31  virtual InitStatus Init();
32  // virtual InitStatus ReInit();
33 
35  virtual void Exec(Option_t* opt);
36 // virtual void FinishEvent();
37  virtual void FinishTask();
38 
39 
41  void AddInputBranch(TString branchName){ fInBranches.push_back(branchName);};
42 
45 
46  FairTimeStamp* SolCorr(FairHit* inHit);
47 
48 
49 private:
50 
52  std::vector<TString> fInBranches;
53  std::vector<TClonesArray*> fInArrays;
54  TClonesArray* fOutArray;
55 
56  std::multimap<double, FairTimeStamp*> fDataCorr_map;
57 
59 
61 
62  BinaryFunctor* fStopFunctor;
63  double fReadOutStop;
64 
65 
67 
68 
69 };
70 
71 #endif /*PndSolCorrTask_H_*/
ClassDef(PndSolCorrTask, 0)
BinaryFunctor * fStopFunctor
virtual void Exec(Option_t *opt)
Double_t val[nBoxes][nFEBox]
Definition: createCalib.C:11
std::vector< TString > fInBranches
void AddInputBranch(TString branchName)
virtual InitStatus Init()
TClonesArray * fOutArray
virtual ~PndSolCorrTask()
std::multimap< double, FairTimeStamp * > fDataCorr_map
void RunContinuous(Bool_t val=kTRUE)
void SetOutBranchName(TString name)
TString name
virtual void FinishTask()
std::vector< TClonesArray * > fInArrays
FairTimeStamp * SolCorr(FairHit *inHit)
Bool_t fRunContinuous
TString fOutBranchName
void SetPersistence(Bool_t val)