Berkeley Nuclear Data Software
|
#include <STOFConfig.h>
Public Member Functions | |
STOFConfig () | |
default contstructor puts the class into a working but empty state More... | |
STOFConfig (const STOFConfig &a_config) | |
virtual STOFConfig & | operator= (const STOFConfig &a_rhs) |
void | procFile (std::string a_jsonConfig) |
bool | isConstructed () |
bool | isKnown (int a_ch, int a_modID=0) const |
bool | isTarget (int a_ch, int a_modID=0) const |
bool | isScatter (int a_ch, int a_modID=0) const |
bool | isRF (int a_ch) const |
int | getRFCh () const |
double | getTCal (int a_targID, int a_scatID) |
double | getTarTCal (int a_targID) |
const ScintConfig & | getTargetConfig () const |
const ScintConfig & | getScatterConfig () const |
bool | canDoTiming () |
bool | hasOffsetCalib () |
tests if the config has built m_tarDTCuts, More... | |
bool | passesDtCut (int a_targID, double a_timeDiff) |
call to passesCut for multipmtTargets More... | |
void | buildTarScatDistMap () |
builds target-Scatter distances More... | |
double | getTargScatDistance (int a_targID, int a_scatID) |
double | getTarScintBUDistance (int a_targID) |
double | getRFPeriod () |
double | getTargetSR (int a_targID) |
double | getAvgTheta () |
double | getAvgExitFP () |
CutBase * | getTargZCut (int a_targID) |
CutBase * | getScatZCut (int a_scatID) |
void | setTargZCut (int a_targID, CutBase *a_cut) |
void | setScatZCut (int a_scatID, CutBase *a_cut) |
void | setTime (uint32_t a_t) |
void | setTargetConfig (ScintConfig a_targetConfig) |
void | setScatterConfig (ScintConfig a_scatterConfig) |
void | clearScintConfigs () |
virtual | ~STOFConfig () |
Protected Attributes | |
double | m_detHalfLength |
std::map< int, double > | m_targetArea |
ScintConfig | m_targetConfig |
ScintConfig | m_scatterConfig |
uint | m_rfChID |
std::map< std::pair< int, int >, double > | m_tCalibs |
std::map< int, DetectorCalib * > | m_tarTCalibs |
std::map< int, double > | m_tarBUDistance |
std::map< int, CutBase * > | m_tarDTCuts |
std::map< std::pair< int, int >, double > | m_tarScatDist |
std::map< int, CutBase * > | m_scatZCuts |
std::map< int, CutBase * > | m_targZCuts |
double | m_RFPeriod |
bool | m_isConstructed |
this class is intended to manage reading setup and calibration information for the STOF 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
STOFConfig::STOFConfig | ( | ) |
default contstructor puts the class into a working but empty state
STOFConfig::STOFConfig | ( | const STOFConfig & | a_config | ) |
distance from front face to center of scintillating medium right now hardcoded in constructor to 13.55 mm for 1-inch scatter cell
|
virtual |
void STOFConfig::buildTarScatDistMap | ( | ) |
builds target-Scatter distances
bool STOFConfig::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
void STOFConfig::clearScintConfigs | ( | ) |
double STOFConfig::getAvgExitFP | ( | ) |
this function returns the average exit flight path in m for the target (hard coded zero only) and scatter pairs
double STOFConfig::getAvgTheta | ( | ) |
this function returns the average scattering angle in radians for the target (hard coded zero only) and scatter pairs
int STOFConfig::getRFCh | ( | ) | const |
double STOFConfig::getRFPeriod | ( | ) |
const ScintConfig & STOFConfig::getScatterConfig | ( | ) | const |
CutBase * STOFConfig::getScatZCut | ( | int | a_scatID | ) |
returns the upper bound cut associated with a scat this will return a null pointer if the z cuts haven't been assigned in the config file
const ScintConfig & STOFConfig::getTargetConfig | ( | ) | const |
double STOFConfig::getTargetSR | ( | int | a_targID | ) |
double STOFConfig::getTargScatDistance | ( | int | a_targID, |
int | a_scatID | ||
) |
this function returns the distance between a target cell and a scatter cell at the moment, this assumes that the values provided in the json config file are at the center of the cell
CutBase * STOFConfig::getTargZCut | ( | int | a_targID | ) |
returns the upper bound cut associated with a target this will return a null pointer if the z cuts haven't been assigned in the config file
double STOFConfig::getTarScintBUDistance | ( | int | a_targID | ) |
double STOFConfig::getTarTCal | ( | int | a_targID | ) |
this function returns the timeing calibration constant used to put the target cell time stamp in phase with the cyclotron RF
double STOFConfig::getTCal | ( | int | a_targID, |
int | a_scatID | ||
) |
this function returns the timeing calibration constant for a target scatter cell pair it will throw if the pair doesn't exist
bool STOFConfig::hasOffsetCalib | ( | ) |
tests if the config has built m_tarDTCuts,
bool STOFConfig::isConstructed | ( | ) |
bool STOFConfig::isKnown | ( | int | a_ch, |
int | a_modID = 0 |
||
) | const |
bool STOFConfig::isRF | ( | int | a_ch | ) | const |
bool STOFConfig::isScatter | ( | int | a_ch, |
int | a_modID = 0 |
||
) | const |
bool STOFConfig::isTarget | ( | int | a_ch, |
int | a_modID = 0 |
||
) | const |
|
virtual |
distance from front face to center of scintillating medium right now hardcoded in constructor to 13.55 mm for 1-inch scatter cell
bool STOFConfig::passesDtCut | ( | int | a_targID, |
double | a_timeDiff | ||
) |
call to passesCut for multipmtTargets
void STOFConfig::procFile | ( | std::string | a_jsonConfig | ) |
void STOFConfig::setScatterConfig | ( | ScintConfig | a_scatterConfig | ) |
this function allows to directly set the scatterConfig – will replace existing target config
void STOFConfig::setScatZCut | ( | int | a_scatID, |
CutBase * | a_cut | ||
) |
void STOFConfig::setTargetConfig | ( | ScintConfig | a_targetConfig | ) |
this function allows to directly set the targetConfig – will replace existing target config
void STOFConfig::setTargZCut | ( | int | a_targID, |
CutBase * | a_cut | ||
) |
void STOFConfig::setTime | ( | uint32_t | a_t | ) |
|
protected |
distance from front face to center of scintillating medium right now hardcoded in constructor to 13.55 mm for 1-inch scatter cell
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |