GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TCFDCal Class Reference

Detailed Description

Definition at line 10 of file TCFDCal.h.

Public Member Functions

 TCFDCal ()=default
 
 TCFDCal (const char *name, const char *title)
 
 TCFDCal (const TCFDCal &)=default
 
 TCFDCal (TCFDCal &&) noexcept=default
 
 ~TCFDCal ()=default
 
void AddParameter (Double_t param)
 
void Clear (Option_t *opt="") override
 
void Copy (TObject &obj) const override
 
TChannelGetChannel () const
 
virtual TF1 * GetFitFunction () const
 
TH1 * GetHist () const
 
virtual TNucleusGetNucleus () const
 
Double_t GetParameter (size_t parameter) const override
 
std::vector< Double_t > GetParameters () const override
 
Bool_t IsGroupable () const override
 
TCFDCaloperator= (const TCFDCal &)=default
 
TCFDCaloperator= (TCFDCal &&) noexcept=default
 
void Print (Option_t *opt="") const override
 
virtual void ReadFromChannel ()
 
Bool_t SetChannel (TChannel *chan)
 
Bool_t SetChannel (UInt_t chanNum)
 
virtual void SetFitFunction (TF1 *func)
 
virtual void SetHist (TH1 *hist)
 
virtual void SetNucleus (TNucleus *nuc, Option_t *opt="")
 
void SetParameter (Int_t idx, Double_t param)
 
void SetParameters (std::vector< Double_t > paramvec)
 
virtual void WriteToAllChannels (const std::string &mnemonic="")
 
void WriteToChannel () const override
 

Protected Member Functions

void InitTCal ()
 

Private Attributes

TRef fChan {nullptr}
 
TF1 * fFitFunc {nullptr}
 
TH1 * fHist {nullptr}
 
TNucleusfNuc {nullptr}
 
std::vector< Double_t > fParameters
 
+ Inheritance diagram for TCFDCal:
+ Collaboration diagram for TCFDCal:

Constructor & Destructor Documentation

◆ TCFDCal() [1/4]

TCFDCal::TCFDCal ( )
default

◆ TCFDCal() [2/4]

TCFDCal::TCFDCal ( const char * name,
const char * title )
inline

Definition at line 13 of file TCFDCal.h.

◆ TCFDCal() [3/4]

TCFDCal::TCFDCal ( const TCFDCal & )
default

◆ TCFDCal() [4/4]

TCFDCal::TCFDCal ( TCFDCal && )
defaultnoexcept

◆ ~TCFDCal()

TCFDCal::~TCFDCal ( )
default

Member Function Documentation

◆ AddParameter()

void TCFDCal::AddParameter ( Double_t param)

Definition at line 26 of file TCFDCal.cxx.

References fParameters.

◆ Clear()

void TCFDCal::Clear ( Option_t * opt = "")
override

Definition at line 5 of file TCFDCal.cxx.

References TCal::Clear(), and fParameters.

◆ Copy()

void TCal::Copy ( TObject & obj) const
overrideinherited

Copies the TCal.

Definition at line 37 of file TCal.cxx.

References TCal::fChan, TCal::fFitFunc, and TCal::fNuc.

Referenced by TCal::TCal(), TEfficiencyCal::Copy(), and TGainMatch::Copy().

◆ GetChannel()

TChannel * TCal::GetChannel ( ) const
inherited

◆ GetFitFunction()

virtual TF1 * TCal::GetFitFunction ( ) const
inlinevirtualinherited

◆ GetHist()

TH1 * TCal::GetHist ( ) const
inlineinherited

Definition at line 74 of file TCal.h.

References TCal::fHist.

◆ GetNucleus()

virtual TNucleus * TCal::GetNucleus ( ) const
inlinevirtualinherited

◆ GetParameter()

Double_t TCFDCal::GetParameter ( size_t parameter) const
overridevirtual

Reimplemented from TCal.

Definition at line 71 of file TCFDCal.cxx.

References fParameters.

◆ GetParameters()

std::vector< Double_t > TCFDCal::GetParameters ( ) const
overridevirtual

Reimplemented from TCal.

Definition at line 62 of file TCFDCal.cxx.

References fParameters.

◆ InitTCal()

void TCal::InitTCal ( )
protectedinherited

Initiallizes the TCal.

Definition at line 172 of file TCal.cxx.

References TCal::Clear(), TCal::fChan, TCal::fFitFunc, TCal::fHist, and TCal::fNuc.

