PandaRoot
PndEmcWaveformDigitizer.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 //#pragma once
14 #ifndef PNDEMCWAVEFORMDIGITIZER_H_
15 #define PNDEMCWAVEFORMDIGITIZER_H_
16 
23  public:
25  PndEmcWaveformDigitizer(Int_t nBits, Double_t energyRange, Double_t inputScale);
26 
27  virtual void Modify(PndEmcWaveform *wf);
28  virtual Double_t GetScale() { return fTotalChannels / fInputScale; }
29 
30  private:
31  Int_t fNBits;
32  Double_t fEnergyRange; // in GeV;
33  Double_t fInputScale;
34 
35  Int_t fTotalChannels;
36  Double_t fOneBitResolution;
37 
38  ClassDef(PndEmcWaveformDigitizer, 0);
39 };
40 
41 #endif
interface for waveform modifiers
represents a simulated waveform in an emc crystal
virtual void Modify(PndEmcWaveform *wf)