Definition at line 12 of file TEfficiencyCal.h.
Public Member Functions | |
TEfficiencyCal () | |
TEfficiencyCal (const char *name, const char *title) | |
TEfficiencyCal (const TEfficiencyCal ©) | |
~TEfficiencyCal () override | |
void | AddPoint (Double_t energy, Double_t area, Double_t dEnergy=0.0, Double_t dArea=0.0) |
void | AddPoint (TPeak *peak) |
void | Clear (Option_t *opt="") override |
void | Copy (TObject &obj) const override |
TChannel * | GetChannel () const |
virtual TF1 * | GetFitFunction () const |
TH1 * | GetHist () const |
virtual TNucleus * | GetNucleus () const |
virtual Double_t | GetParameter (size_t parameter) const |
virtual std::vector< Double_t > | GetParameters () const |
Bool_t | IsGroupable () const override |
void | Print (Option_t *opt="") const override |
void | ScaleGraph (Double_t scaleFactor) |
Bool_t | SetChannel (const TChannel *chan) |
Bool_t | SetChannel (UInt_t chanNum) |
virtual void | SetFitFunction (const TF1 *func) |
virtual void | SetHist (TH1 *hist) |
virtual void | SetNucleus (TNucleus *nuc, Option_t *opt="") |
virtual void | WriteToAllChannels (const std::string &mnemonic="") |
virtual void | WriteToChannel () const |
Protected Member Functions | |
void | InitTCal () |
Private Attributes | |
Double_t | fScaleFactor {1.} |
#include <TEfficiencyCal.h>
TEfficiencyCal::TEfficiencyCal | ( | ) |
Definition at line 7 of file TEfficiencyCal.cxx.
|
inline |
Definition at line 15 of file TEfficiencyCal.h.
|
overridedefault |
TEfficiencyCal::TEfficiencyCal | ( | const TEfficiencyCal & | copy | ) |
Definition at line 13 of file TEfficiencyCal.cxx.
References Copy().
void TEfficiencyCal::AddPoint | ( | Double_t | energy, |
Double_t | area, | ||
Double_t | dEnergy = 0.0 , |
||
Double_t | dArea = 0.0 |
||
) |
Definition at line 48 of file TEfficiencyCal.cxx.
References TCal::GetNucleus().
Referenced by AddPoint().
void TEfficiencyCal::AddPoint | ( | TPeak * | peak | ) |
Definition at line 39 of file TEfficiencyCal.cxx.
References AddPoint(), TPeak::GetArea(), TPeak::GetAreaErr(), TPeak::GetCentroid(), and TPeak::GetCentroidErr().
|
override |
Definition at line 74 of file TEfficiencyCal.cxx.
References TCal::Clear(), and fScaleFactor.
|
override |
Definition at line 18 of file TEfficiencyCal.cxx.
References TCal::Copy(), and fScaleFactor.
Referenced by TEfficiencyCal().
|
inherited |
Gets the channel being pointed to by the TCal. Returns 0 if no channel is set.
Definition at line 130 of file TCal.cxx.
References TCal::fChan.
Referenced by TCalManager::AddToManager(), TTimeCal::Print(), TCFDCal::Print(), TCal::Print(), TTimeCal::ReadFromChannel(), TCFDCal::ReadFromChannel(), TCal::WriteToAllChannels(), TCFDCal::WriteToChannel(), TTimeCal::WriteToChannel(), TEnergyCal::WriteToChannel(), and TGainMatch::WriteToChannel().
|
inlinevirtualinherited |
Definition at line 58 of file TCal.h.
References TCal::fFitFunc.
Referenced by TGainMatch::FineMatch(), TGainMatch::FineMatchFast(), TCal::GetParameter(), TCal::GetParameters(), and main().
|
inlineinherited |
Definition at line 73 of file TCal.h.
References TCal::fHist.
|
inlinevirtualinherited |
Reimplemented in TGainMatch.
Definition at line 75 of file TCal.h.
References TCal::fNuc.
Referenced by AddPoint(), TCal::Print(), TEnergyCal::SetNucleus(), TEnergyCal::SetPoint(), and TEnergyCal::SetPointError().
|
virtualinherited |
Returns the parameter at the index parameter
Reimplemented in TEnergyCal, TCFDCal, and TTimeCal.
Definition at line 108 of file TCal.cxx.
References TCal::GetFitFunction().
Referenced by TGainMatch::FineMatch(), TGainMatch::FineMatchFast(), TCal::GetParameters(), and TGainMatch::WriteToChannel().
|
virtualinherited |
Returns all of the parameters in the current TCal.
Reimplemented in TEnergyCal, TCFDCal, and TTimeCal.
Definition at line 90 of file TCal.cxx.
References TCal::GetFitFunction(), and TCal::GetParameter().
|
protectedinherited |
Initiallizes the TCal.
Definition at line 179 of file TCal.cxx.
References TCal::Clear(), TCal::fChan, TCal::fFitFunc, TCal::fHist, and TCal::fNuc.
Referenced by TCal::TCal().
|
inlineoverridevirtual |
Implements TCal.
Definition at line 31 of file TEfficiencyCal.h.
|
override |
Definition at line 69 of file TEfficiencyCal.cxx.
References TCal::Print().
void TEfficiencyCal::ScaleGraph | ( | Double_t | scaleFactor | ) |
Definition at line 24 of file TEfficiencyCal.cxx.
References fScaleFactor.
|
inherited |
Sets the channel being calibrated
Definition at line 60 of file TCal.cxx.
References TCal::fChan.
Referenced by TCalManager::AddToManager(), TGainMatch::CoarseMatch(), TGainMatch::FineMatch(), TGainMatch::FineMatchFast(), main(), TCal::SetChannel(), and TCal::WriteToAllChannels().
|
inherited |
Sets the channel for the calibration to the channel number channum. Returns 0 if the channel does not exist
Definition at line 118 of file TCal.cxx.
References TChannel::GetChannelByNumber(), and TCal::SetChannel().
|
inlinevirtualinherited |
Definition at line 59 of file TCal.h.
References TCal::fFitFunc.
Referenced by TGainMatch::CalculateGain(), TGainMatch::CoarseMatch(), TGainMatch::FineMatch(), TGainMatch::FineMatchFast(), and main().
|
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 138 of file TCal.cxx.
References TCal::fHist, and hist.
|
virtualinherited |
Sets the nucleus to be calibrated against
Reimplemented in TGainMatch, and TEnergyCal.
Definition at line 33 of file TCal.cxx.
References TCal::fNuc.
Referenced by TEnergyCal::SetNucleus().
|
virtualinherited |
Writes this calibration to all channels in the current TChannel Map
Definition at line 72 of file TCal.cxx.
References TCal::GetChannel(), TChannel::GetChannelMap(), TCal::SetChannel(), and TCal::WriteToChannel().
|
inlinevirtualinherited |
Reimplemented in TGainMatch, TEnergyCal, TCFDCal, and TTimeCal.
Definition at line 57 of file TCal.h.
Referenced by TCal::WriteToAllChannels().
|
private |
Definition at line 36 of file TEfficiencyCal.h.
Referenced by Clear(), Copy(), and ScaleGraph().