Referenced by TCal::TCal(), TCal::TCal(), and TCal::TCal().

◆ IsGroupable()

Bool_t TCFDCal::IsGroupable ( ) const
inlineoverridevirtual

Implements TCal.

Definition at line 21 of file TCFDCal.h.

◆ operator=() [1/2]

TCFDCal & TCFDCal::operator= ( const TCFDCal & )
default

◆ operator=() [2/2]

TCFDCal & TCFDCal::operator= ( TCFDCal && )
defaultnoexcept

◆ Print()

void TCFDCal::Print ( Option_t * opt = "") const
override

Definition at line 49 of file TCFDCal.cxx.

References fParameters, TCal::GetChannel(), and TChannel::GetNumber().

◆ ReadFromChannel()

void TCFDCal::ReadFromChannel ( )
virtual

Definition at line 40 of file TCFDCal.cxx.

References fParameters, TChannel::GetCFDCoeff(), and TCal::GetChannel().

◆ SetChannel() [1/2]

Bool_t TCal::SetChannel ( TChannel * chan)
inherited

◆ SetChannel() [2/2]

Bool_t TCal::SetChannel ( UInt_t chanNum)
inherited

Sets the channel for the calibration to the channel number channum. Returns 0 if the channel does not exist

Definition at line 109 of file TCal.cxx.

References TChannel::GetChannelByNumber(), and TCal::SetChannel().

◆ SetFitFunction()

virtual void TCal::SetFitFunction ( TF1 * func)
inlinevirtualinherited

◆ SetHist()

void TCal::SetHist ( TH1 * hist)
virtualinherited

Sets this histogram pointed to. TCal does NOT take ownership so you cannot delete this histogram as long as you want to access the hist in the TCal/write it out. I will add this functionality if I get annoyed enough with the way it is.

Reimplemented in TGainMatch.

Definition at line 129 of file TCal.cxx.

References TCal::fHist, and hist.

◆ SetNucleus()

void TCal::SetNucleus ( TNucleus * nuc,
Option_t * opt = "" )
virtualinherited

Sets the nucleus to be calibrated against

Reimplemented in TEnergyCal, and TGainMatch.

Definition at line 24 of file TCal.cxx.

References TCal::fNuc.

Referenced by TEnergyCal::SetNucleus().

◆ SetParameter()

void TCFDCal::SetParameter ( Int_t idx,
Double_t param )

Definition at line 36 of file TCFDCal.cxx.

◆ SetParameters()

void TCFDCal::SetParameters ( std::vector< Double_t > paramvec)

Definition at line 31 of file TCFDCal.cxx.

References fParameters.

◆ WriteToAllChannels()

void TCal::WriteToAllChannels ( const std::string & mnemonic = "")
virtualinherited

Writes this calibration to all channels in the current TChannel Map

Definition at line 63 of file TCal.cxx.

References TCal::GetChannel(), TChannel::GetChannelMap(), TCal::SetChannel(), and TCal::WriteToChannel().

◆ WriteToChannel()

void TCFDCal::WriteToChannel ( ) const
overridevirtual

Member Data Documentation

◆ fChan

TRef TCal::fChan {nullptr}
privateinherited

This points at the TChannel.

Definition at line 82 of file TCal.h.

Referenced by TCal::Clear(), TCal::Copy(), TCal::GetChannel(), TCal::InitTCal(), and TCal::SetChannel().

◆ fFitFunc

TF1* TCal::fFitFunc {nullptr}
privateinherited

Fit function representing calibration.

Definition at line 83 of file TCal.h.

Referenced by TCal::Copy(), TCal::GetFitFunction(), TCal::InitTCal(), TCal::Print(), and TCal::SetFitFunction().

◆ fHist

TH1* TCal::fHist {nullptr}
privateinherited

Histogram that was fit by the TPeak.

Definition at line 84 of file TCal.h.

Referenced by TCal::GetHist(), TCal::InitTCal(), and TCal::SetHist().

◆ fNuc

TNucleus* TCal::fNuc {nullptr}
privateinherited

Nucleus that we are calibrating against.

Definition at line 85 of file TCal.h.

Referenced by TCal::Clear(), TCal::Copy(), TCal::GetNucleus(), TCal::InitTCal(), and TCal::SetNucleus().

◆ fParameters

std::vector<Double_t> TCFDCal::fParameters
private