FairRoot/PandaRoot
PndEmcMultiWaveformSimulator.h
Go to the documentation of this file.
1 #ifndef PNDEMCMULTIWAVEFORMSIMULATOR_H_
2 #define PNDEMCMULTIWAVEFORMSIMULATOR_H_
3 
5 #include <vector>
6 
9 class TClonesArray;
10 
18 {
19  public:
21  PndEmcMultiWaveformSimulator(Double_t sampleRate, PndEmcAbsPulseshape* pulseshape, Int_t wfMultiplicity);
22 
26  virtual void AddModifier(PndEmcAbsWaveformModifier* wfModifier, Int_t wfIndex);
27 
28  virtual Double_t GetTotalScale(Int_t wfIndex);
29 
30  protected:
32  virtual PndEmcWaveform* MakeWaveform(PndEmcWaveformData* wfData, TClonesArray* arrayToStore=NULL);
33  virtual PndEmcWaveform* MakeSingleWaveform(Double_t hitEnergy, Double_t hitTime, TClonesArray* arrayToStore=NULL, Int_t detId=-1, Int_t trackId=-1, Int_t hitIndex=-1);
34 
35 
36  private:
38  std::vector<Int_t> fIndexList;
39 
40  PndEmcMultiWaveform* MultiplyWaveform(const PndEmcWaveform* singleWaveform, TClonesArray* arrayToStore);
41 
43 };
44 
45 #endif
virtual PndEmcWaveform * MakeWaveform(PndEmcWaveformData *wfData, TClonesArray *arrayToStore=NULL)
Create PndEmcWaveform.
interface for waveform modifiers
Simulator to create PndEmcMultiWaveform.
virtual void AddModifier(PndEmcAbsWaveformModifier *wfModifier, Int_t wfIndex)
Add a modifier (PndEmcAbsWaveformModifier)
Double_t
ClassDef(PndEmcFullStackedWaveformSimulator, 1)
represents a simulated waveform in an emc crystal
Class to hold multiple waveforms from one Emc Hit / ADC readout.
pulseshape interface
represents a simulated waveform in an emc crystal, used by PndEmcFWEndcapTimebasedWaveforms ...
PndEmcMultiWaveform * MultiplyWaveform(const PndEmcWaveform *singleWaveform, TClonesArray *arrayToStore)
Creates a PndEmcMultiWaveform from a PndEmcWaveform.
virtual PndEmcWaveform * MakeSingleWaveform(Double_t hitEnergy, Double_t hitTime, TClonesArray *arrayToStore=NULL, Int_t detId=-1, Int_t trackId=-1, Int_t hitIndex=-1)
Create a PndEmcWaveform from the given parameters of a single hit.
virtual PndEmcWaveform * CallModifiers(PndEmcWaveform *wf)
Call modifiers on waveform wf.