Berkeley Nuclear Data Software
|
#include <TTOFConfig.h>
Public Member Functions | |
TTOFConfig () | |
default contstructor puts the class into a working but empty state More... | |
void | procFile (std::string a_jsonConfig) |
bool | isConstructed () |
bool | isKnown (int a_ch, int a_modID=0) const |
bool | isStart (int a_ch, int a_modID=0) const |
bool | isTarget (int a_ch, int a_modID=0) const |
const ScintConfig & | getStartConfig () const |
const ScintConfig & | getTargetConfig () const |
bool | canDoTiming () |
double | getTCal (int a_targID, int a_scatID) |
Public Attributes | |
std::map< std::pair< int, int >, double > | m_tCalibs |
this class is intended to manage reading setup and calibration information for the TTOF detector and providing it to analysis routines. It uses two independed ScintConfig classes from the support library to track info for target cells and scatter cells the config file's coordinate system should be centered on the source being used to generate the events.
TTOFConfig::TTOFConfig | ( | ) |
default contstructor puts the class into a working but empty state
bool TTOFConfig::canDoTiming | ( | ) |
right now this just tests if the time calibration arrays are populated it could be improved to test the scatter target cell id presence and make sure they all exist
const ScintConfig & TTOFConfig::getStartConfig | ( | ) | const |
const ScintConfig & TTOFConfig::getTargetConfig | ( | ) | const |
double TTOFConfig::getTCal | ( | int | a_targID, |
int | a_scatID | ||
) |
this function returns the timeing calibration constant for a target scatter cell pair
bool TTOFConfig::isConstructed | ( | ) |
bool TTOFConfig::isKnown | ( | int | a_ch, |
int | a_modID = 0 |
||
) | const |
bool TTOFConfig::isStart | ( | int | a_ch, |
int | a_modID = 0 |
||
) | const |
bool TTOFConfig::isTarget | ( | int | a_ch, |
int | a_modID = 0 |
||
) | const |
void TTOFConfig::procFile | ( | std::string | a_jsonConfig | ) |
std::map<std::pair<int,int>, double > TTOFConfig::m_tCalibs |