PAASS
Software suite to Acquire and Analyze Data from Pixie16
Globals Class Reference

Singleton class holding global parameters. More...

#include <Globals.hpp>

Collaboration diagram for Globals:

Public Member Functions

 ~Globals ()
 
bool hasReject () const
 
bool hasRaw () const
 
double adcClockInSeconds () const
 
double bitResolution () const
 
double bigLength () const
 
double bigLengthTime () const
 
double clockInSeconds () const
 
double discriminationStart () const
 
double eventInSeconds () const
 
double filterClockInSeconds () const
 
double mediumLength () const
 
double mediumLengthTime () const
 
double neutronMass () const
 
double qdcCompression () const
 
double smallLength () const
 
double smallLengthTime () const
 
double speedOfLight () const
 
double speedOfLightBig () const
 
double speedOfLightMedium () const
 
double speedOfLightSmall () const
 
double sigmaBaselineThresh () const
 
double siPmtSigmaBaselineThresh () const
 
double systemClockFreqInHz () const
 
double traceDelay () const
 
int eventWidth () const
 
std::pair< unsigned int, unsigned int > waveformRange (const std::string &str) const
 
std::pair< double, double > cfdPars (const std::string &str) const
 
std::pair< double, double > fitPars (const std::string &str) const
 
std::pair< TrapFilterParameters, TrapFilterParameterstrapFiltPars (const std::string &str) const
 
std::string outputFile () const
 
std::string outputPath (std::string fileName)
 
std::string revision () const
 
std::string configfile () const
 
unsigned short numTraces () const
 
std::vector< std::pair< int, int > > rejectRegions () const
 
void SetOutputFilename (const std::string &a)
 

Static Public Member Functions

static Globalsget ()
 
static Globalsget (const std::string &file)
 

Private Member Functions

 Globals (const std::string &file)
 
 Globals (Globals const &)
 Overload of the constructor. More...
 
void operator= (Globals const &)
 copy constructor More...
 
void SanityCheck ()
 
void WarnOfUnknownParameter (Messenger &m, pugi::xml_node_iterator &it)
 

Private Attributes

bool hasReject_
 Has a rejection region. More...
 
bool hasRaw_
 True for plotting Raw Histograms in DAMM. More...
 
double adcClockInSeconds_
 adc clock in second More...
 
double bitResolution_
 The Bit resolution of the digitizer that we used. More...
 
double clockInSeconds_
 the ACQ clock in seconds More...
 
double discriminationStart_
 starting sample for the n-gamma discrimination More...
 
double eventInSeconds_
 event width in seconds More...
 
double filterClockInSeconds_
 filter clock in seconds More...
 
double bigLength_
 length of big VANDLE bars in cm More...
 
double mediumLength_
 length of medium VANDLE bars in cm More...
 
double neutronMass_
 mass of neutrons in MeV/c/c More...
 
double qdcCompression_
 QDC compression factor for VANDLE related plots. More...
 
double smallLength_
 length of small VANDLE bars in cm More...
 
double sigmaBaselineThresh_
 threshold on fitting for Std dev. of the baseline More...
 
double siPmtSigmaBaselineThresh_
 threshold on fitting for Std dev. of the baseline for SiPMTs More...
 
double speedOfLight_
 speed of light in cm/ns More...
 
double speedOfLightBig_
 speed of light in big VANDLE bars in cm/ns More...
 
double speedOfLightMedium_
 speed of light in medium VANDLE bars in cm/ns More...
 
double speedOfLightSmall_
 speed of light in small VANDLE bars in cm/ns More...
 
double sysClockFreqInHz_
 frequency of the system clock More...
 
double traceDelay_
 the trace delay in ns More...
 
int eventWidth_
 the size of the events More...
 
std::map< std::string, std::pair< unsigned int, unsigned int > > waveformRanges_
 Map containing ranges for the waveforms. More...
 
std::map< std::string, std::pair< double, double > > fitPars_
 Map containing all of the parameters to be used in the fitting analyzer for a type:subtype. More...
 
std::map< std::string, std::pair< double, double > > cfdPars_
 Map containing all of the parameters to be used in the cfd analyzer for a type:subtype. More...
 
std::map< std::string, std::pair< TrapFilterParameters, TrapFilterParameters > > trapFiltPars_
 Map containing all of the trapezoidal filter parameters for a given type:subtype. More...
 
std::string outputFilename_
 Output Filename. More...
 
std::string configFile_
 The configuration file. More...
 
std::string outputPath_
 The path to additional configuration files. More...
 
std::string revision_
 the pixie revision More...
 
unsigned short numTraces_
 number of traces to plot More...
 
std::vector< std::pair< int, int > > reject_
 rejection range in time More...
 

