FairRoot/PandaRoot
PndMvdConvertApvTask.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndMvdConvertApvTask header file -----
3 // ----- Created 12/01/09 by L.Ackermann -----
4 // -------------------------------------------------------------------------
5 
6 
15 #ifndef PNDMVDCONVERTAPVTASK_H
16 #define PNDMVDCONVERTAPVTASK_H
17 
18 
19 // framework includes
20 #include "FairTask.h"
21 #include "PndMvdConvertApv.h"
22 #include "PndMvdBoxMap.h"
23 #include "PndGeoHandling.h"
24 
25 #include <vector>
26 #include <map>
27 
28 class TClonesArray;
29 class PndSdsDigiStrip;
30 
39 class PndMvdConvertApvTask : public FairTask
40 {
41  public:
42 
44  PndMvdConvertApvTask(PndMvdConvertApv* Apvconvert, PndMvdBoxMap* Apvmapper);
45 
48 
51 
53  virtual void Exec(Option_t* opt);
54 
55  virtual void SetParContainers();
60  virtual InitStatus Init();
61 
67  virtual void Finish();
68 
69  void SetPersistance(Bool_t p = kTRUE) {fPersistance=p;};
71 
72 private:
73  Bool_t fPersistance; // switch to turn on/off storing the arrays to a file
74 
79  TClonesArray* fStripArray;
83  Int_t iStrip;
85  std::map<TString,Int_t> fBotSides;
86  Bool_t IsSingleSided(TString &detpath);
87  Int_t CalcBotFakeFE(TString detpath);
88 
93  void Register();
94 
99  void Reset();
100 
102 
103 };
104 
105 #endif
TClonesArray * fStripArray
array of results
virtual void Exec(Option_t *opt)
virtual InitStatus Init()
PndMvdConvertApvTask(PndMvdConvertApv *Apvconvert, PndMvdBoxMap *Apvmapper)
Class for digitised strip hits.
ClassDef(PndMvdConvertApvTask, 1)
Convert meassured data into PndSdsDigiStrip.
Double_t p
Definition: anasim.C:58
Convert Task of data.
Bool_t IsSingleSided(TString &detpath)
PndMvdConvertApvTask & operator=(const PndMvdConvertApvTask &)=delete
Class to access the naming information of the MVD.
PndGeoHandling * fGeoH
Geohandler for name string compression.
PndMvdConvertApv * fApvConvert
class which convert the read in and hold the streams
std::map< TString, Int_t > fBotSides
Int_t CalcBotFakeFE(TString detpath)
Int_t iStrip
number of strips in this event
void SetPersistance(Bool_t p=kTRUE)