PandaRoot
PndMvdRadDamTask.h
Go to the documentation of this file.
1 /*
2  * PndMvdRadDamTask.h
3  *
4  * Created on: Dec 16, 2008
5  * Author: stockman
6  */
7 
8 #ifndef PNDMVDRADDAMTASK_H
9 #define PNDMVDRADDAMTASK_H
10 
11 #include "FairTask.h"
12 #include "PndMvdRadDamList.h"
13 #include "PndGeoHandling.h"
14 
15 #include "TClonesArray.h"
16 #include "TH2.h"
17 
18 #include <map>
19 #include <string>
20 
21 class PndMvdRadDamTask : public FairTask {
22  public:
25  PndMvdRadDamTask(const PndMvdRadDamTask &) = delete;
26  PndMvdRadDamTask &operator=(const PndMvdRadDamTask &) = delete;
27 
28  virtual void SetParContainers();
29  virtual InitStatus Init();
30  virtual InitStatus ReInit();
31 
33  virtual void Exec(Option_t *opt);
34 
35  virtual void Finish();
36 
37  void SetPersistance(Bool_t p = kTRUE) { fPersistance = p; };
38  Bool_t GetPersistance() { return fPersistance; };
39 
40  private:
41  Bool_t fPersistance; // switch to turn on/off storing the arrays to a file
42  TClonesArray *fMCTracks;
43  TClonesArray *fMCHits;
44  TClonesArray *fRadDamHits;
45 
46  PndMvdRadDamList *fElectronList;
47  PndMvdRadDamList *fProtonList;
48  PndMvdRadDamList *fNeutronList;
49  PndMvdRadDamList *fPionList;
50 
51  PndGeoHandling *fGeoH;
52 
53  std::map<std::string, TH2 *> fMapDetHistos;
54  TH1D *fRadDamHisto;
55 
56  std::map<Int_t, PndMvdRadDamList *> fWeightListsMap;
57  void InitWeightLists();
58 
59  ClassDef(PndMvdRadDamTask, 1);
60 };
61 
62 #endif /* PNDMVDRADDAMTASK_H */
virtual InitStatus Init()
virtual void Exec(Option_t *opt)
virtual InitStatus ReInit()
virtual void SetParContainers()
void SetPersistance(Bool_t p=kTRUE)
Class to access the naming information of the MVD.
virtual void Finish()
PndMvdRadDamTask & operator=(const PndMvdRadDamTask &)=delete