Static Private Attributes

static Globalsinstance = NULL
 Create the static instance of the class. More...
 

Detailed Description

Singleton class holding global parameters.

Definition at line 152 of file Globals.hpp.

Constructor & Destructor Documentation

§ ~Globals()

Globals::~Globals ( )

Definition at line 313 of file Globals.cpp.

§ Globals() [1/2]

Globals::Globals ( const std::string &  file)
private

Default Constructor

Definition at line 14 of file Globals.cpp.

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

§ Globals() [2/2]

Globals::Globals ( Globals const &  )
private

Overload of the constructor.

Member Function Documentation

§ adcClockInSeconds()

double Globals::adcClockInSeconds ( ) const
inline
Returns
the adc clock in seconds

Definition at line 169 of file Globals.hpp.

Here is the caller graph for this function:

§ bigLength()

double Globals::bigLength ( ) const
inline
Returns
the length of the big VANDLE bars length in cm

Definition at line 175 of file Globals.hpp.

§ bigLengthTime()

double Globals::bigLengthTime ( ) const
inline
Returns
the length of the big VANDLE bars in ns

Definition at line 178 of file Globals.hpp.

Here is the caller graph for this function:

§ bitResolution()

double Globals::bitResolution ( ) const
inline
Returns
the bit resolution of the ADC (e.x. 12 bit = 4096)

Definition at line 172 of file Globals.hpp.

Here is the caller graph for this function:

§ cfdPars()

std::pair<double, double> Globals::cfdPars ( const std::string &  str) const
inline
Returns
the requested cfd parameters parameters

Definition at line 251 of file Globals.hpp.

Here is the caller graph for this function:

§ clockInSeconds()

double Globals::clockInSeconds ( ) const
inline
Returns
the pixie clock in seconds

Definition at line 181 of file Globals.hpp.

Here is the caller graph for this function:

§ configfile()

std::string Globals::configfile ( ) const
inline
Returns
the configuration file

Definition at line 289 of file Globals.hpp.

Here is the caller graph for this function:

§ discriminationStart()

double Globals::discriminationStart ( ) const
inline
Returns
the starting point in the trace for the n-gamma discrimination

Definition at line 184 of file Globals.hpp.

§ eventInSeconds()

double Globals::eventInSeconds ( ) const
inline
Returns
the event size in seconds

Definition at line 187 of file Globals.hpp.

§ eventWidth()

int Globals::eventWidth ( ) const
inline
Returns
the event width

Definition at line 240 of file Globals.hpp.

§ filterClockInSeconds()

double Globals::filterClockInSeconds ( ) const
inline
Returns
the filter clock in seconds

Definition at line 190 of file Globals.hpp.

Here is the caller graph for this function:

§ fitPars()

std::pair<double, double> Globals::fitPars ( const std::string &  str) const
inline
Returns
the requested fitting parameters

Definition at line 258 of file Globals.hpp.

Here is the caller graph for this function:

§ get() [1/2]

Globals * Globals::get ( )
static
Returns
only instance of Globals class.

Instance is created upon first call

Definition at line 300 of file Globals.cpp.

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

§ get() [2/2]

Globals * Globals::get ( const std::string &  file)
static
Returns
only instance of Globals class.

Instance is created upon first call

Definition at line 307 of file Globals.cpp.

Here is the call graph for this function:

§ hasRaw()

bool Globals::hasRaw ( ) const
inline
Returns
true if we will define the raw histograms

Definition at line 166 of file Globals.hpp.

§ hasReject()

bool Globals::hasReject ( ) const
inline
Returns
true if any reject region was defined

Definition at line 163 of file Globals.hpp.

§ mediumLength()

double Globals::mediumLength ( ) const
inline
Returns
the length of the medium VANDLE bars in cm

Definition at line 193 of file Globals.hpp.

§ mediumLengthTime()

double Globals::mediumLengthTime ( ) const
inline
Returns
the length of the medium VANDLE bars in ns

Definition at line 196 of file Globals.hpp.

Here is the caller graph for this function:

§ neutronMass()

double Globals::neutronMass ( ) const
inline
Returns
the mass of the neutron in MeV/c/c

Definition at line 201 of file Globals.hpp.

§ numTraces()

unsigned short Globals::numTraces ( ) const
inline
Returns
max number of traces stored in 2D spectra with traces. If not set, by default is 16.

Definition at line 293 of file Globals.hpp.

Here is the caller graph for this function:

§ operator=()

void Globals::operator= ( Globals const &  )
private

copy constructor

§ outputFile()

std::string Globals::outputFile ( ) const
inline
Returns
returns name of specified output file

Definition at line 274 of file Globals.hpp.

§ outputPath()

