FairRoot/PandaRoot
PndPidBremCorrector.h
Go to the documentation of this file.
1 #ifndef PID_BREMCORRECTOR_H
2 #define PID_BREMCORRECTOR_H
3 
4 #include <vector>
5 #include <map>
6 
7 #include "FairTask.h"
8 #include "TObject.h"
9 
10 
11 #include "TString.h"
12 #include "TClonesArray.h"
13 
14 class PndPidCandidate;
15 
17 class PndEmcCluster;
18 class PndEmcBump;
19 
20 // Path of file:
21 // ----- $pandaroot/pid/PidCorr
22 
23 class PndPidBremCorrector: public FairTask
24 {
25 
26  public:
27 
29 
30  // Destructor
31  virtual ~PndPidBremCorrector();
32 
33  // Methods
35  virtual InitStatus Init();
36 
38  virtual void Exec(Option_t* opt);
39 
41 
42 
43  virtual void FinishTask() {};
44  void SetOutputBranch(TString branch) { fTrackBranchNamePidHypo = branch; };
45 
46  private:
47 
49 
50  double GetSepPhotonE(PndPidCandidate *, std::vector<Int_t>&);
51  double GetMergPhotonE(PndPidCandidate *, std::vector<Int_t>&);
52 
53  void GetEmcPhiBumpList(int iClust);
54 
56  TClonesArray* fBumpArray;
57  TClonesArray* fClusterArray;
58 
59 
60  TClonesArray* fPhiBumpArray;
61 
62  TClonesArray* fChargedCandidateArray;
63  TClonesArray* fNeutralCandidateArray;
64 
65  TClonesArray* fBremCorrected4MomArray;
66 
67  double fRecMomOfEle;
69  double fRecPhiOfEle;
70  int fCharge;
71 
74 
75  std::vector<PndEmcBump*> fEmcPhiBumpList;
77 
78  Bool_t fPersistance; // switch to turn on/off storing the arrays to a file
79  // Data members
80 
83 
85 
86 };
87 
88 #endif
89 
90 
91 
ClassDef(PndPidBremCorrector, 1)
TClonesArray * fNeutralCandidateArray
PndPidBremCorrector & operator=(const PndPidBremCorrector &)
virtual void FinishTask()
void SetOutputBranch(TString branch)
Double_t p
Definition: anasim.C:58
Double_t
TClonesArray * fChargedCandidateArray
a cluster (group of neighboring crystals) of hit emc crystals
Definition: PndEmcCluster.h:29
virtual InitStatus Init()
virtual void Exec(Option_t *opt)
TClonesArray * fClusterArray
void GetEmcPhiBumpList(int iClust)
TClonesArray * fPhiBumpArray
TClonesArray * fBremCorrected4MomArray
void SetStorageOfData(Bool_t p=kTRUE)
PndPidBremCorrected4Mom * AddBremCorrected4Mom()
std::vector< PndEmcBump * > fEmcPhiBumpList
double GetMergPhotonE(PndPidCandidate *, std::vector< Int_t > &)
represents a reconstructed (splitted) emc cluster
Definition: PndEmcBump.h:34
double GetSepPhotonE(PndPidCandidate *, std::vector< Int_t > &)
TClonesArray * fBumpArray