#include <TIntegralRatioAnalysedPulse.h>
Public Member Functions | |
TIntegralRatioAnalysedPulse () | |
Needed by ROOT but not expected to be used. | |
TIntegralRatioAnalysedPulse (const IDs::source &sourceID, const TPulseIslandID &parentID, const TPulseIsland *parentTPI) | |
Construct a TIntegralRatioAnalysedPulse. | |
virtual | ~TIntegralRatioAnalysedPulse () |
double | GetMean () const |
double | GetMin () const |
double | GetMax () const |
void | SetMean (double v) |
void | SetMin (double v) |
void | SetMax (double v) |
virtual void | Draw (const TH1F *tpi_pulse) const |
@brief overload the TAnalysedPulse::Draw method | |
virtual void | Copy (TObject &rhs) const |
void | Reset (Option_t *o="") |
Clear the TAP. This will probably not be used. | |
Getters | |
double | GetIntegralSmall () const |
double | GetIntegralRatio () const |
Setters | |
void | SetIntegralSmall (const double &val) |
void | SetIntegralRatio (const double &val) |
Getters | |
TPulseIslandID | GetParentID () const |
int | GetTPILength () const |
double | GetAmplitude () const |
double | GetTime () const |
double | GetIntegral () const |
double | GetEnergy () const |
double | GetPedestal () const |
double | GetTriggerTime () const |
const IDs::source & | GetSource () const |
Setters | |
void | SetParentID (const TPulseIslandID &val) |
void | SetTPILength (const int &val) |
void | SetAmplitude (const double &val) |
void | SetTime (const double &val) |
void | SetIntegral (const double &val) |
void | SetEnergy (const double &val) |
void | SetPedestal (const double &val) |
void | SetTriggerTime (const double &val) |
void | SetParentTPIProperties (const TPulseIslandID &id, const TPulseIsland *parent) |
Sanity | |
bool | IsParentIDSet () const |
bool | IsTPILengthSet () const |
bool | IsAmplitudeSet () const |
bool | IsTimeSet () const |
bool | IsIntegralSet () const |
bool | IsEnergySet () const |
bool | IsPedestalSet () const |
bool | IsTriggerTimeSet () const |
Private Member Functions | |
ClassDef (TIntegralRatioAnalysedPulse, 1) | |
Private Attributes | |
double | fIntegralSmall |
double | fIntegralRatio |
double | fMean |
double | fMin |
double | fMax |
Definition at line 7 of file TIntegralRatioAnalysedPulse.h.
TIntegralRatioAnalysedPulse::TIntegralRatioAnalysedPulse | ( | ) | [inline] |
Needed by ROOT but not expected to be used.
Definition at line 10 of file TIntegralRatioAnalysedPulse.h.
00010 :TAnalysedPulse(){};
TIntegralRatioAnalysedPulse::TIntegralRatioAnalysedPulse | ( | const IDs::source & | sourceID, | |
const TPulseIslandID & | parentID, | |||
const TPulseIsland * | parentTPI | |||
) | [inline] |
Construct a TIntegralRatioAnalysedPulse.
Same signature as for TAnalysedPulse so that MakeNewTAP can create these specialised TAPs
Definition at line 15 of file TIntegralRatioAnalysedPulse.h.
00016 : 00017 TAnalysedPulse(sourceID,parentID,parentTPI){}
virtual TIntegralRatioAnalysedPulse::~TIntegralRatioAnalysedPulse | ( | ) | [inline, virtual] |
Definition at line 20 of file TIntegralRatioAnalysedPulse.h.
TIntegralRatioAnalysedPulse::ClassDef | ( | TIntegralRatioAnalysedPulse | , | |
1 | ||||
) | [private] |
virtual void TAnalysedPulse::Copy | ( | TObject & | rhs | ) | const [inline, virtual, inherited] |
Reimplemented in TTemplateConvolveAnalysedPulse.
Definition at line 40 of file TAnalysedPulse.h.
References TAnalysedPulse::fAmplitude, TAnalysedPulse::fEnergy, TAnalysedPulse::fIntegral, TAnalysedPulse::fParentID, TAnalysedPulse::fPedestal, TAnalysedPulse::fSource, TAnalysedPulse::fTime, TAnalysedPulse::fTPILength, and TAnalysedPulse::fTriggerTime.
00040 { 00041 TObject::Copy(rhs); 00042 if(rhs.InheritsFrom(Class())){ 00043 TAnalysedPulse* tap=static_cast<TAnalysedPulse*>(&rhs); 00044 tap->fParentID=fParentID; 00045 tap->fTPILength=fTPILength; 00046 tap->fAmplitude=fAmplitude; 00047 tap->fTime=fTime; 00048 tap->fIntegral=fIntegral; 00049 tap->fEnergy=fEnergy; 00050 tap->fPedestal=fPedestal; 00051 tap->fTriggerTime=fTriggerTime; 00052 tap->fSource=fSource; 00053 } 00054 }
void TIntegralRatioAnalysedPulse::Draw | ( | const TH1F * | tpi_pulse | ) | const [virtual] |
@brief overload the TAnalysedPulse::Draw method
Reimplemented from TAnalysedPulse.
Definition at line 6 of file TIntegralRatioAnalysedPulse.cpp.
double TAnalysedPulse::GetAmplitude | ( | ) | const [inline, inherited] |
Definition at line 100 of file TAnalysedPulse.h.
References TAnalysedPulse::fAmplitude.
Referenced by TTemplateFitAnalysedPulse::Draw(), TTemplateConvolveAnalysedPulse::Draw(), TGaussFitAnalysedPulse::Draw(), TTemplateFitAnalysedPulse::GetBinContent(), PulseViewer::GetParameterValue(), PlotTAP_selfCorrelation::PassesCutA(), TemplateFitAPGenerator::RefitWithTwo(), and TTemplateFitAnalysedPulse::SetAmplitudeScaleFactor().
00100 {return fAmplitude;};
double TAnalysedPulse::GetEnergy | ( | ) | const [inline, inherited] |
Definition at line 103 of file TAnalysedPulse.h.
References TAnalysedPulse::fEnergy.
Referenced by PulseViewer::GetParameterValue(), and TME_Al50_EvdE::ProcessEntry().
00103 {return fEnergy;};
double TAnalysedPulse::GetIntegral | ( | ) | const [inline, inherited] |
Definition at line 102 of file TAnalysedPulse.h.
References TAnalysedPulse::fIntegral.
Referenced by PulseViewer::GetParameterValue(), and PlotIntegralRatios::ProcessEntry().
00102 {return fIntegral;};
double TIntegralRatioAnalysedPulse::GetIntegralRatio | ( | ) | const [inline] |
Definition at line 25 of file TIntegralRatioAnalysedPulse.h.
References fIntegralRatio.
Referenced by PulseViewer::GetParameterValue(), and PlotIntegralRatios::ProcessEntry().
00025 {return fIntegralRatio;}
double TIntegralRatioAnalysedPulse::GetIntegralSmall | ( | ) | const [inline] |
Definition at line 24 of file TIntegralRatioAnalysedPulse.h.
References fIntegralSmall.
Referenced by PulseViewer::GetParameterValue(), and PlotIntegralRatios::ProcessEntry().
00024 {return fIntegralSmall;}
double TIntegralRatioAnalysedPulse::GetMax | ( | ) | const [inline] |
double TIntegralRatioAnalysedPulse::GetMean | ( | ) | const [inline] |
Definition at line 35 of file TIntegralRatioAnalysedPulse.h.
References fMean.
00035 {return fMean;}
double TIntegralRatioAnalysedPulse::GetMin | ( | ) | const [inline] |
TPulseIslandID TAnalysedPulse::GetParentID | ( | ) | const [inline, inherited] |
Definition at line 98 of file TAnalysedPulse.h.
References TAnalysedPulse::fParentID.
Referenced by ExportPulse::AddToExportList(), TTemplateFitAnalysedPulse::GetHisto(), and TemplateFitAPGenerator::RefitWithTwo().
00098 {return fParentID;};
double TAnalysedPulse::GetPedestal | ( | ) | const [inline, inherited] |
Definition at line 104 of file TAnalysedPulse.h.
References TAnalysedPulse::fPedestal.
Referenced by TTemplateConvolveAnalysedPulse::Draw(), TGaussFitAnalysedPulse::Draw(), TTemplateFitAnalysedPulse::GetBinContent(), PulseViewer::GetParameterValue(), and TemplateFitAPGenerator::RefitWithTwo().
00104 {return fPedestal;};
const IDs::source& TAnalysedPulse::GetSource | ( | ) | const [inline, inherited] |
Definition at line 106 of file TAnalysedPulse.h.
References TAnalysedPulse::fSource, and FlyWeight< ValueType, UniqueTag >::GetValue().
Referenced by ExportPulse::AddToExportList(), TTemplateConvolveAnalysedPulse::Draw(), TTemplateFitAnalysedPulse::GetHisto(), MaxTimeDiffDPGenerator::ProcessPulses(), and TDetectorPulse::TDetectorPulse().
double TAnalysedPulse::GetTime | ( | ) | const [inline, inherited] |
Definition at line 101 of file TAnalysedPulse.h.
References TAnalysedPulse::fTime.
Referenced by TTemplateFitAnalysedPulse::Draw(), TTemplateConvolveAnalysedPulse::Draw(), TGaussFitAnalysedPulse::Draw(), TTemplateFitAnalysedPulse::GetBinContent(), PulseViewer::GetParameterValue(), TemplateFitAPGenerator::InitializeSecondPulse(), IsTimeOrdered(), MaxTimeDiffDPGenerator::ProcessPulses(), TemplateFitAPGenerator::RefitWithTwo(), and TTemplateFitAnalysedPulse::SetTimeOffset().
00101 {return fTime;};
int TAnalysedPulse::GetTPILength | ( | ) | const [inline, inherited] |
Definition at line 99 of file TAnalysedPulse.h.
References TAnalysedPulse::fTPILength.
Referenced by TTemplateFitAnalysedPulse::GetHisto(), and PulseViewer::GetParameterValue().
00099 {return fTPILength;};
double TAnalysedPulse::GetTriggerTime | ( | ) | const [inline, inherited] |
Definition at line 105 of file TAnalysedPulse.h.
References TAnalysedPulse::fTriggerTime.
Referenced by PulseViewer::GetParameterValue().
00105 {return fTriggerTime;};
bool TAnalysedPulse::IsAmplitudeSet | ( | ) | const [inline, inherited] |
Definition at line 135 of file TAnalysedPulse.h.
References TAnalysedPulse::fAmplitude, and TAnalysedPulse::fDefaultValue.
00135 {return fAmplitude!=fDefaultValue;};
bool TAnalysedPulse::IsEnergySet | ( | ) | const [inline, inherited] |
Definition at line 138 of file TAnalysedPulse.h.
References TAnalysedPulse::fDefaultValue, and TAnalysedPulse::fEnergy.
00138 {return fEnergy!=fDefaultValue;};
bool TAnalysedPulse::IsIntegralSet | ( | ) | const [inline, inherited] |
Definition at line 137 of file TAnalysedPulse.h.
References TAnalysedPulse::fDefaultValue, and TAnalysedPulse::fIntegral.
00137 {return fIntegral!=fDefaultValue;};
bool TAnalysedPulse::IsParentIDSet | ( | ) | const [inline, inherited] |
Definition at line 133 of file TAnalysedPulse.h.
References TAnalysedPulse::fDefaultValue, and TAnalysedPulse::fParentID.
00133 {return fParentID!=fDefaultValue;};
bool TAnalysedPulse::IsPedestalSet | ( | ) | const [inline, inherited] |
Definition at line 139 of file TAnalysedPulse.h.
References TAnalysedPulse::fDefaultValue, and TAnalysedPulse::fPedestal.
00139 {return fPedestal!=fDefaultValue;};
bool TAnalysedPulse::IsTimeSet | ( | ) | const [inline, inherited] |
Definition at line 136 of file TAnalysedPulse.h.
References TAnalysedPulse::fDefaultValue, and TAnalysedPulse::fTime.
00136 {return fTime!=fDefaultValue;};
bool TAnalysedPulse::IsTPILengthSet | ( | ) | const [inline, inherited] |
Definition at line 134 of file TAnalysedPulse.h.
References TAnalysedPulse::fDefaultValue, and TAnalysedPulse::fTPILength.
00134 {return fTPILength!=fDefaultValue;};
bool TAnalysedPulse::IsTriggerTimeSet | ( | ) | const [inline, inherited] |
Definition at line 140 of file TAnalysedPulse.h.
References TAnalysedPulse::fDefaultValue, and TAnalysedPulse::fTriggerTime.
00140 {return fTriggerTime!=fDefaultValue;};
void TAnalysedPulse::Reset | ( | Option_t * | o = "" |
) | [inherited] |
Clear the TAP. This will probably not be used.
Definition at line 42 of file TAnalysedPulse.cpp.
References TAnalysedPulse::fAmplitude, TAnalysedPulse::fDefaultValue, TAnalysedPulse::fEnergy, TAnalysedPulse::fIntegral, TAnalysedPulse::fParentID, TAnalysedPulse::fPedestal, TAnalysedPulse::fTime, TAnalysedPulse::fTPILength, and TAnalysedPulse::fTriggerTime.
00042 { 00043 fParentID=fDefaultValue; 00044 fTPILength=fDefaultValue; 00045 fAmplitude=fDefaultValue; 00046 fTime=fDefaultValue; 00047 fIntegral=fDefaultValue; 00048 fEnergy=fDefaultValue; 00049 fPedestal=fDefaultValue; 00050 fTriggerTime=fDefaultValue; 00051 }
void TAnalysedPulse::SetAmplitude | ( | const double & | val | ) | [inline, inherited] |
Definition at line 120 of file TAnalysedPulse.h.
References TAnalysedPulse::fAmplitude.
Referenced by FirstCompleteAPGenerator::AnalyseOneTpi(), TemplateConvolveAPGenerator::ProcessPulses(), MaxBinAPGenerator::ProcessPulses(), IntegralRatioAPGenerator::ProcessPulses(), and CFTimeMBAmpAPGenerator::ProcessPulses().
00120 { fAmplitude=val;};
void TAnalysedPulse::SetEnergy | ( | const double & | val | ) | [inline, inherited] |
Definition at line 123 of file TAnalysedPulse.h.
References TAnalysedPulse::fEnergy.
00123 { fEnergy=val;};
void TAnalysedPulse::SetIntegral | ( | const double & | val | ) | [inline, inherited] |
Definition at line 122 of file TAnalysedPulse.h.
References TAnalysedPulse::fIntegral.
Referenced by FirstCompleteAPGenerator::AnalyseOneTpi(), TemplateFitAPGenerator::ProcessPulses(), TemplateConvolveAPGenerator::ProcessPulses(), SimpIntAPGenerator::ProcessPulses(), and IntegralRatioAPGenerator::ProcessPulses().
00122 { fIntegral=val;};
void TIntegralRatioAnalysedPulse::SetIntegralRatio | ( | const double & | val | ) | [inline] |
Definition at line 32 of file TIntegralRatioAnalysedPulse.h.
References fIntegralRatio.
Referenced by IntegralRatioAPGenerator::ProcessPulses().
00032 {fIntegralRatio=val;}
void TIntegralRatioAnalysedPulse::SetIntegralSmall | ( | const double & | val | ) | [inline] |
Definition at line 31 of file TIntegralRatioAnalysedPulse.h.
References fIntegralSmall.
Referenced by IntegralRatioAPGenerator::ProcessPulses().
00031 {fIntegralSmall=val;}
void TIntegralRatioAnalysedPulse::SetMax | ( | double | v | ) | [inline] |
void TIntegralRatioAnalysedPulse::SetMean | ( | double | v | ) | [inline] |
void TIntegralRatioAnalysedPulse::SetMin | ( | double | v | ) | [inline] |
void TAnalysedPulse::SetParentID | ( | const TPulseIslandID & | val | ) | [inline, inherited] |
Definition at line 118 of file TAnalysedPulse.h.
References TAnalysedPulse::fParentID.
Referenced by TAnalysedPulse::SetParentTPIProperties().
00118 { fParentID=val;};
void TAnalysedPulse::SetParentTPIProperties | ( | const TPulseIslandID & | id, | |
const TPulseIsland * | parent | |||
) | [inherited] |
Definition at line 65 of file TAnalysedPulse.cpp.
References TPulseIsland::GetClockTickInNs(), TPulseIsland::GetPulseLength(), TPulseIsland::GetTimeStamp(), TAnalysedPulse::SetParentID(), TAnalysedPulse::SetTPILength(), and TAnalysedPulse::SetTriggerTime().
Referenced by TAnalysedPulse::TAnalysedPulse().
00066 { 00067 SetParentID(id); 00068 if(!pulse) { 00069 std::cerr<<"NULL pointer to TPulseIsland passed as parent for TAnalysedPulse."<<std::endl; 00070 return; 00071 } 00072 SetTPILength(pulse->GetPulseLength()); 00073 SetTriggerTime(pulse->GetTimeStamp()*pulse->GetClockTickInNs()); 00074 }
void TAnalysedPulse::SetPedestal | ( | const double & | val | ) | [inline, inherited] |
Definition at line 124 of file TAnalysedPulse.h.
References TAnalysedPulse::fPedestal.
Referenced by TemplateConvolveAPGenerator::ProcessPulses().
00124 { fPedestal=val;};
void TAnalysedPulse::SetTime | ( | const double & | val | ) | [inline, inherited] |
Definition at line 121 of file TAnalysedPulse.h.
References TAnalysedPulse::fTime.
Referenced by FirstCompleteAPGenerator::AnalyseOneTpi(), TemplateConvolveAPGenerator::ProcessPulses(), MaxBinAPGenerator::ProcessPulses(), IntegralRatioAPGenerator::ProcessPulses(), CFTimeMBAmpAPGenerator::ProcessPulses(), and CFTimeAPGenerator::ProcessPulses().
00121 { fTime=val;};
void TAnalysedPulse::SetTPILength | ( | const int & | val | ) | [inline, inherited] |
Definition at line 119 of file TAnalysedPulse.h.
References TAnalysedPulse::fTPILength.
Referenced by TAnalysedPulse::SetParentTPIProperties().
00119 { fTPILength=val;};
void TAnalysedPulse::SetTriggerTime | ( | const double & | val | ) | [inline, inherited] |
Definition at line 125 of file TAnalysedPulse.h.
References TAnalysedPulse::fTriggerTime.
Referenced by TAnalysedPulse::SetParentTPIProperties().
00125 { fTriggerTime=val;};
double TIntegralRatioAnalysedPulse::fIntegralRatio [private] |
Definition at line 48 of file TIntegralRatioAnalysedPulse.h.
Referenced by GetIntegralRatio(), and SetIntegralRatio().
double TIntegralRatioAnalysedPulse::fIntegralSmall [private] |
Definition at line 47 of file TIntegralRatioAnalysedPulse.h.
Referenced by GetIntegralSmall(), and SetIntegralSmall().
double TIntegralRatioAnalysedPulse::fMax [private] |
Definition at line 52 of file TIntegralRatioAnalysedPulse.h.
double TIntegralRatioAnalysedPulse::fMean [private] |
Definition at line 50 of file TIntegralRatioAnalysedPulse.h.
double TIntegralRatioAnalysedPulse::fMin [private] |
Definition at line 51 of file TIntegralRatioAnalysedPulse.h.