Definition at line 12 of file TCalManager.h.
Public Member Functions | |
TCalManager () | |
TCalManager (const char *classname) | |
~TCalManager () override | |
Bool_t | AddToManager (TCal *cal, UInt_t chanNum, Option_t *opt="") |
Bool_t | AddToManager (TCal *cal, Option_t *opt="") |
void | Clear (Option_t *opt="") override |
TCal * | GetCal (UInt_t chanNum) |
const char * | GetClass () |
TCal * | operator[] (UInt_t channum) |
void | Print (Option_t *opt="") const override |
void | RemoveCal (UInt_t channum, Option_t *opt="") |
void | SetClass (const char *className) |
void | SetClass (const TClass *cl) |
void | WriteToChannel () const |
Private Types | |
typedef std::map< UInt_t, TCal * > | CalMap |
Private Attributes | |
CalMap | fCalMap |
TClass * | fClass |
#include <TCalManager.h>
|
private |
Definition at line 34 of file TCalManager.h.
TCalManager::TCalManager | ( | ) |
Definition at line 9 of file TCalManager.cxx.
TCalManager::TCalManager | ( | const char * | classname | ) |
Definition at line 15 of file TCalManager.cxx.
References fClass, and SetClass().
|
override |
Definition at line 21 of file TCalManager.cxx.
References fCalMap.
Bool_t TCalManager::AddToManager | ( | TCal * | cal, |
UInt_t | chanNum, | ||
Option_t * | opt = "" |
||
) |
Makes a Deep copy of cal and adds it to the CalManager Map for channel number chanNum.
Definition at line 107 of file TCalManager.cxx.
References fCalMap, fClass, GetCal(), TCal::GetChannel(), TChannel::GetNumber(), TCal::SetChannel(), and SetClass().
Referenced by AddToManager(), TGainMatch::AlignAll(), TGainMatch::CoarseMatchAll(), TGainMatch::FineMatchAll(), and TGainMatch::FineMatchFastAll().
Bool_t TCalManager::AddToManager | ( | TCal * | cal, |
Option_t * | opt = "" |
||
) |
Makes a Deep copy of cal and adds it to the CalManager Map.
Definition at line 93 of file TCalManager.cxx.
References AddToManager(), TCal::GetChannel(), and TChannel::GetNumber().
|
override |
This deletes all of the current TCal's. It also resets the class type to 0.
Definition at line 165 of file TCalManager.cxx.
TCal * TCalManager::GetCal | ( | UInt_t | chanNum | ) |
Gets the TCal for the channel number chanNum
Definition at line 80 of file TCalManager.cxx.
References fCalMap.
Referenced by AddToManager(), operator[](), and RemoveCal().
|
inline |
Definition at line 25 of file TCalManager.h.
References fClass.
|
inline |
Definition at line 31 of file TCalManager.h.
References GetCal().
|
override |
Definition at line 179 of file TCalManager.cxx.
void TCalManager::RemoveCal | ( | UInt_t | channum, |
Option_t * | opt = "" |
||
) |
Definition at line 32 of file TCalManager.cxx.
void TCalManager::SetClass | ( | const char * | className | ) |
Sets the Derived class of the TCal being held in the TCalManager
Definition at line 41 of file TCalManager.cxx.
Referenced by AddToManager(), and TCalManager().
void TCalManager::SetClass | ( | const TClass * | cl | ) |
Sets the Derived class of the TCal being held in the TCalManager
Definition at line 47 of file TCalManager.cxx.
References fClass.
void TCalManager::WriteToChannel | ( | ) | const |
Writes all of the TCals to TChannel based on the method WriteToChannel defined in the TCal held by TCalManager.
Definition at line 154 of file TCalManager.cxx.
References fCalMap.
|
private |
Definition at line 35 of file TCalManager.h.
Referenced by AddToManager(), Clear(), GetCal(), Print(), RemoveCal(), WriteToChannel(), and ~TCalManager().
|
private |
Definition at line 36 of file TCalManager.h.
Referenced by AddToManager(), Clear(), GetClass(), Print(), SetClass(), and TCalManager().