std::string Globals::outputPath ( std::string  fileName)
inline
Returns
path to use to output files, can be different from output file path
Parameters
[in]fileName: the path for the configuration files

Definition at line 279 of file Globals.hpp.

Here is the caller graph for this function:

§ qdcCompression()

double Globals::qdcCompression ( ) const
inline
Returns
the compression factor for the QDCs from the trace (VANDLE related)

Definition at line 204 of file Globals.hpp.

§ rejectRegions()

std::vector<std::pair<int, int> > Globals::rejectRegions ( ) const
inline
Returns
rejection regions to exclude from scan. Values should be given in seconds in respect to the beginning of the file

Definition at line 298 of file Globals.hpp.

Here is the caller graph for this function:

§ revision()

std::string Globals::revision ( ) const
inline
Returns
the revision for the data

Definition at line 286 of file Globals.hpp.

Here is the caller graph for this function:

§ SanityCheck()

void Globals::SanityCheck ( void  )
private

Check that some of the values make sense

Definition at line 247 of file Globals.cpp.

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

§ SetOutputFilename()

void Globals::SetOutputFilename ( const std::string &  a)
inline

Sets output Filename from scan interface

Definition at line 301 of file Globals.hpp.

Here is the caller graph for this function:

§ sigmaBaselineThresh()

double Globals::sigmaBaselineThresh ( ) const
inline
Returns
the cutoff on the std deviation of the baseline for fitting

Definition at line 227 of file Globals.hpp.

Here is the caller graph for this function:

§ siPmtSigmaBaselineThresh()

double Globals::siPmtSigmaBaselineThresh ( ) const
inline
Returns
the cutoff on the std deviation of the baseline for fitting

Definition at line 231 of file Globals.hpp.

Here is the caller graph for this function:

§ smallLength()

double Globals::smallLength ( ) const
inline
Returns
the length of the small VANDLE bar in cm

Definition at line 207 of file Globals.hpp.

§ smallLengthTime()

double Globals::smallLengthTime ( ) const
inline
Returns
the length of the small VANDLE bar in ns

Definition at line 210 of file Globals.hpp.

Here is the caller graph for this function:

§ speedOfLight()

double Globals::speedOfLight ( ) const
inline
Returns
the speed of light in cm/ns

Definition at line 215 of file Globals.hpp.

§ speedOfLightBig()

double Globals::speedOfLightBig ( ) const
inline
Returns
the speed of light in the Big VANDLE bars in cm/ns

Definition at line 218 of file Globals.hpp.

§ speedOfLightMedium()

double Globals::speedOfLightMedium ( ) const
inline
Returns
the speed of light in the medium VANDLE bars in cm/ns

Definition at line 221 of file Globals.hpp.

§ speedOfLightSmall()

double Globals::speedOfLightSmall ( ) const
inline
Returns
the speed of light in the small VANDLE bars in cm/ns

Definition at line 224 of file Globals.hpp.

§ systemClockFreqInHz()

double Globals::systemClockFreqInHz ( ) const
inline
Returns
the frequency of the system clock in Hz

Definition at line 234 of file Globals.hpp.

§ traceDelay()

double Globals::traceDelay ( ) const
inline
Returns
the trace delay of the traces in ns

Definition at line 237 of file Globals.hpp.

Here is the caller graph for this function:

§ trapFiltPars()

std::pair<TrapFilterParameters, TrapFilterParameters> Globals::trapFiltPars ( const std::string &  str) const
inline
Returns
the trapezoidal filter parameters for the requested detector type:subtype

Definition at line 266 of file Globals.hpp.

Here is the caller graph for this function:

§ WarnOfUnknownParameter()

void Globals::WarnOfUnknownParameter ( Messenger m,
pugi::xml_node_iterator &  it 
)
private

Warn that we have an unknown parameter in the XML configuration file

Parameters
[in]m: an instance of the messenger to send the warning
[in]it: an iterator pointing to the location of the unknown

Definition at line 292 of file Globals.cpp.

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

§ waveformRange()

std::pair<unsigned int, unsigned int> Globals::waveformRange ( const std::string &  str) const
inline
Returns
the waveform range for standard PMT signals

Definition at line 244 of file Globals.hpp.

Here is the caller graph for this function:

Field Documentation

§ adcClockInSeconds_

double Globals::adcClockInSeconds_
private

adc clock in second

Definition at line 322 of file Globals.hpp.

§ bigLength_

double Globals::bigLength_
private

length of big VANDLE bars in cm

Definition at line 328 of file Globals.hpp.

§ bitResolution_

double Globals::bitResolution_
private

The Bit resolution of the digitizer that we used.

Definition at line 323 of file Globals.hpp.

§ cfdPars_

