PandaRoot
PndEmcReadProto192Data.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  * PndEmcReadProto192Data is a Fairtask to read
15  * Data from the Proto60 and create PndEmcHits
16  *
17  * author: Christian Hammann <chammann@hiskp.uni-bonn.de>
18  * Date: 8.1.2010
19  *
20  * ******************************************/
21 
22 #ifndef PNDREADPROTO192DATA_H
23 #define PNDREADPROTO192DATA_H
24 
25 #include "FairTask.h"
26 #include "PndEmcDigiPar.h"
27 #include "PndEmcGeoPar.h"
28 #include "PndGeoPassivePar.h"
29 #include "FairBaseParSet.h"
30 #include "TFile.h"
31 #include "TTree.h"
32 #include "TProtoUnpackEvent.h"
33 #include "TClonesArray.h"
34 
35 class PndEmcReadProto192Data : public FairTask {
36  public:
37  virtual InitStatus Init();
38  virtual void Exec(Option_t *opt);
39  virtual InitStatus ReInit()
40  {
41  IsInit = kFALSE;
42  return Init();
43  };
44  virtual void SetParContainers();
45  void SetIndexMap(Long_t *map);
46  void SetWaveformMap(Long_t *map);
47  PndEmcReadProto192Data(TTree *prototree, TTree *taggertree = nullptr, Bool_t StoreHits = kTRUE, Int_t debuglevel = 0);
49  virtual void SetTaggerTreeOffset(Long_t offset = 0) { lTaggerTreeOffset = offset; };
50 
51  private:
52  TTree *lProto192Tree;
53  TTree *lTaggerTree;
54  Long_t lProto192EventNum;
55  UInt_t lTaggerEventNum;
56  TProtoUnpackEvent *lProto192Event;
57  TClonesArray *lWaveArray;
58  TClonesArray *lTaggerArray;
59  Long_t lIndexMap[64];
60  Long_t lWaveformMap[64];
61 
62  PndEmcGeoPar *lGeoPar;
63  PndEmcDigiPar *lDigiPar;
64  PndGeoPassivePar *lGeoPassivePar;
65  FairBaseParSet *lBaseParSet;
66  Bool_t lStoreHits;
67  Int_t lDebug;
68  Bool_t IsInit;
69  std::vector<Double_t> signal;
70  Long_t lTaggerTreeOffset;
71  Long_t lEventNumOverflow;
72  ClassDef(PndEmcReadProto192Data, 1);
73 };
74 
75 #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:24
virtual void Exec(Option_t *opt)
void SetIndexMap(Long_t *map)