PandaRoot
PndEmcTmpWaveformToDigi.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------
2 // File and Version Information:
3 // $Id: Exp $
4 //
5 // Description:
6 // Class PndEmcTmpWaveformToDigi. Module to take the hit list for the
7 // calorimeter and make ADC waveforms from them.
8 //
9 // Software developed for the BaBar Detector at the SLAC B-Factory.
10 // Adapted for the PANDA experiment at GSI
11 //
12 // Author List:
13 // Phil Strother Original Author
14 // Dima Melnichuk - adaption for PANDA
15 //
16 // Copyright Information:
17 // Copyright (C) 1996 Imperial College
18 //
19 //----------------------------------------------------------------------
20 #pragma once
21 #ifndef PndEmcTmpWaveformToDigi_H
22 #define PndEmcTmpWaveformToDigi_H
23 
24 #include <PndPersistencyTask.h>
25 #include <string>
26 //#include <vector>
27 
28 class PndEmcHit;
30 class PndEmcWaveform;
31 
32 class TClonesArray;
33 class PndEmcDigiPar;
34 class PndEmcRecoPar;
35 
41 
42  public:
43  // Constructors
44 
45  PndEmcTmpWaveformToDigi(Int_t verbose = 0, Bool_t storedigis = kTRUE);
46 
47  // Destructor
48 
49  virtual ~PndEmcTmpWaveformToDigi();
50 
52  virtual InitStatus Init();
53 
55  virtual void Exec(Option_t *opt);
56 
57  void SetStorageOfData(Bool_t val); // Method to specify whether digis are stored or not.
58 
59  private:
61  TClonesArray *fWaveformArray;
62 
64  TClonesArray *fDigiArray;
65 
66  Double_t fSampleRate;
67  Double_t fEnergyDigiThreshold;
68 
69  std::string fDigiPosMethod; // "surface" or "depth"
70  Double_t fEmcDigiRescaleFactor;
71  Double_t fEmcDigiPositionDepth;
72 
73  PndEmcDigiPar *fDigiPar;
74  PndEmcRecoPar *fRecoPar;
76  virtual void SetParContainers();
77 
79  Int_t fVerbose;
80 
81  ClassDef(PndEmcTmpWaveformToDigi, 1);
82 };
83 
84 #endif
currently not used, not in CMakeLists.txt
stores crystal index coordinates (x,y) or (theta,phi)
void SetStorageOfData(Bool_t val)
virtual ~PndEmcTmpWaveformToDigi()
parameter set of Emc digitisation
Definition: PndEmcDigiPar.h:12
represents a simulated waveform in an emc crystal
represents the deposited energy of one emc crystal from simulation
Definition: PndEmcHit.h:28
PndEmcTmpWaveformToDigi(Int_t verbose=0, Bool_t storedigis=kTRUE)
Parameter set for Emc Reco.
Definition: PndEmcRecoPar.h:12
virtual void Exec(Option_t *opt)
virtual InitStatus Init()