|
Berkeley Nuclear Data Software
|
#include <ConfigClasses.h>


Public Member Functions | |
| ExperimentConfig () | |
| default constructor creates an empty config More... | |
| ExperimentConfig (const ExperimentConfig &a_config) | |
| copy constructor to ensure local map rebuild More... | |
| ExperimentConfig & | operator= (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 DetectorElementInfo & | getDetElInfo (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 CloverInfo & | getCloverInfo (int a_modID, int a_ch) const |
| const CloverInfo & | getCloverInfo (int a_clovID) const |
| const std::vector< CloverInfo > & | getCloverInfos () const |
| const OrgScintInfo & | getOrgScintInfo (int a_modID, int a_ch) const |
| const OrgScintInfo & | getOrgScintInfo (int a_orgScintID) const |
| const MultiPMTOrgScintInfo & | getMultiPMTOrgScintInfo (int a_modID, int a_ch) const |
| const MultiPMTOrgScintInfo & | getMultiPMTOrgScintInfo (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 Member Functions | |
| void | rebuildMap () |
Protected Attributes | |
| std::vector< OrgScintInfo > | m_orgScints |
| std::vector< MultiPMTOrgScintInfo > | m_PMTOrgScints |
| std::vector< InorgScintInfo > | m_inorgScints |
| std::vector< HPGeInfo > | m_HPGEs |
| std::vector< CloverInfo > | m_clovers |
| std::map< std::string, PointSourceInfo > | m_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... | |
| DetectorCalib * | m_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 |
this class is inteded to be a base class for the configuration information needed for analysis of multidetector nuclear experiments
| ExperimentConfig::ExperimentConfig | ( | ) |
default constructor creates an empty config
| ExperimentConfig::ExperimentConfig | ( | const ExperimentConfig & | a_config | ) |
copy constructor to ensure local map rebuild

|
virtual |
| void ExperimentConfig::addClover | ( | CloverInfo | a_clover | ) |


| void ExperimentConfig::addClovers | ( | std::vector< CloverInfo > | a_clovers | ) |

| void ExperimentConfig::addDetLengths | ( | std::map< DetType, double > | a_lengthMap | ) |

| void ExperimentConfig::addHPGE | ( | HPGeInfo | a_HPGE | ) |


| void ExperimentConfig::addHPGEs | ( | std::vector< HPGeInfo > | a_HPGEs | ) |

| void ExperimentConfig::addInorgScint | ( | InorgScintInfo | a_inorgScint | ) |


| void ExperimentConfig::addInorgScints | ( | std::vector< InorgScintInfo > | a_inorgScints | ) |

| void ExperimentConfig::addMultiPMTOrgScint | ( | MultiPMTOrgScintInfo | a_orgScint | ) |


| void ExperimentConfig::addOrgScint | ( | OrgScintInfo | a_orgScint | ) |


| void ExperimentConfig::addOrgScints | ( | std::vector< OrgScintInfo > | a_orgScints | ) |

| void ExperimentConfig::addSourceInfo | ( | std::string | a_id, |
| PointSourceInfo | a_source | ||
| ) |

| bool ExperimentConfig::canDoGainConversion | ( | ) | const |
this function tests if the experiment config to see if gain calibrations are present for all detectors present
| bool ExperimentConfig::canDoTiming | ( | ) | const |
this function tests the experiment config to see if it can produce timing calibrations for all detectors present
| void ExperimentConfig::clearDet | ( | DetType | a_type | ) |
this function clears the vector corresponding to a given detector type useful in monte carlo construction of new configurations files

| double ExperimentConfig::detDistToOrig | ( | DetType | a_detType, |
| int | a_detID, | ||
| int | a_elementID = 0 |
||
| ) | const |
this function uses the detector information to calculate the position of the detector with respect to the origin of the co-ordinate system being used for the experiment set a_elementID to Leaf ID for clovers

| const CloverInfo & ExperimentConfig::getCloverInfo | ( | int | a_clovID | ) | const |
| const CloverInfo & ExperimentConfig::getCloverInfo | ( | int | a_modID, |
| int | a_ch | ||
| ) | const |

| const std::vector< CloverInfo > & ExperimentConfig::getCloverInfos | ( | ) | const |

| std::map< DetType, double > ExperimentConfig::getDetectorLengths | ( | ) | const |
| const DetectorElementInfo & ExperimentConfig::getDetElInfo | ( | int | a_modID, |
| int | a_ch | ||
| ) | const |
gets the detector element info given a modID and a channel

| int ExperimentConfig::getDetID | ( | int | a_modID, |
| int | a_ch | ||
| ) | const |

| std::vector< int > ExperimentConfig::getDetIDList | ( | DetType | a_detType | ) | const |

| DetType ExperimentConfig::getDetType | ( | int | a_modID, |
| int | a_ch | ||
| ) | const |

| const HPGeInfo ExperimentConfig::getHPGeInfo | ( | int | a_hpgeID | ) | const |
| const HPGeInfo ExperimentConfig::getHPGeInfo | ( | int | a_modID, |
| int | a_ch | ||
| ) | const |

| const InorgScintInfo ExperimentConfig::getInorgScintInfo | ( | int | a_inorgScintID | ) | const |
| const InorgScintInfo ExperimentConfig::getInorgScintInfo | ( | int | a_modID, |
| int | a_ch | ||
| ) | const |

| const MultiPMTOrgScintInfo & ExperimentConfig::getMultiPMTOrgScintInfo | ( | int | a_modID, |
| int | a_ch | ||
| ) | const |
| const MultiPMTOrgScintInfo & ExperimentConfig::getMultiPMTOrgScintInfo | ( | int | a_orgScintID | ) | const |
| int ExperimentConfig::getNumModules | ( | ) |
this function returns the number of modules present in the config which can be used for testing section in loop back trigger mode
| const OrgScintInfo & ExperimentConfig::getOrgScintInfo | ( | int | a_modID, |
| int | a_ch | ||
| ) | const |

| const OrgScintInfo & ExperimentConfig::getOrgScintInfo | ( | int | a_orgScintID | ) | const |
| double ExperimentConfig::getRFCalibID | ( | ) | const |

| bool ExperimentConfig::getRFFilter | ( | ) | const |

| double ExperimentConfig::getRFModuleID | ( | ) |
!!!!!this currently assumes that the detector being used to calibrate !!!!against the rf is a

| double ExperimentConfig::getRFOffset | ( | ) | const |


| double ExperimentConfig::getRFPeriod | ( | ) | const |

| uint16_t ExperimentConfig::getRFSubPeriod | ( | ) | const |

| double ExperimentConfig::getTDCRes | ( | ) | const |

| bool ExperimentConfig::isKnown | ( | int | a_modID, |
| int | a_ch | ||
| ) | const |
returns true if the channel mod pair is known to the config

| bool ExperimentConfig::isKnownModule | ( | int | a_modID | ) | const |

| ExperimentConfig & ExperimentConfig::operator= | ( | const ExperimentConfig & | a_rhs | ) |


| std::ostream & ExperimentConfig::printLayout | ( | std::ostream & | a_stream | ) | const |
prints the internal state of the class


|
protected |

| void ExperimentConfig::setRFCalibID | ( | int | a_ID | ) |

| void ExperimentConfig::setRFFilter | ( | bool | a_doFilter | ) |

| void ExperimentConfig::setRFOffset | ( | DetectorCalib * | a_offset | ) |


| void ExperimentConfig::setRFPeriod | ( | double | a_RFPeriod | ) |

| void ExperimentConfig::setRFSubPeriod | ( | uint16_t | a_triggerPeriod | ) |

| void ExperimentConfig::setTDCRes | ( | double | a_TDCRes | ) |
| void ExperimentConfig::setTime | ( | uint32_t | a_t | ) |


| void ExperimentConfig::translateCoordinates | ( | double | a_x, |
| double | a_y, | ||
| double | a_z | ||
| ) |
this function translates the coordinate system off all detectors stored in the config

|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
BCM data [uAmps].
|
protected |
lengths of the detectors for TOF calculation
|
protected |
|
protected |
|
protected |
internal map for quickly referencing element info within the class gets rebuilt any time a detector element is added access is m_modChMap[modID][ch];
|
protected |
|
protected |
|
protected |
detector ID of RF offset
|
protected |
|
protected |
RF offset to an EJ-309 detector [ns].
|
protected |
|
protected |
|
protected |
|
protected |