std::map<std::string, std::pair<double, double> > Globals::cfdPars_
private

Map containing all of the parameters to be used in the cfd analyzer for a type:subtype.

Definition at line 346 of file Globals.hpp.

§ clockInSeconds_

double Globals::clockInSeconds_
private

the ACQ clock in seconds

Definition at line 324 of file Globals.hpp.

§ configFile_

std::string Globals::configFile_
private

The configuration file.

Definition at line 350 of file Globals.hpp.

§ discriminationStart_

double Globals::discriminationStart_
private

starting sample for the n-gamma discrimination

Definition at line 325 of file Globals.hpp.

§ eventInSeconds_

double Globals::eventInSeconds_
private

event width in seconds

Definition at line 326 of file Globals.hpp.

§ eventWidth_

int Globals::eventWidth_
private

the size of the events

Definition at line 342 of file Globals.hpp.

§ filterClockInSeconds_

double Globals::filterClockInSeconds_
private

filter clock in seconds

Definition at line 327 of file Globals.hpp.

§ fitPars_

std::map<std::string, std::pair<double, double> > Globals::fitPars_
private

Map containing all of the parameters to be used in the fitting analyzer for a type:subtype.

Definition at line 345 of file Globals.hpp.

§ hasRaw_

bool Globals::hasRaw_
private

True for plotting Raw Histograms in DAMM.

Definition at line 320 of file Globals.hpp.

§ hasReject_

bool Globals::hasReject_
private

Has a rejection region.

Definition at line 319 of file Globals.hpp.

§ instance

Globals * Globals::instance = NULL
staticprivate

Create the static instance of the class.

Definition at line 309 of file Globals.hpp.

§ mediumLength_

double Globals::mediumLength_
private

length of medium VANDLE bars in cm

Definition at line 329 of file Globals.hpp.

§ neutronMass_

double Globals::neutronMass_
private

mass of neutrons in MeV/c/c

Definition at line 330 of file Globals.hpp.

§ numTraces_

unsigned short Globals::numTraces_
private

number of traces to plot

Definition at line 354 of file Globals.hpp.

§ outputFilename_

std::string Globals::outputFilename_
private

Output Filename.

Definition at line 349 of file Globals.hpp.

§ outputPath_

std::string Globals::outputPath_
private

The path to additional configuration files.

Definition at line 351 of file Globals.hpp.

§ qdcCompression_

double Globals::qdcCompression_
private

QDC compression factor for VANDLE related plots.

Definition at line 331 of file Globals.hpp.

§ reject_

std::vector<std::pair<int, int> > Globals::reject_
private

rejection range in time

Definition at line 356 of file Globals.hpp.

§ revision_

std::string Globals::revision_
private

the pixie revision

Definition at line 352 of file Globals.hpp.

§ sigmaBaselineThresh_

double Globals::sigmaBaselineThresh_
private

threshold on fitting for Std dev. of the baseline

Definition at line 333 of file Globals.hpp.

§ siPmtSigmaBaselineThresh_

double Globals::siPmtSigmaBaselineThresh_
private

threshold on fitting for Std dev. of the baseline for SiPMTs

Definition at line 334 of file Globals.hpp.

§ smallLength_

double Globals::smallLength_
private

length of small VANDLE bars in cm

Definition at line 332 of file Globals.hpp.

§ speedOfLight_

double Globals::speedOfLight_
private

speed of light in cm/ns

Definition at line 335 of file Globals.hpp.

§ speedOfLightBig_

double Globals::speedOfLightBig_
private

speed of light in big VANDLE bars in cm/ns

Definition at line 336 of file Globals.hpp.

§ speedOfLightMedium_

double Globals::speedOfLightMedium_
private

speed of light in medium VANDLE bars in cm/ns

Definition at line 337 of file Globals.hpp.

§ speedOfLightSmall_

double Globals::speedOfLightSmall_
private

speed of light in small VANDLE bars in cm/ns

Definition at line 338 of file Globals.hpp.

§ sysClockFreqInHz_

double Globals::sysClockFreqInHz_
private

frequency of the system clock

Definition at line 339 of file Globals.hpp.

§ traceDelay_

double Globals::traceDelay_
private

the trace delay in ns

Definition at line 340 of file Globals.hpp.

§ trapFiltPars_

std::map<std::string, std::pair<TrapFilterParameters, TrapFilterParameters> > Globals::trapFiltPars_
private

Map containing all of the trapezoidal filter parameters for a given type:subtype.

Definition at line 347 of file Globals.hpp.

§ waveformRanges_

std::map<std::string, std::pair<unsigned int, unsigned int> > Globals::waveformRanges_
private

Map containing ranges for the waveforms.

Definition at line 344 of file Globals.hpp.


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