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 class PndEmcReadProto192Data : public FairTask {
24  public:
25  virtual InitStatus Init();
26  virtual void Exec(Option_t *opt);
27  virtual InitStatus ReInit()
28  {
29  IsInit = kFALSE;
30  return Init();
31  };
32  virtual void SetParContainers();
33  void SetIndexMap(Long_t *map);
34  void SetWaveformMap(Long_t *map);
35  PndEmcReadProto192Data(TTree *prototree, TTree *taggertree = nullptr, Bool_t StoreHits = kTRUE, Int_t debuglevel = 0);
37  virtual void SetTaggerTreeOffset(Long_t offset = 0) { lTaggerTreeOffset = offset; };
38 
39  private:
40  TTree *lProto192Tree;
41  TTree *lTaggerTree;
42  Long_t lProto192EventNum;
43  UInt_t lTaggerEventNum;
44  TProtoUnpackEvent *lProto192Event;
45  TClonesArray *lWaveArray;
46  TClonesArray *lTaggerArray;
47  Long_t lIndexMap[64];
48  Long_t lWaveformMap[64];
49 
50  PndEmcGeoPar *lGeoPar;
51  PndEmcDigiPar *lDigiPar;
52  PndGeoPassivePar *lGeoPassivePar;
53  FairBaseParSet *lBaseParSet;
54  Bool_t lStoreHits;
55  Int_t lDebug;
56  Bool_t IsInit;
57  std::vector<Double_t> signal;
58  Long_t lTaggerTreeOffset;
59  Long_t lEventNumOverflow;
60  ClassDef(PndEmcReadProto192Data, 1);
61 };
62 
63 #endif
virtual void SetTaggerTreeOffset(Long_t offset=0)
PndEmcReadProto192Data(TTree *prototree, TTree *taggertree=nullptr, Bool_t StoreHits=kTRUE, Int_t debuglevel=0)
virtual InitStatus ReInit()
void SetWaveformMap(Long_t *map)
virtual InitStatus Init()
virtual void SetParContainers()
parameter set of Emc digitisation
Definition: PndEmcDigiPar.h:12
virtual void Exec(Option_t *opt)
void SetIndexMap(Long_t *map)