Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
Globals Class Reference

Singleton class holding global parameters. More...

#include <Globals.hpp>

Collaboration diagram for Globals:

Public Member Functions

bool hasReject () const
 
double adcClockInSeconds () const
 
double clockInSeconds () const
 
double eventInSeconds () const
 
double energyContraction () const
 
double filterClockInSeconds () const
 
double bigLength () const
 
double bigLengthTime () const
 
double mediumLength () const
 
double mediumLengthTime () const
 
double neutronMass () const
 
double smallLength () const
 
double smallLengthTime () const
 
double speedOfLight () const
 
double speedOfLightBig () const
 
double speedOfLightMedium () const
 
double speedOfLightSmall () const
 
double discriminationStart () const
 
double qdcCompression () const
 
double sigmaBaselineThresh () const
 
double siPmtSigmaBaselineThresh () const
 
double traceDelay () const
 
double traceLength () const
 
double trapezoidalWalk () const
 
int eventWidth () const
 
std::pair< unsigned int, unsigned int > waveformRange () const
 
std::pair< unsigned int, unsigned int > siPmtWaveformRange () const
 
std::pair< double, double > smallVandlePars ()
 
std::pair< double, double > mediumVandlePars ()
 
std::pair< double, double > bigVandlePars ()
 
std::pair< double, double > singleBetaPars ()
 
std::pair< double, double > doubleBetaPars ()
 
std::pair< double, double > pulserPars ()
 
std::pair< double, double > tvandlePars ()
 
std::pair< double, double > liquidScintPars ()
 
std::string configPath (std::string fileName)
 
std::string revision () const
 
unsigned int maxWords () const
 
unsigned short numTraces () const
 
std::vector< std::pair< int, int > > rejectRegions () const
 

Static Public Member Functions

static Globalsget ()
 

Private Member Functions

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

Private Attributes

bool hasReject_
 Has a rejected.
 
double adcClockInSeconds_
 adc clock in second
 
double clockInSeconds_
 the ACQ clock in seconds
 
double energyContraction_
 energy contraction
 
double eventInSeconds_
 event width in seconds
 
double filterClockInSeconds_
 filter clock in seconds
 
double bigLength_
 length of big VANDLE bars in cm
 
double mediumLength_
 length of medium VANDLE bars in cm
 
double neutronMass_
 mass of neutrons in MeV/c/c
 
double smallLength_
 length of small VANDLE bars in cm
 
double speedOfLight_
 speed of light in cm/ns
 
double speedOfLightBig_
 speed of light in big VANDLE bars in cm/ns
 
double speedOfLightMedium_
 speed of light in medium VANDLE bars in cm/ns
 
double speedOfLightSmall_
 speed of light in small VANDLE bars in cm/ns
 
double discriminationStart_
 starting sample for the n-gamma discrimination
 
double qdcCompression_
 QDC compression factor for VANDLE related plots.
 
double sigmaBaselineThresh_
 threshold on fitting for Std dev. of the baseline
 
double siPmtSigmaBaselineThresh_
 threshold on fitting for Std dev. of the baseline for SiPMTs
 
double traceDelay_
 the trace delay in ns
 
double traceLength_
 the trace length in ns
 
double trapezoidalWalk_
 the approximate walk in ns of the trap filter
 
int eventWidth_
 the size of the events
 
std::pair< unsigned int, unsigned int > waveformRange_
 Range for the waveform.
 
std::pair< unsigned int, unsigned int > siPmtWaveformRange_
 Range for the waveform of a Fast SiPmt.
 
std::pair< double, double > smallVandlePars_
 small VANDLE parameters for fitting
 
std::pair< double, double > mediumVandlePars_
 medium VANDLE parameters for fitting
 
std::pair< double, double > bigVandlePars_
 big VANDLE parameters for fitting
 
std::pair< double, double > singleBetaPars_
 Single Beta parameters for fitting.
 
std::pair< double, double > doubleBetaPars_
 Double Beta parameters for fitting.
 
std::pair< double, double > pulserPars_
 Pulser parameters for fitting.
 
std::pair< double, double > tvandlePars_
 Teeny-VANDEL parameters for fitting.
 
std::pair< double, double > liquidScintPars_
 liquid scint pars for fitting
 
std::string configPath_
 configuration path
 
std::string revision_
 the pixie revision
 
unsigned int maxWords_
 maximum words in the
 
unsigned short numTraces_
 number of traces to plot
 
std::vector< std::pair< int, int > > reject_
 rejection range in time
 

Static Private Attributes

static Globalsinstance
 Create the static instance of the class.
 

Detailed Description

