#include <TGaussFitAnalysedPulse.h>
Public Member Functions | |
TGaussFitAnalysedPulse () | |
Needed by ROOT but not expected to be used. | |
TGaussFitAnalysedPulse (const IDs::source &sourceID, const TPulseIslandID &parentID, const TPulseIsland *parentTPI) | |
Construct a TGaussFitAnalysedPulse. | |
virtual | ~TGaussFitAnalysedPulse () |
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 | |
int | GetFitStatus () const |
double | GetChi2 () const |
double | GetGradient () const |
double | GetWidth () const |
Error_Getters | |
double | GetGradientErr () const |
double | GetWidthErr () const |
double | GetTimeErr () const |
double | GetPedestalErr () const |
double | GetAmplitudeErr () const |
Setters | |
void | SetTime (const double &val, const double &err) |
void | SetAmplitude (const double &val, const double &err) |
void | SetPedestal (const double &val, const double &err) |
void | SetGradient (const double &val, const double &err) |
void | SetWidth (const double &val, const double &err) |
void | SetChi2 (const double &val) |
void | SetFitStatus (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 (TGaussFitAnalysedPulse, 1) | |
Private Attributes | |
int | fStatus |
double | fChi2 |
double | fWidth |
double | fGradient |
double | fTimeErr |
double | fWidthErr |
double | fAmplitudeErr |
double | fPedestalErr |
double | fGradientErr |
Definition at line 7 of file TGaussFitAnalysedPulse.h.
TGaussFitAnalysedPulse::TGaussFitAnalysedPulse | ( | ) | [inline] |
Needed by ROOT but not expected to be used.
Definition at line 10 of file TGaussFitAnalysedPulse.h.
00010 :TAnalysedPulse(){};
TGaussFitAnalysedPulse::TGaussFitAnalysedPulse | ( | const IDs::source & | sourceID, | |
const TPulseIslandID & | parentID, | |||
const TPulseIsland * | parentTPI | |||
) | [inline] |
Construct a TGaussFitAnalysedPulse.
Same signature as for TAnalysedPulse so that MakeNewTAP can create these specialised TAPs
Definition at line 15 of file TGaussFitAnalysedPulse.h.
00016 : 00017 TAnalysedPulse(sourceID,parentID,parentTPI){}
virtual TGaussFitAnalysedPulse::~TGaussFitAnalysedPulse | ( | ) | [inline, virtual] |
Definition at line 20 of file TGaussFitAnalysedPulse.h.
TGaussFitAnalysedPulse::ClassDef | ( | TGaussFitAnalysedPulse | , | |
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 TGaussFitAnalysedPulse::Draw | ( | const TH1F * | tpi_pulse | ) | const [virtual] |
@brief overload the TAnalysedPulse::Draw method
Reimplemented from TAnalysedPulse.
Definition at line 6 of file TGaussFitAnalysedPulse.cpp.
References fGradient, fWidth, functions::gauss_lin(), TAnalysedPulse::GetAmplitude(), TAnalysedPulse::GetPedestal(), and TAnalysedPulse::GetTime().
00006 { 00007 if(tpi_pulse) { 00008 std::string name=tpi_pulse->GetName(); 00009 TF1* tap_pulse=new TF1((name+"_AP").c_str(),functions::gauss_lin,0,1000,5); 00010 // parameters: 00011 // 0: constant (pedestal) 00012 // 1: gradient 00013 // 2: Gauss amplitude 00014 // 3: Gauss mean 00015 // 4: Gauss width 00016 tap_pulse->SetParameters(GetPedestal(),fGradient,GetAmplitude(),GetTime(),fWidth); 00017 tap_pulse->Draw(); 00018 tap_pulse->Write(); 00019 } 00020 }
double TAnalysedPulse::GetAmplitude | ( | ) | const [inline, inherited] |
Definition at line 100 of file TAnalysedPulse.h.
References TAnalysedPulse::fAmplitude.
Referenced by TTemplateFitAnalysedPulse::Draw(), TTemplateConvolveAnalysedPulse::Draw(), Draw(), TTemplateFitAnalysedPulse::GetBinContent(), PulseViewer::GetParameterValue(), PlotTAP_selfCorrelation::PassesCutA(), TemplateFitAPGenerator::RefitWithTwo(), and TTemplateFitAnalysedPulse::SetAmplitudeScaleFactor().
00100 {return fAmplitude;};
double TGaussFitAnalysedPulse::GetAmplitudeErr | ( | ) | const [inline] |
Definition at line 36 of file TGaussFitAnalysedPulse.h.
References fAmplitudeErr.
00036 {return fAmplitudeErr;}
double TGaussFitAnalysedPulse::GetChi2 | ( | ) | const [inline] |
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;};
int TGaussFitAnalysedPulse::GetFitStatus | ( | ) | const [inline] |
double TGaussFitAnalysedPulse::GetGradient | ( | ) | const [inline] |
Definition at line 26 of file TGaussFitAnalysedPulse.h.
References fGradient.
00026 {return fGradient;}
double TGaussFitAnalysedPulse::GetGradientErr | ( | ) | const [inline] |
Definition at line 32 of file TGaussFitAnalysedPulse.h.
References fGradientErr.
00032 {return fGradientErr;}
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;};
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(), Draw(), TTemplateFitAnalysedPulse::GetBinContent(), PulseViewer::GetParameterValue(), and TemplateFitAPGenerator::RefitWithTwo().
00104 {return fPedestal;};
double TGaussFitAnalysedPulse::GetPedestalErr | ( | ) | const [inline] |
Definition at line 35 of file TGaussFitAnalysedPulse.h.
References fPedestalErr.
00035 {return fPedestalErr;}
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(), Draw(), TTemplateFitAnalysedPulse::GetBinContent(), PulseViewer::GetParameterValue(), TemplateFitAPGenerator::InitializeSecondPulse(), IsTimeOrdered(), MaxTimeDiffDPGenerator::ProcessPulses(), TemplateFitAPGenerator::RefitWithTwo(), and TTemplateFitAnalysedPulse::SetTimeOffset().
00101 {return fTime;};
double TGaussFitAnalysedPulse::GetTimeErr | ( | ) | const [inline] |
Definition at line 34 of file TGaussFitAnalysedPulse.h.
References fTimeErr.
00034 {return fTimeErr;}
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;};
double TGaussFitAnalysedPulse::GetWidth | ( | ) | const [inline] |
double TGaussFitAnalysedPulse::GetWidthErr | ( | ) | const [inline] |
Definition at line 33 of file TGaussFitAnalysedPulse.h.
References fWidthErr.
00033 {return fWidthErr;}
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 TGaussFitAnalysedPulse::SetAmplitude | ( | const double & | val, | |
const double & | err | |||
) | [inline] |
Definition at line 43 of file TGaussFitAnalysedPulse.h.
References fAmplitudeErr.
Referenced by GaussFitAPGenerator::ProcessPulses().
00043 {TAnalysedPulse::SetAmplitude(val); fAmplitudeErr=err;}
void TGaussFitAnalysedPulse::SetChi2 | ( | const double & | val | ) | [inline] |
Definition at line 47 of file TGaussFitAnalysedPulse.h.
References fChi2.
Referenced by GaussFitAPGenerator::ProcessPulses().
00047 {fChi2=val;}
void TAnalysedPulse::SetEnergy | ( | const double & | val | ) | [inline, inherited] |
Definition at line 123 of file TAnalysedPulse.h.
References TAnalysedPulse::fEnergy.
00123 { fEnergy=val;};
void TGaussFitAnalysedPulse::SetFitStatus | ( | const double & | val | ) | [inline] |
Definition at line 48 of file TGaussFitAnalysedPulse.h.
References fStatus.
Referenced by GaussFitAPGenerator::ProcessPulses().
00048 {fStatus=val;}
void TGaussFitAnalysedPulse::SetGradient | ( | const double & | val, | |
const double & | err | |||
) | [inline] |
Definition at line 45 of file TGaussFitAnalysedPulse.h.
References fGradient, and fGradientErr.
Referenced by GaussFitAPGenerator::ProcessPulses().
00045 {fGradient=val; fGradientErr=err;}
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 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 TGaussFitAnalysedPulse::SetPedestal | ( | const double & | val, | |
const double & | err | |||
) | [inline] |
Definition at line 44 of file TGaussFitAnalysedPulse.h.
References fPedestalErr.
Referenced by GaussFitAPGenerator::ProcessPulses().
00044 {TAnalysedPulse::SetPedestal(val); fPedestalErr=err;}
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 TGaussFitAnalysedPulse::SetTime | ( | const double & | val, | |
const double & | err | |||
) | [inline] |
Definition at line 42 of file TGaussFitAnalysedPulse.h.
References fTimeErr.
00042 {TAnalysedPulse::SetTime(val); fTimeErr=err;}
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;};
void TGaussFitAnalysedPulse::SetWidth | ( | const double & | val, | |
const double & | err | |||
) | [inline] |
Definition at line 46 of file TGaussFitAnalysedPulse.h.
References fWidth, and fWidthErr.
Referenced by GaussFitAPGenerator::ProcessPulses().
double TGaussFitAnalysedPulse::fAmplitudeErr [private] |
Definition at line 57 of file TGaussFitAnalysedPulse.h.
Referenced by GetAmplitudeErr(), and SetAmplitude().
double TGaussFitAnalysedPulse::fChi2 [private] |
Definition at line 56 of file TGaussFitAnalysedPulse.h.
double TGaussFitAnalysedPulse::fGradient [private] |
Definition at line 56 of file TGaussFitAnalysedPulse.h.
Referenced by Draw(), GetGradient(), and SetGradient().
double TGaussFitAnalysedPulse::fGradientErr [private] |
Definition at line 57 of file TGaussFitAnalysedPulse.h.
Referenced by GetGradientErr(), and SetGradient().
double TGaussFitAnalysedPulse::fPedestalErr [private] |
Definition at line 57 of file TGaussFitAnalysedPulse.h.
Referenced by GetPedestalErr(), and SetPedestal().
int TGaussFitAnalysedPulse::fStatus [private] |
Definition at line 55 of file TGaussFitAnalysedPulse.h.
Referenced by GetFitStatus(), and SetFitStatus().
double TGaussFitAnalysedPulse::fTimeErr [private] |
Definition at line 57 of file TGaussFitAnalysedPulse.h.
Referenced by GetTimeErr(), and SetTime().
double TGaussFitAnalysedPulse::fWidth [private] |
Definition at line 56 of file TGaussFitAnalysedPulse.h.
Referenced by Draw(), GetWidth(), and SetWidth().
double TGaussFitAnalysedPulse::fWidthErr [private] |
Definition at line 57 of file TGaussFitAnalysedPulse.h.
Referenced by GetWidthErr(), and SetWidth().