TGaussFitAnalysedPulse Class Reference

#include <TGaussFitAnalysedPulse.h>

Inheritance diagram for TGaussFitAnalysedPulse:
TAnalysedPulse TObject

List of all members.

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

Set both the value and error for each field



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::sourceGetSource () const
Setters

The TAP generators will set whatever TAP values it must through these methods. Not all need be set; the default values are obviously unphysical and several Sanity methods are provided to check if a value was set later in the analysis.



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

Detailed Description

Definition at line 7 of file TGaussFitAnalysedPulse.h.


Constructor & Destructor Documentation

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.

00020 {};


Member Function Documentation

TGaussFitAnalysedPulse::ClassDef ( TGaussFitAnalysedPulse  ,
 
) [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]
double TGaussFitAnalysedPulse::GetAmplitudeErr (  )  const [inline]

Definition at line 36 of file TGaussFitAnalysedPulse.h.

References fAmplitudeErr.

00036 {return fAmplitudeErr;}

double TGaussFitAnalysedPulse::GetChi2 (  )  const [inline]

Definition at line 25 of file TGaussFitAnalysedPulse.h.

References fChi2.

00025 {return fChi2;}

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]

Definition at line 24 of file TGaussFitAnalysedPulse.h.

References fStatus.

00024 {return fStatus;}

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]
double TAnalysedPulse::GetPedestal (  )  const [inline, inherited]
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]
double TAnalysedPulse::GetTime (  )  const [inline, inherited]
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]

Definition at line 27 of file TGaussFitAnalysedPulse.h.

References fWidth.

00027 {return fWidth;}

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]
void TAnalysedPulse::SetAmplitude ( const double &  val  )  [inline, inherited]
void TGaussFitAnalysedPulse::SetAmplitude ( const double &  val,
const double &  err 
) [inline]

Definition at line 43 of file TGaussFitAnalysedPulse.h.

References fAmplitudeErr.

Referenced by GaussFitAPGenerator::ProcessPulses().

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]
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().

void TAnalysedPulse::SetTime ( const double &  val  )  [inline, inherited]
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().

00046 {fWidth=val; fWidthErr=err;}


Member Data Documentation

Definition at line 57 of file TGaussFitAnalysedPulse.h.

Referenced by GetAmplitudeErr(), and SetAmplitude().

Definition at line 56 of file TGaussFitAnalysedPulse.h.

Referenced by GetChi2(), and SetChi2().

Definition at line 56 of file TGaussFitAnalysedPulse.h.

Referenced by Draw(), GetGradient(), and SetGradient().

Definition at line 57 of file TGaussFitAnalysedPulse.h.

Referenced by GetGradientErr(), and SetGradient().

Definition at line 57 of file TGaussFitAnalysedPulse.h.

Referenced by GetPedestalErr(), and SetPedestal().

Definition at line 55 of file TGaussFitAnalysedPulse.h.

Referenced by GetFitStatus(), and SetFitStatus().

Definition at line 57 of file TGaussFitAnalysedPulse.h.

Referenced by GetTimeErr(), and SetTime().

Definition at line 56 of file TGaussFitAnalysedPulse.h.

Referenced by Draw(), GetWidth(), and SetWidth().

Definition at line 57 of file TGaussFitAnalysedPulse.h.

Referenced by GetWidthErr(), and SetWidth().


The documentation for this class was generated from the following files:

Generated on 15 Jun 2016 for AlcapDAQ by  doxygen 1.6.1