PandaRoot
PndMvdRadDamIonizingTask.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  * PndMvdRadDamIonizingTask.h
15  *
16  * Created on: Dec 16, 2008
17  * Author: stockman
18  */
19 
20 #ifndef PndMvdRadDamIonizingTask_H
21 #define PndMvdRadDamIonizingTask_H
22 
23 #include "FairTask.h"
24 #include "PndGeoHandling.h"
25 
26 #include "TClonesArray.h"
27 #include "TProfile2D.h"
28 
29 #include <map>
30 #include <string>
31 
32 class PndMvdRadDamIonizingTask : public FairTask {
33  public:
38 
39  virtual void SetParContainers();
40  virtual InitStatus Init();
41  virtual InitStatus ReInit();
42 
44  virtual void Exec(Option_t *opt);
45  virtual void FinishEvent();
46  virtual void FinishTask();
47 
48  void SetPersistance(Bool_t p = kTRUE) { fPersistance = p; };
49  Bool_t GetPersistance() { return fPersistance; };
50 
51  private:
52  Bool_t fPersistance; // switch to turn on/off storing the arrays to a file
53  TClonesArray *fMCHits;
54  TClonesArray *fRadDamHits;
55 
56  PndGeoHandling *fGeoH;
57 
58  std::map<std::string, TProfile2D *> fMapDetHistos;
59  TH1D *fRadDamHisto;
60 
61  ClassDef(PndMvdRadDamIonizingTask, 1);
62 };
63 
64 #endif /* PndMvdRadDamIonizingTask_H */
PndMvdRadDamIonizingTask & operator=(const PndMvdRadDamIonizingTask &)=delete
virtual void Exec(Option_t *opt)
virtual void SetParContainers()
virtual void FinishEvent()
Class to access the naming information of the MVD.
virtual InitStatus ReInit()
virtual void FinishTask()
void SetPersistance(Bool_t p=kTRUE)
virtual InitStatus Init()