Singleton class holding global parameters.

Constructor & Destructor Documentation

Globals::Globals ( )
private

Default Constructor

Member Function Documentation

double Globals::adcClockInSeconds ( ) const
inline
Returns
the adc clock in seconds
double Globals::bigLength ( ) const
inline
Returns
the length of the big VANDLE bars length in cm
double Globals::bigLengthTime ( ) const
inline
Returns
the length of the big VANDLE bars in ns
std::pair<double,double> Globals::bigVandlePars ( )
inline
Returns
the big VANDLE fitting parameters
double Globals::clockInSeconds ( ) const
inline
Returns
the pixie clock in seconds
std::string Globals::configPath ( std::string  fileName)
inline
Returns
Joined path to the passed filename by adding the configPath_ This is temporary solution as long as there are some files not incorporated into Config.xml
Parameters
[in]fileName: the path for the configuration files
double Globals::discriminationStart ( ) const
inline
Returns
the starting point in the trace for the n-gamma discrimination
std::pair<double,double> Globals::doubleBetaPars ( )
inline
Returns
the Double Beta detector fitting parameters
double Globals::energyContraction ( ) const
inline
Returns
the energy contraction
double Globals::eventInSeconds ( ) const
inline
Returns
the event size in seconds
int Globals::eventWidth ( ) const
inline
Returns
the event width
double Globals::filterClockInSeconds ( ) const
inline
Returns
the filter clock in seconds
static Globals* Globals::get ( )
static
Returns
only instance of Globals class.
bool Globals::hasReject ( ) const
inline
Returns
true if any reject region was defined
std::pair<double,double> Globals::liquidScintPars ( )
inline
Returns
the Liquid Scintillator fitting paramters
unsigned int Globals::maxWords ( ) const
inline
Returns
the maximum words
double Globals::mediumLength ( ) const
inline
Returns
the length of the medium VANDLE bars in cm
double Globals::mediumLengthTime ( ) const
inline
Returns
the length of the medium VANDLE bars in ns
std::pair<double,double> Globals::mediumVandlePars ( )
inline
Returns
the medium VANDLE fitting parameters
double Globals::neutronMass ( ) const
inline
Returns
the mass of the neutron in MeV/c/c
unsigned short Globals::numTraces ( ) const
inline
Returns
max number of traces stored in 2D spectra with traces. If not set, by default is 16.
std::pair<double,double> Globals::pulserPars ( )
inline
Returns
the Pulser fitting parameters
double Globals::qdcCompression ( ) const
inline
Returns
the compression factor for the QDCs from the trace (VANDLE related)
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
std::string Globals::revision ( ) const
inline
Returns
the revision for the data
void Globals::SanityCheck ( )
private

Check that some of the values make sense

double Globals::sigmaBaselineThresh ( ) const
inline
Returns
the cutoff on the std deviation of the baseline for fitting
std::pair<double,double> Globals::singleBetaPars ( )
inline
Returns
the Single Beta detector fitting parameters
double Globals::siPmtSigmaBaselineThresh ( ) const
inline
Returns
the cutoff on the std deviation of the baseline for fitting
std::pair<unsigned int, unsigned int> Globals::siPmtWaveformRange ( ) const
inline
Returns
the waveform range for a fast SiPMT signal
double Globals::smallLength ( ) const
inline
Returns
the length of the small VANDLE bar in cm
double Globals::smallLengthTime ( ) const
inline
Returns
the length of the small VANDLE bar in ns
std::pair<double,double> Globals::smallVandlePars ( )
inline
Returns
the small VANDLE fitting parameters
double Globals::speedOfLight ( ) const
inline
Returns
the speed of light in cm/ns
double Globals::speedOfLightBig ( ) const
inline
Returns
the speed of light in the Big VANDLE bars in cm/ns
double Globals::speedOfLightMedium ( ) const
inline
Returns
the speed of light in the medium VANDLE bars in cm/ns
double Globals::speedOfLightSmall ( ) const
inline
Returns
the speed of light in the small VANDLE bars in cm/ns
double Globals::traceDelay ( ) const
inline
Returns
the trace delay of the traces in ns
double Globals::traceLength ( ) const
inline
Returns
the trace length of the traces in ns
double Globals::trapezoidalWalk ( ) const
inline
Returns
the approximate size of the trapezoidal walk in ns
std::pair<double,double> Globals::tvandlePars ( )
inline
Returns
the Teeny-VANDLE fitting parameters
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
std::pair<unsigned int, unsigned int> Globals::waveformRange ( ) const
inline
Returns
the waveform range for standard PMT signals

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