PandaRoot
PndEmcTmpWaveformToDigi.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 // File and Version Information:
15 // $Id: Exp $
16 //
17 // Description:
18 // Class PndEmcTmpWaveformToDigi. Module to take the hit list for the
19 // calorimeter and make ADC waveforms from them.
20 //
21 // Software developed for the BaBar Detector at the SLAC B-Factory.
22 // Adapted for the PANDA experiment at GSI
23 //
24 // Author List:
25 // Phil Strother Original Author
26 // Dima Melnichuk - adaption for PANDA
27 //
28 // Copyright Information:
29 // Copyright (C) 1996 Imperial College
30 //
31 //----------------------------------------------------------------------
32 #pragma once
33 #ifndef PndEmcTmpWaveformToDigi_H
34 #define PndEmcTmpWaveformToDigi_H
35 
36 #include <PndPersistencyTask.h>
37 #include <string>
38 //#include <vector>
39 
40 class PndEmcHit;
42 class PndEmcWaveform;
43 
44 class TClonesArray;
45 class PndEmcDigiPar;
46 class PndEmcRecoPar;
47 
53 
54  public:
55  // Constructors
56 
57  PndEmcTmpWaveformToDigi(Int_t verbose = 0, Bool_t storedigis = kTRUE);
58 
59  // Destructor
60 
61  virtual ~PndEmcTmpWaveformToDigi();
62 
64  virtual InitStatus Init();
65 
67  virtual void Exec(Option_t *opt);
68 
69  void SetStorageOfData(Bool_t val); // Method to specify whether digis are stored or not.
70 
71  private:
73  TClonesArray *fWaveformArray;
74 
76  TClonesArray *fDigiArray;
77 
78  Double_t fSampleRate;
79  Double_t fEnergyDigiThreshold;
80 
81  std::string fDigiPosMethod; // "surface" or "depth"
82  Double_t fEmcDigiRescaleFactor;
83  Double_t fEmcDigiPositionDepth;
84 
85  PndEmcDigiPar *fDigiPar;
86  PndEmcRecoPar *fRecoPar;
88  virtual void SetParContainers();
89 
91  Int_t fVerbose;
92 
93  ClassDef(PndEmcTmpWaveformToDigi, 1);
94 };
95 
96 #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:24
represents a simulated waveform in an emc crystal
represents the deposited energy of one emc crystal from simulation
Definition: PndEmcHit.h:40
PndEmcTmpWaveformToDigi(Int_t verbose=0, Bool_t storedigis=kTRUE)
Parameter set for Emc Reco.
Definition: PndEmcRecoPar.h:25
virtual void Exec(Option_t *opt)
virtual InitStatus Init()