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

#include <ConfigClasses.h>

Inheritance diagram for ScintConfig:
Inheritance graph
[legend]
Collaboration diagram for ScintConfig:
Collaboration graph
[legend]

Public Member Functions

 ScintConfig ()
 
 ScintConfig (const ExperimentConfig &a_obj)
 
void addOrgScint (OrgScintInfo a_orgScint)
 
void addMultiPMTOrgScint (MultiPMTOrgScintInfo a_orgScint)
 
void addInorgScint (InorgScintInfo a_inorgScint)
 
bool isKnown (int a_modID, int a_ch) const
 returns true if the channel mod pair is known to the config More...
 
const DetectorElementInfogetDetElInfo (int a_modID, int a_ch) const
 gets the detector element info given a modID and a channel More...
 
std::ostream & printLayout (std::ostream &a_stream) const
 prints the internal state of the class More...
 
DetType getDetType (int a_modID, int a_ch) const
 
int getDetID (int a_modID, int a_ch) const
 
const OrgScintInfogetOrgScintInfo (int a_modID, int a_ch) const
 
const OrgScintInfogetOrgScintInfo (int a_orgScintID) const
 
const MultiPMTOrgScintInfogetMultiPMTOrgScintInfo (int a_modID, int a_ch) const
 
const MultiPMTOrgScintInfogetMultiPMTOrgScintInfo (int a_orgScintID) const
 
const InorgScintInfo getInorgScintInfo (int a_modID, int a_ch) const
 
const InorgScintInfo getInorgScintInfo (int a_inorgScintID) const
 
std::vector< int > getDetIDList (DetType a_detType) const
 
bool canDoTiming () const
 
bool canDoGainConversion () const
 
void clearDet (DetType a_type)
 

Additional Inherited Members

- Protected Member Functions inherited from ExperimentConfig
void rebuildMap ()
 
 ExperimentConfig ()
 default constructor creates an empty config More...
 
 ExperimentConfig (const ExperimentConfig &a_config)
 copy constructor to ensure local map rebuild More...
 
ExperimentConfigoperator= (const ExperimentConfig &a_rhs)
 
void addOrgScints (std::vector< OrgScintInfo > a_orgScints)
 
void addInorgScints (std::vector< InorgScintInfo > a_inorgScints)
 
void addHPGEs (std::vector< HPGeInfo > a_HPGEs)
 
void addClovers (std::vector< CloverInfo > a_clovers)
 
void addOrgScint (OrgScintInfo a_orgScint)
 
void addMultiPMTOrgScint (MultiPMTOrgScintInfo a_orgScint)
 
void addInorgScint (InorgScintInfo a_inorgScint)
 
void addHPGE (HPGeInfo a_HPGE)
 
void addClover (CloverInfo a_clover)
 
void addDetLengths (std::map< DetType, double > a_lengthMap)
 
void addSourceInfo (std::string a_id, PointSourceInfo a_source)
 
void setRFOffset (DetectorCalib *a_offset)
 
void setRFCalibID (int a_ID)
 
void setRFPeriod (double a_RFPeriod)
 
void setTDCRes (double a_TDCRes)
 
void setRFFilter (bool a_doFilter)
 
void setRFSubPeriod (uint16_t a_triggerPeriod)
 
void translateCoordinates (double a_x, double a_y, double a_z)
 
bool isKnown (int a_modID, int a_ch) const
 returns true if the channel mod pair is known to the config More...
 
bool isKnownModule (int a_modID) const
 
const DetectorElementInfogetDetElInfo (int a_modID, int a_ch) const
 gets the detector element info given a modID and a channel More...
 
std::ostream & printLayout (std::ostream &a_stream) const
 prints the internal state of the class More...
 
DetType getDetType (int a_modID, int a_ch) const
 
int getDetID (int a_modID, int a_ch) const
 
const CloverInfogetCloverInfo (int a_modID, int a_ch) const
 
const CloverInfogetCloverInfo (int a_clovID) const
 
const std::vector< CloverInfo > & getCloverInfos () const
 
const OrgScintInfogetOrgScintInfo (int a_modID, int a_ch) const
 
const OrgScintInfogetOrgScintInfo (int a_orgScintID) const
 
const MultiPMTOrgScintInfogetMultiPMTOrgScintInfo (int a_modID, int a_ch) const
 
const MultiPMTOrgScintInfogetMultiPMTOrgScintInfo (int a_orgScintID) const
 
const InorgScintInfo getInorgScintInfo (int a_modID, int a_ch) const
 
const InorgScintInfo getInorgScintInfo (int a_inorgScintID) const
 
const HPGeInfo getHPGeInfo (int a_modID, int a_ch) const
 
const HPGeInfo getHPGeInfo (int a_hpgeID) const
 
