PandaRoot
PndMvdRadDamTask.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 /*
14  * PndMvdRadDamTask.h
15  *
16  * Created on: Dec 16, 2008
17  * Author: stockman
18  */
19 
20 #ifndef PNDMVDRADDAMTASK_H
21 #define PNDMVDRADDAMTASK_H
22 
23 #include "FairTask.h"
24 #include "PndMvdRadDamList.h"
25 #include "PndGeoHandling.h"
26 
27 #include "TClonesArray.h"
28 #include "TH2.h"
29 
30 #include <map>
31 #include <string>
32 
33 class PndMvdRadDamTask : public FairTask {
34  public:
37  PndMvdRadDamTask(const PndMvdRadDamTask &) = delete;
38  PndMvdRadDamTask &operator=(const PndMvdRadDamTask &) = delete;
39 
40  virtual void SetParContainers();
41  virtual InitStatus Init();
42  virtual InitStatus ReInit();
43 
45  virtual void Exec(Option_t *opt);
46 
47  virtual void Finish();
48 
49  void SetPersistance(Bool_t p = kTRUE) { fPersistance = p; };
50  Bool_t GetPersistance() { return fPersistance; };
51 
52  private:
53  Bool_t fPersistance; // switch to turn on/off storing the arrays to a file
54  TClonesArray *fMCTracks;
55  TClonesArray *fMCHits;
56  TClonesArray *fRadDamHits;
57 
58  PndMvdRadDamList *fElectronList;
59  PndMvdRadDamList *fProtonList;
60  PndMvdRadDamList *fNeutronList;
61  PndMvdRadDamList *fPionList;
62 
63  PndGeoHandling *fGeoH;
64 
65  std::map<std::string, TH2 *> fMapDetHistos;
66  TH1D *fRadDamHisto;
67 
68  std::map<Int_t, PndMvdRadDamList *> fWeightListsMap;
69  void InitWeightLists();
70 
71  ClassDef(PndMvdRadDamTask, 1);
72 };
73 
74 #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