![]() |
PandaRoot
|
represents a simulated waveform in an emc crystal More...
#include <PndEmcWaveform.h>
Public Member Functions | |
PndEmcWaveform () | |
PndEmcWaveform (int trackId, long detId, const std::vector< Double_t > &signal, Int_t hitIndex=-1) | |
PndEmcWaveform (long detId, const std::vector< Double_t > &signal, const FairMultiLinkedData &links) | |
PndEmcWaveform (Int_t trackId, Long_t detId, Double_t sampleRate, Long_t waveform_length=64, Int_t hitIndex=-1, Double_t time=0.) | |
virtual | ~PndEmcWaveform () |
long | GetDetectorId () const |
int | GetTrackId () const |
Short_t | GetModule () const |
PndEmcTwoCoordIndex * | GetTCI () const |
virtual std::vector< double > | GetSignal () const |
virtual std::vector< Double_t > | GetSignalError () const |
Int_t | GetHitIndex () const |
virtual bool | operator== (const PndEmcWaveform &otherWave) const |
virtual bool | operator< (const PndEmcWaveform &otherWave) const |
virtual bool | operator!= (const PndEmcWaveform &otherWave) const |
virtual bool | equal (FairTimeStamp *data) |
PndEmcWaveform & | operator+= (const PndEmcWaveform &otherWave) |
Double_t | GetSampleRate () const |
Double_t | GetScale (Double_t sampleRate, PndEmcAbsPulseshape *pulseshape) const |
Double_t | GetNormalisation (Double_t sampleRate, PndEmcAbsPulseshape *pulseshape) const |
Int_t | GetWaveformLength () const |
void | SetSampleRate (Double_t rate) |
void | UpdateWaveform (PndEmcHit *hit, Double_t pePerMeV, Bool_t usePhotonStatistic, Double_t excessNoiseFactor, Double_t firstADCBinTime, Double_t sampleRate, PndEmcAbsPulseshape *pulseshape, Double_t=0) |
void | MakeWaveform (Double_t energy, Double_t time, Double_t pePerMeV, Bool_t usePhotonStatistic, Double_t excessNoiseFactor, Double_t firstADCBinTime, Double_t sampleRate, PndEmcAbsPulseshape *pulseshape, Double_t=0) |
void | AddElecNoise (Double_t) |
void | Digitise (Double_t) |
void | AddElecNoiseAndDigitise (Double_t, Double_t, Double_t=0) |
void | AddShapedElecNoiseAndDigitise (Double_t noise_width, Double_t oneBitResolution, PndEmcAbsPulseshape *pulseshape, Double_t firstADCBinTime, Double_t sampleRate, Double_t=0) |
void | SetWaveform (std::vector< Double_t > &signal, Int_t length) |
Double_t | Max () |
virtual void | clearAndReset () |
virtual void | Clear (Option_t *) |
Double_t | GetActiveTime () const |
Int_t | GetPileupCount () const |
void | AddEvt (Int_t evtNo) |
const std::vector< Int_t > & | GetEvtList () const |
TGraphErrors * | ToTGraph () const |
Double_t | GetBaseline () const |
Double_t | Integral () const |
Protected Attributes | |
Int_t | fTrackId |
Int_t | fDetectorId |
Int_t | fWaveformLength |
std::vector< Double_t > | fSignal |
std::vector< Double_t > | fSignalError |
Int_t | fHitIndex |
Double_t | fSampleRate |
Double_t | fBaselineValue |
std::vector< Int_t > | fEvt |
Static Protected Attributes | |
static Double_t | BarrelOverlapTime |
static Double_t | ForwardOverlapTime |
static Double_t | ShashylikOverlapTime |
Friends | |
class | PndEmcAbsWaveformModifier |
represents a simulated waveform in an emc crystal
Definition at line 56 of file PndEmcWaveform.h.
PndEmcWaveform::PndEmcWaveform | ( | ) |
PndEmcWaveform::PndEmcWaveform | ( | int | trackId, |
long | detId, | ||
const std::vector< Double_t > & | signal, | ||
Int_t | hitIndex = -1 |
||
) |
PndEmcWaveform::PndEmcWaveform | ( | long | detId, |
const std::vector< Double_t > & | signal, | ||
const FairMultiLinkedData & | links | ||
) |
PndEmcWaveform::PndEmcWaveform | ( | Int_t | trackId, |
Long_t | detId, | ||
Double_t | sampleRate, | ||
Long_t | waveform_length = 64 , |
||
Int_t | hitIndex = -1 , |
||
Double_t | time = 0. |
||
) |
|
virtual |
void PndEmcWaveform::AddElecNoise | ( | Double_t | ) |
Referenced by SetSampleRate().
void PndEmcWaveform::AddElecNoiseAndDigitise | ( | Double_t | , |
Double_t | , | ||
Double_t | = 0 |
||
) |
Referenced by SetSampleRate().
|
inline |
void PndEmcWaveform::AddShapedElecNoiseAndDigitise | ( | Double_t | noise_width, |
Double_t | oneBitResolution, | ||
PndEmcAbsPulseshape * | pulseshape, | ||
Double_t | firstADCBinTime, | ||
Double_t | sampleRate, | ||
Double_t | = 0 |
||
) |
Referenced by SetSampleRate().
|
inlinevirtual |
Reimplemented in PndEmcMultiWaveform.
Definition at line 130 of file PndEmcWaveform.h.
References fSignal.
|
virtual |
Reimplemented in PndEmcMultiWaveform.
Referenced by SetSampleRate().
void PndEmcWaveform::Digitise | ( | Double_t | ) |
Referenced by SetSampleRate().
|
virtual |
Referenced by GetHitIndex().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 88 of file PndEmcWaveform.h.
References equal(), fHitIndex, operator!=(), operator+=(), operator<(), and operator==().
|
inline |
Double_t PndEmcWaveform::GetNormalisation | ( | Double_t | sampleRate, |
PndEmcAbsPulseshape * | pulseshape | ||
) | const |
Referenced by GetSampleRate().
|
inline |
|
inline |
Definition at line 100 of file PndEmcWaveform.h.
References fSampleRate, GetNormalisation(), and GetScale().
Double_t PndEmcWaveform::GetScale | ( | Double_t | sampleRate, |
PndEmcAbsPulseshape * | pulseshape | ||
) | const |
Referenced by GetSampleRate().
|
inlinevirtual |
Reimplemented in PndEmcMultiWaveform.
Definition at line 85 of file PndEmcWaveform.h.
References fSignal.
|
inlinevirtual |
PndEmcTwoCoordIndex* PndEmcWaveform::GetTCI | ( | ) | const |
Referenced by GetModule().
|
inline |
|
inline |
Double_t PndEmcWaveform::Integral | ( | ) | const |
Referenced by GetBaseline().
void PndEmcWaveform::MakeWaveform | ( | Double_t | energy, |
Double_t | time, | ||
Double_t | pePerMeV, | ||
Bool_t | usePhotonStatistic, | ||
Double_t | excessNoiseFactor, | ||
Double_t | firstADCBinTime, | ||
Double_t | sampleRate, | ||
PndEmcAbsPulseshape * | pulseshape, | ||
Double_t | = 0 |
||
) |
Referenced by SetSampleRate().
Double_t PndEmcWaveform::Max | ( | ) |
Referenced by SetSampleRate().
|
virtual |
Referenced by GetHitIndex().
PndEmcWaveform& PndEmcWaveform::operator+= | ( | const PndEmcWaveform & | otherWave | ) |
Referenced by GetHitIndex().
|
virtual |
Referenced by GetHitIndex().
|
virtual |
Referenced by GetHitIndex().
|
inline |
Definition at line 111 of file PndEmcWaveform.h.
References AddElecNoise(), AddElecNoiseAndDigitise(), AddShapedElecNoiseAndDigitise(), clearAndReset(), Digitise(), fSampleRate, MakeWaveform(), Max(), SetWaveform(), and UpdateWaveform().
void PndEmcWaveform::SetWaveform | ( | std::vector< Double_t > & | signal, |
Int_t | length | ||
) |
Referenced by SetSampleRate().
TGraphErrors* PndEmcWaveform::ToTGraph | ( | ) | const |
Referenced by GetEvtList().
void PndEmcWaveform::UpdateWaveform | ( | PndEmcHit * | hit, |
Double_t | pePerMeV, | ||
Bool_t | usePhotonStatistic, | ||
Double_t | excessNoiseFactor, | ||
Double_t | firstADCBinTime, | ||
Double_t | sampleRate, | ||
PndEmcAbsPulseshape * | pulseshape, | ||
Double_t | = 0 |
||
) |
Referenced by SetSampleRate().
|
friend |
Definition at line 59 of file PndEmcWaveform.h.
|
staticprotected |
Definition at line 157 of file PndEmcWaveform.h.
|
protected |
Definition at line 152 of file PndEmcWaveform.h.
Referenced by GetBaseline().
|
protected |
Definition at line 145 of file PndEmcWaveform.h.
Referenced by GetDetectorId(), and GetModule().
|
protected |
Definition at line 154 of file PndEmcWaveform.h.
Referenced by AddEvt(), GetEvtList(), and GetPileupCount().
|
protected |
Definition at line 149 of file PndEmcWaveform.h.
Referenced by GetHitIndex().
|
staticprotected |
Definition at line 158 of file PndEmcWaveform.h.
|
protected |
Definition at line 151 of file PndEmcWaveform.h.
Referenced by GetActiveTime(), GetSampleRate(), and SetSampleRate().
|
protected |
Definition at line 147 of file PndEmcWaveform.h.
Referenced by PndEmcMultiWaveform::Clear(), Clear(), GetSignal(), PndEmcAbsWaveformModifier::GetWaveformReference(), and PndEmcMultiWaveform::~PndEmcMultiWaveform().
|
protected |
Definition at line 148 of file PndEmcWaveform.h.
Referenced by GetSignalError().
|
protected |
Definition at line 144 of file PndEmcWaveform.h.
Referenced by GetTrackId().
|
protected |
Definition at line 146 of file PndEmcWaveform.h.
Referenced by GetActiveTime(), and GetWaveformLength().
|
staticprotected |
Definition at line 159 of file PndEmcWaveform.h.