Berkeley Nuclear Data Software
Public Member Functions | Public Attributes | List of all members
TTOFConfig Class Reference

#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 ScintConfiggetStartConfig () const
 
const ScintConfiggetTargetConfig () const
 
bool canDoTiming ()
 
double getTCal (int a_targID, int a_scatID)
 

Public Attributes

std::map< std::pair< int, int >, double > m_tCalibs
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TTOFConfig()

TTOFConfig::TTOFConfig ( )

default contstructor puts the class into a working but empty state

Member Function Documentation

◆ canDoTiming()

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStartConfig()

const ScintConfig & TTOFConfig::getStartConfig ( ) const
Here is the caller graph for this function:

◆ getTargetConfig()

const ScintConfig & TTOFConfig::getTargetConfig ( ) const
Here is the caller graph for this function:

◆ getTCal()

double TTOFConfig::getTCal ( int  a_targID,
int  a_scatID 
)

this function returns the timeing calibration constant for a target scatter cell pair

Here is the caller graph for this function:

◆ isConstructed()

bool TTOFConfig::isConstructed ( )
Here is the caller graph for this function:

◆ isKnown()

bool TTOFConfig::isKnown ( int  a_ch,
int  a_modID = 0 
) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isStart()

bool TTOFConfig::isStart ( int  a_ch,
int  a_modID = 0 
) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isTarget()

bool TTOFConfig::isTarget ( int  a_ch,
int  a_modID = 0 
) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ procFile()

void TTOFConfig::procFile ( std::string  a_jsonConfig)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_tCalibs

std::map<std::pair<int,int>, double > TTOFConfig::m_tCalibs

The documentation for this class was generated from the following files: