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

#include <GENESISConfig.h>

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

Public Member Functions

 GenesisConfig ()
 
GenesisConfigoperator= (const ExperimentConfig &a_expConfig)
 
std::map< DetType, vector< int > > getDetIDLists ()
 returns list of detector IDs for given detector type More...
 
int getCloverModID (int a_cloverID) const
 
int getBGOModID (int a_cloverID)
 Is there any reason this isn't in the base class? More...
 
double calcDetectorDistance (int a_modID, int a_ch) const
 calculates distance to center of detector More...
 
double calcScintTOF (int a_modID, int a_channelNum, double a_neutronEnergy)
 tof to center of detector More...
 
double calcEnergyFromTOF (int a_modID, int a_channelNum, double a_neutronTOF)
 tof [ns] to center of detector More...
 
vector< double > calcDetectorPolarAngleSpan (int a_modID, int a_ch)
 
double getScintResolution (int a_modID, int a_channelNum, double a_lightYield)
 Dietze+Klein resolution: delta L. More...
 
double getScintResolution (int a_detectorID, double a_lightYield)
 
- Public Member Functions inherited from ExperimentConfig
 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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from ExperimentConfig
void rebuildMap ()
 
- 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

used to store information about the setup for a GENESIS Experiment

Constructor & Destructor Documentation

◆ GenesisConfig()

GenesisConfig::GenesisConfig ( )

default constructor

Member Function Documentation

◆ calcDetectorDistance()

double GenesisConfig::calcDetectorDistance ( int  a_modID,
int  a_ch 
) const

calculates distance to center of detector

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

◆ calcDetectorPolarAngleSpan()

vector< double > GenesisConfig::calcDetectorPolarAngleSpan ( int  a_modID,
int  a_ch 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calcEnergyFromTOF()

double GenesisConfig::calcEnergyFromTOF ( int  a_modID,
int  a_channelNum,
double  a_neutronTOF 
)

tof [ns] to center of detector

◆ calcScintTOF()

double GenesisConfig::calcScintTOF ( int  a_modID,
int  a_channelNum,
double  a_neutronEnergy 
)

tof to center of detector

Here is the caller graph for this function:

◆ getBGOModID()

int GenesisConfig::getBGOModID ( int  a_cloverID)

Is there any reason this isn't in the base class?

Here is the caller graph for this function:

◆ getCloverModID()

int GenesisConfig::getCloverModID ( int  a_cloverID) const

returns module id of clover / bgo Is there any reason this isn't in the base class?

Here is the caller graph for this function:

◆ getDetIDLists()

map< DetType, vector< int > > GenesisConfig::getDetIDLists ( )

returns list of detector IDs for given detector type

Here is the caller graph for this function:

◆ getScintResolution() [1/2]

double GenesisConfig::getScintResolution ( int  a_detectorID,
double  a_lightYield 
)

◆ getScintResolution() [2/2]

double GenesisConfig::getScintResolution ( int  a_modID,
int  a_channelNum,
double  a_lightYield 
)

Dietze+Klein resolution: delta L.

Here is the caller graph for this function:

◆ operator=()

GenesisConfig & GenesisConfig::operator= ( const ExperimentConfig a_expConfig)
Here is the call graph for this function:

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