std::vector< int > getDetIDList (DetType a_detType) const
 
double getRFOffset () const
 
double getRFCalibID () const
 
double getRFPeriod () const
 
double getTDCRes () const
 
bool getRFFilter () const
 
uint16_t getRFSubPeriod () const
 
double getRFModuleID ()
 
std::map< DetType, double > getDetectorLengths () const
 
void setTime (uint32_t a_t)
 
double detDistToOrig (DetType a_detType, int a_detID, int a_elementID=0) const
 
bool canDoTiming () const
 
bool canDoGainConversion () const
 
int getNumModules ()
 
void clearDet (DetType a_type)
 
virtual ~ExperimentConfig ()
 
- Protected Attributes inherited from ExperimentConfig
std::vector< OrgScintInfom_orgScints
 
std::vector< MultiPMTOrgScintInfom_PMTOrgScints
 
std::vector< InorgScintInfom_inorgScints
 
std::vector< HPGeInfom_HPGEs
 
std::vector< CloverInfom_clovers
 
std::map< std::string, PointSourceInfom_sourceInfo
 
std::map< int, std::map< int, std::pair< DetType, int > > > m_modChMap
 
std::map< DetType, double > m_detectorLengths
 lengths of the detectors for TOF calculation More...
 
DetectorCalibm_RFOffset
 RF offset to an EJ-309 detector [ns]. More...
 
int m_RFCalibDetID
 detector ID of RF offset More...
 
double m_RFPeriod
 
double m_TDCRes
 
bool m_rfFilter
 
uint16_t m_rfSubPeriod
 
OrgScintInfo m_defOrgScintInfo
 BCM data [uAmps]. More...
 
MultiPMTOrgScintInfo m_defMultiPMTOrgScintInfo
 
InorgScintInfo m_defInorgScintInfo
 
HPGeInfo m_defHPGeInfo
 
CloverInfo m_defCloverInfo
 
DetectorElementInfo m_defDetElementInfo
 

Detailed Description

this class is used to limit the interfacce of ExperimentConfig to just functions that are relavent for an experiment using strictly scintillator data types.

Constructor & Destructor Documentation

◆ ScintConfig() [1/2]

ScintConfig::ScintConfig ( )

◆ ScintConfig() [2/2]

ScintConfig::ScintConfig ( const ExperimentConfig a_obj)
Here is the call graph for this function:

Member Function Documentation

◆ addInorgScint()

void ExperimentConfig::addInorgScint

◆ addMultiPMTOrgScint()

void ExperimentConfig::addMultiPMTOrgScint
Here is the caller graph for this function:

◆ addOrgScint()

void ExperimentConfig::addOrgScint
Here is the caller graph for this function:

◆ canDoGainConversion()

bool ExperimentConfig::canDoGainConversion

this function tests if the experiment config to see if gain calibrations are present for all detectors present

Here is the caller graph for this function:

◆ canDoTiming()

bool ExperimentConfig::canDoTiming

this function tests the experiment config to see if it can produce timing calibrations for all detectors present

◆ clearDet()

void ExperimentConfig::clearDet

this function clears the vector corresponding to a given detector type useful in monte carlo construction of new configurations files

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

◆ getDetElInfo()

const DetectorElementInfo & ExperimentConfig::getDetElInfo

gets the detector element info given a modID and a channel

◆ getDetID()

int ExperimentConfig::getDetID

◆ getDetIDList()

std::vector< int > ExperimentConfig::getDetIDList
Here is the caller graph for this function:

◆ getDetType()

DetType ExperimentConfig::getDetType
Here is the call graph for this function:

◆ getInorgScintInfo() [1/2]

const InorgScintInfo ExperimentConfig::getInorgScintInfo
Here is the call graph for this function:

◆ getInorgScintInfo() [2/2]

const InorgScintInfo ExperimentConfig::getInorgScintInfo

◆ getMultiPMTOrgScintInfo() [1/2]

const MultiPMTOrgScintInfo & ExperimentConfig::getMultiPMTOrgScintInfo
Here is the caller graph for this function:

◆ getMultiPMTOrgScintInfo() [2/2]

const MultiPMTOrgScintInfo & ExperimentConfig::getMultiPMTOrgScintInfo
Here is the call graph for this function:

◆ getOrgScintInfo() [1/2]

const OrgScintInfo & ExperimentConfig::getOrgScintInfo
Here is the caller graph for this function:

◆ getOrgScintInfo() [2/2]

const OrgScintInfo & ExperimentConfig::getOrgScintInfo

◆ isKnown()

bool ExperimentConfig::isKnown

returns true if the channel mod pair is known to the config

Here is the caller graph for this function:

◆ printLayout()

std::ostream & ExperimentConfig::printLayout

prints the internal state of the class


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