GRSISort
Created by P.C. Bender
Developement Team: P.C. Bender, R. Dunlop, V. Bildstein
An extension of the ROOT analysis Framework
TCalManager Class Reference

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
 
TCalGetCal (UInt_t chanNum)
 
const char * GetClass ()
 
TCaloperator[] (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>

+ Inheritance diagram for TCalManager:
+ Collaboration diagram for TCalManager:

Member Typedef Documentation

◆ CalMap

typedef std::map<UInt_t, TCal*> TCalManager::CalMap
private

Definition at line 34 of file TCalManager.h.

Constructor & Destructor Documentation

◆ TCalManager() [1/2]

TCalManager::TCalManager ( )

Definition at line 9 of file TCalManager.cxx.

◆ TCalManager() [2/2]

TCalManager::TCalManager ( const char *  classname)

Definition at line 15 of file TCalManager.cxx.

References fClass, and SetClass().

◆ ~TCalManager()

TCalManager::~TCalManager ( )
override

Definition at line 21 of file TCalManager.cxx.

References fCalMap.

Member Function Documentation

◆ AddToManager() [1/2]

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

◆ AddToManager() [2/2]

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

◆ Clear()

void TCalManager::Clear ( Option_t *  opt = "")
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.

References fCalMap, and fClass.

◆ GetCal()

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

◆ GetClass()

const char* TCalManager::GetClass ( )
inline

Definition at line 25 of file TCalManager.h.

References fClass.

◆ operator[]()

TCal* TCalManager::operator[] ( UInt_t  channum)
inline

Definition at line 31 of file TCalManager.h.

References GetCal().

◆ Print()

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

Definition at line 179 of file TCalManager.cxx.

References fCalMap, and fClass.

◆ RemoveCal()

void TCalManager::RemoveCal ( UInt_t  channum,
Option_t *  opt = "" 
)

Definition at line 32 of file TCalManager.cxx.

References fCalMap, and GetCal().

◆ SetClass() [1/2]

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

◆ SetClass() [2/2]

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.

◆ WriteToChannel()

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.

Member Data Documentation

◆ fCalMap

CalMap TCalManager::fCalMap
private

Definition at line 35 of file TCalManager.h.

Referenced by AddToManager(), Clear(), GetCal(), Print(), RemoveCal(), WriteToChannel(), and ~TCalManager().

◆ fClass

TClass* TCalManager::fClass
private

Definition at line 36 of file TCalManager.h.

Referenced by AddToManager(), Clear(), GetClass(), Print(), SetClass(), and TCalManager().