TIntegralRatioAnalysedPulse Class Reference

#include <TIntegralRatioAnalysedPulse.h>

Inheritance diagram for TIntegralRatioAnalysedPulse:
TAnalysedPulse TObject

List of all members.

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

Set both the value and error for each field



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::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 (TIntegralRatioAnalysedPulse, 1)

Private Attributes

double fIntegralSmall
double fIntegralRatio
double fMean
double fMin
double fMax

Detailed Description

Definition at line 7 of file TIntegralRatioAnalysedPulse.h.


Constructor & Destructor Documentation

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.

00020 {};


Member Function Documentation

TIntegralRatioAnalysedPulse::ClassDef ( TIntegralRatioAnalysedPulse  ,
 
) [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.

00006                                                                 {
00007 }

double TAnalysedPulse::GetAmplitude (  )  const [inline, inherited]
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]
double TIntegralRatioAnalysedPulse::GetIntegralSmall (  )  const [inline]
double TIntegralRatioAnalysedPulse::GetMax (  )  const [inline]

Definition at line 37 of file TIntegralRatioAnalysedPulse.h.

References fMax.

00037 {return fMax;}

double TIntegralRatioAnalysedPulse::GetMean (  )  const [inline]

Definition at line 35 of file TIntegralRatioAnalysedPulse.h.

References fMean.

00035 {return fMean;}

double TIntegralRatioAnalysedPulse::GetMin (  )  const [inline]

Definition at line 36 of file TIntegralRatioAnalysedPulse.h.

References fMin.

00036 {return fMin;}

TPulseIslandID TAnalysedPulse::GetParentID (  )  const [inline, inherited]
double TAnalysedPulse::GetPedestal (  )  const [inline, inherited]
const IDs::source& TAnalysedPulse::GetSource (  )  const [inline, inherited]
double TAnalysedPulse::GetTime (  )  const [inline, inherited]
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]
void TAnalysedPulse::SetAmplitude ( const double &  val  )  [inline, inherited]
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]
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]

Definition at line 41 of file TIntegralRatioAnalysedPulse.h.

References fMax.

00041 {fMax =v;}

void TIntegralRatioAnalysedPulse::SetMean ( double  v  )  [inline]

Definition at line 39 of file TIntegralRatioAnalysedPulse.h.

References fMean.

00039 {fMean=v;}

void TIntegralRatioAnalysedPulse::SetMin ( double  v  )  [inline]

Definition at line 40 of file TIntegralRatioAnalysedPulse.h.

References fMin.

00040 {fMin =v;}

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]
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;};


Member Data Documentation

Definition at line 48 of file TIntegralRatioAnalysedPulse.h.

Referenced by GetIntegralRatio(), and SetIntegralRatio().

Definition at line 47 of file TIntegralRatioAnalysedPulse.h.

Referenced by GetIntegralSmall(), and SetIntegralSmall().

Definition at line 52 of file TIntegralRatioAnalysedPulse.h.

Referenced by GetMax(), and SetMax().

Definition at line 50 of file TIntegralRatioAnalysedPulse.h.

Referenced by GetMean(), and SetMean().

Definition at line 51 of file TIntegralRatioAnalysedPulse.h.

Referenced by GetMin(), and SetMin().


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

Generated on 15 Jun 2016 for AlcapDAQ by  doxygen 1.6.1