PandaRoot
PndElectronCorrectionTest.h
Go to the documentation of this file.
1 //* $Id: */
2 
3 // -------------------------------------------------------------------------
4 // ----- PndElectronCorrectionTest header file -----
5 // ----- Created 05/12/2010 by R. Karabowicz -----
6 // -------------------------------------------------------------------------
7 
18 #ifndef PndElectronCorrectionTest_H
19 #define PndElectronCorrectionTest_H 1
20 
21 #include "PndPersistencyTask.h"
22 
23 #include "FairGeanePro.h"
24 
25 #include "TClonesArray.h"
26 
27 #include <map>
28 
29 class TH1;
30 class TH2;
31 class FairMCPoint;
32 
34 
35  public:
38 
40  PndElectronCorrectionTest(const char *name, Int_t iVerbose);
41 
44 
45  void SetTrackBranchNames(TString branchName) { fTrackArrays[branchName] = nullptr; }
46  // Test
47  void SetEmcBranchName(TString val) { fEmcDetectorName = val; }
48 
50  virtual void Exec(Option_t *opt);
51 
52  protected:
53  // TVector3 GetPhotonCorrection(int option, FairMCPoint *currentPoint = nullptr);
54  Bool_t IsPhotonFromMother(FairMCPoint *point, Int_t motherPdg = 11); // checks if the point comes from a photon and if this comes from the primary electron.
55  private:
57  virtual void SetParContainers();
58 
60  virtual InitStatus Init();
61 
63  virtual InitStatus ReInit();
64 
66  void Reset();
67 
69  virtual void Finish();
70 
71  TClonesArray *fMcTracks = nullptr;
72  std::map<TString, TClonesArray *> fTrackArrays;
73  TClonesArray *fEmcDetector = nullptr;
74  TString fEmcDetectorName = "EmcBump";
75 
76  TClonesArray *fPhotonStart;
77  std::map<TString, TH1 *> fHistos;
78  std::map<TString, TH2 *> f2DHistos;
79 
80  ClassDef(PndElectronCorrectionTest, 1);
81 };
82 
83 #endif
Bool_t IsPhotonFromMother(FairMCPoint *point, Int_t motherPdg=11)
void SetTrackBranchNames(TString branchName)
virtual void Exec(Option_t *opt)
virtual ~PndElectronCorrectionTest()