PandaRoot
PndEmcReadProtoData.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  * PndEmcReadProtoData 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 PNDREADPROTODATA_H
23 #define PNDREADPROTODATA_H
24 
25 #include "FairTask.h"
26 #include "PndEmcHit.h"
27 #include "PndEmcDigi.h"
28 #include "ReadMainzProto60.h"
29 #include "PndEmcDigiPar.h"
30 #include "PndEmcGeoPar.h"
31 #include "PndGeoPassivePar.h"
32 #include "FairBaseParSet.h"
33 
34 #include "TClonesArray.h"
35 
36 class PndEmcReadProtoData : public FairTask {
37  public:
38  virtual InitStatus Init();
39  virtual void Exec(Option_t *opt);
40  virtual InitStatus ReInit()
41  {
42  IsInit = kFALSE;
43  return Init();
44  };
45 
46  Bool_t OnlyPrompt(Bool_t onlyPrompt = kTRUE);
47  Bool_t OnlyTagged(Bool_t onlyTagged = kTRUE);
48 
49  PndEmcReadProtoData(ReadMainzProto60 *datareader, Bool_t StoreHits = kTRUE, Int_t debuglevel = 0);
51 
52  private:
53  virtual void SetParContainers();
54 
55  ReadMainzProto60 *lDataReader;
56  Bool_t lStoreHits;
57  Bool_t lOnlyPrompt;
58  Bool_t lOnlyTagged;
59  Int_t lDebug;
60  TClonesArray *lHitArray;
61  TClonesArray *lDigiArray;
62  TClonesArray *lGammaArray;
63 
64  Double_t lEnergies[60];
65  Double_t lADCs[60];
66  Double_t lTimes[60];
67  Double_t lTaggerTimes[16];
68  Double_t lTaggerEnergies[16];
69 
70  Double_t lEnergyHitThreshold;
71  Double_t lEnergyDigiThreshold;
72 
73  Bool_t IsInit;
74 
75  PndEmcDigiPar *lDigiPar;
76  PndEmcGeoPar *lGeoPar;
77  PndGeoPassivePar *lGeoPassivePar;
78  FairBaseParSet *lBaseParSet;
79 
80  ClassDef(PndEmcReadProtoData, 1);
81 };
82 
83 #endif
virtual InitStatus ReInit()
parameter set of Emc digitisation
Definition: PndEmcDigiPar.h:24
Bool_t OnlyPrompt(Bool_t onlyPrompt=kTRUE)
Bool_t OnlyTagged(Bool_t onlyTagged=kTRUE)
virtual void Exec(Option_t *opt)
PndEmcReadProtoData(ReadMainzProto60 *datareader, Bool_t StoreHits=kTRUE, Int_t debuglevel=0)
virtual InitStatus Init()