PandaRoot
PndMvdConvertApvTask.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 // ----- PndMvdConvertApvTask header file -----
15 // ----- Created 12/01/09 by L.Ackermann -----
16 // -------------------------------------------------------------------------
17 
25 #ifndef PNDMVDCONVERTAPVTASK_H
26 #define PNDMVDCONVERTAPVTASK_H
27 
28 // framework includes
29 #include "FairTask.h"
30 #include "PndMvdConvertApv.h"
31 #include "PndMvdBoxMap.h"
32 #include "PndGeoHandling.h"
33 
34 #include <vector>
35 #include <map>
36 
37 class TClonesArray;
38 class PndSdsDigiStrip;
39 
48 class PndMvdConvertApvTask : public FairTask {
49  public:
51  PndMvdConvertApvTask(PndMvdConvertApv *Apvconvert, PndMvdBoxMap *Apvmapper);
52 
55 
58 
60  virtual void Exec(Option_t *opt);
61 
62  virtual void SetParContainers();
67  virtual InitStatus Init();
68 
74  virtual void Finish();
75 
76  void SetPersistance(Bool_t p = kTRUE) { fPersistance = p; };
77  Bool_t GetPersistance() { return fPersistance; };
78 
79  private:
80  Bool_t fPersistance; // switch to turn on/off storing the arrays to a file
81 
83  PndMvdConvertApv *fApvConvert;
84  PndMvdBoxMap *fApvMapper;
86  TClonesArray *fStripArray;
88  PndGeoHandling *fGeoH;
90  Int_t iStrip;
91  TList *fDigiParameterList;
92  std::map<TString, Int_t> fBotSides;
93  Bool_t IsSingleSided(TString &detpath);
94  Int_t CalcBotFakeFE(TString detpath);
95 
100  void Register();
101 
106  void Reset();
107 
108  ClassDef(PndMvdConvertApvTask, 1);
109 };
110 
111 #endif
virtual void Exec(Option_t *opt)
virtual InitStatus Init()
PndMvdConvertApvTask(PndMvdConvertApv *Apvconvert, PndMvdBoxMap *Apvmapper)
Class for digitised strip hits.
Convert meassured data into PndSdsDigiStrip.
Convert Task of data.
PndMvdConvertApvTask & operator=(const PndMvdConvertApvTask &)=delete
Class to access the naming information of the MVD.
virtual void SetParContainers()
virtual void Finish()
void SetPersistance(Bool_t p=kTRUE)