FairRoot/PandaRoot
PndEmcReadProto192Data.h
Go to the documentation of this file.
1 /*******************************************
2  * PndEmcReadProto192Data is a Fairtask to read
3  * Data from the Proto60 and create PndEmcHits
4  *
5  * author: Christian Hammann <chammann@hiskp.uni-bonn.de>
6  * Date: 8.1.2010
7  *
8  * ******************************************/
9 
10 #ifndef PNDREADPROTO192DATA_H
11 #define PNDREADPROTO192DATA_H
12 
13 #include "FairTask.h"
14 #include "PndEmcDigiPar.h"
15 #include "PndEmcGeoPar.h"
16 #include "PndGeoPassivePar.h"
17 #include "FairBaseParSet.h"
18 #include "TFile.h"
19 #include "TTree.h"
20 #include "TProtoUnpackEvent.h"
21 #include "TClonesArray.h"
22 
23 
24 class PndEmcReadProto192Data : public FairTask{
25  public:
26  virtual InitStatus Init();
27  virtual void Exec(Option_t *opt);
28  virtual InitStatus ReInit(){IsInit=kFALSE; return Init();};
29  virtual void SetParContainers();
30  void SetIndexMap(Long_t *map);
31  void SetWaveformMap(Long_t *map);
32  PndEmcReadProto192Data(TTree *prototree, TTree *taggertree = NULL, Bool_t StoreHits=kTRUE,Int_t debuglevel=0);
34  virtual void SetTaggerTreeOffset(Long_t offset = 0){lTaggerTreeOffset = offset;};
35 
36  private:
37  TTree *lProto192Tree;
38  TTree *lTaggerTree;
42  TClonesArray *lWaveArray;
43  TClonesArray *lTaggerArray;
44  Long_t lIndexMap[64];
45  Long_t lWaveformMap[64];
46 
47 
51  FairBaseParSet *lBaseParSet;
53  Int_t lDebug;
55  std::vector<Double_t> signal;
59 };
60 
61 
62 #endif
std::vector< Double_t > signal
virtual void SetTaggerTreeOffset(Long_t offset=0)
PndTransMap * map
Definition: sim_emc_apd.C:99
TVector3 offset(2, 0, 0)
virtual InitStatus ReInit()
virtual void Exec(Option_t *opt)
TProtoUnpackEvent * lProto192Event
parameter set of Emc digitisation
Definition: PndEmcDigiPar.h:12
PndGeoPassivePar * lGeoPassivePar
PndEmcReadProto192Data(TTree *prototree, TTree *taggertree=NULL, Bool_t StoreHits=kTRUE, Int_t debuglevel=0)
ClassDef(PndEmcReadProto192Data, 1)