Calibration - r3dunlop/GRSISort GitHub Wiki

HOME > RUNNING GRSISORT > ANALYSIS > CALIBRATION

GRSISort calibrations are read from cal files. These are the files with the .cal extension. Various calibration classes are used to set calibration parameters. These classes are called TCals and currently include:

#TCalManager A Calibration Manager is used to make doing multiple channel calibrations easier. A TCalManager can be filled with one type of calibration class (TCal) at any time. To create a calibration manager use:

TCalManager *myCalManager = new TCalManager;

You can get the type of TCal in the TCalManager using

myCalManager->GetClass();

Note: you can not put two different types of TCal's in the TCalManager at the same time. To put a different type of TCal in the TCalManager you must first Clear() the TCalManager. You can put a calibration in the cal manager by using

myCalManager->AddToManager(myCal);

where myCal is a pointer to the calibration being added to the manager. It should be noted that a deep copy of the calibration is made and the cal manager appropriately handles it's copy. If the channel for the calibration has not been set yet, it can be set while being added to the calibration manager using

myCalManager->AddToManager(myCal,channel_number);

and to overwrite the TCal at a given channel, you must use the option "overwrite". For example,

myCalManager->AddToManager(myCal,channel_number,"overwrite");

To access the calibration for a specific channel in the TCalManager you can use

myCalManager->GetCal(channel_number);

and to write the set of calibrations to TChannel call

myCalManager->WriteToChannel();
⚠️ **GitHub.com Fallback** ⚠️