PAASS
Software suite to Acquire and Analyze Data from Pixie16
|
Singleton class holding global parameters. More...
#include <Globals.hpp>
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, TrapFilterParameters > | trapFiltPars (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 Globals * | get () |
static Globals * | get (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 Globals * | instance = NULL |
Create the static instance of the class. More... | |
Singleton class holding global parameters.
Definition at line 152 of file Globals.hpp.
Globals::~Globals | ( | ) |
Definition at line 313 of file Globals.cpp.
|
private |
Default Constructor
Definition at line 14 of file Globals.cpp.
|
private |
Overload of the constructor.
|
inline |
Definition at line 169 of file Globals.hpp.
|
inline |
Definition at line 175 of file Globals.hpp.
|
inline |
Definition at line 178 of file Globals.hpp.
|
inline |
Definition at line 172 of file Globals.hpp.
|
inline |
Definition at line 251 of file Globals.hpp.
|
inline |
Definition at line 181 of file Globals.hpp.
|
inline |
Definition at line 289 of file Globals.hpp.
|
inline |
Definition at line 184 of file Globals.hpp.
|
inline |
Definition at line 187 of file Globals.hpp.
|
inline |
Definition at line 240 of file Globals.hpp.
|
inline |
Definition at line 190 of file Globals.hpp.
|
inline |
Definition at line 258 of file Globals.hpp.
|
static |
Instance is created upon first call
Definition at line 300 of file Globals.cpp.
|
static |
Instance is created upon first call
Definition at line 307 of file Globals.cpp.
|
inline |
Definition at line 166 of file Globals.hpp.
|
inline |
Definition at line 163 of file Globals.hpp.
|
inline |
Definition at line 193 of file Globals.hpp.
|
inline |
Definition at line 196 of file Globals.hpp.
|
inline |
Definition at line 201 of file Globals.hpp.
|
inline |
Definition at line 293 of file Globals.hpp.
|
private |
copy constructor
|
inline |
Definition at line 274 of file Globals.hpp.
|
inline |
[in] | fileName | : the path for the configuration files |
Definition at line 279 of file Globals.hpp.
|
inline |
Definition at line 204 of file Globals.hpp.
|
inline |
Definition at line 298 of file Globals.hpp.
|
inline |
Definition at line 286 of file Globals.hpp.
|
private |
Check that some of the values make sense
Definition at line 247 of file Globals.cpp.
|
inline |
Sets output Filename from scan interface
Definition at line 301 of file Globals.hpp.
|
inline |
Definition at line 227 of file Globals.hpp.
|
inline |
Definition at line 231 of file Globals.hpp.
|
inline |
Definition at line 207 of file Globals.hpp.
|
inline |
Definition at line 210 of file Globals.hpp.
|
inline |
Definition at line 215 of file Globals.hpp.
|
inline |
Definition at line 218 of file Globals.hpp.
|
inline |
Definition at line 221 of file Globals.hpp.
|
inline |
Definition at line 224 of file Globals.hpp.
|
inline |
Definition at line 234 of file Globals.hpp.
|
inline |
Definition at line 237 of file Globals.hpp.
|
inline |
Definition at line 266 of file Globals.hpp.
|
private |
Warn that we have an unknown parameter in the XML configuration file
[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.
|
inline |
Definition at line 244 of file Globals.hpp.
|
private |
adc clock in second
Definition at line 322 of file Globals.hpp.
|
private |
length of big VANDLE bars in cm
Definition at line 328 of file Globals.hpp.
|
private |
The Bit resolution of the digitizer that we used.
Definition at line 323 of file Globals.hpp.
|
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.
|
private |
the ACQ clock in seconds
Definition at line 324 of file Globals.hpp.
|
private |
The configuration file.
Definition at line 350 of file Globals.hpp.
|
private |
starting sample for the n-gamma discrimination
Definition at line 325 of file Globals.hpp.
|
private |
event width in seconds
Definition at line 326 of file Globals.hpp.
|
private |
the size of the events
Definition at line 342 of file Globals.hpp.
|
private |
filter clock in seconds
Definition at line 327 of file Globals.hpp.
|
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.
|
private |
True for plotting Raw Histograms in DAMM.
Definition at line 320 of file Globals.hpp.
|
private |
Has a rejection region.
Definition at line 319 of file Globals.hpp.
|
staticprivate |
Create the static instance of the class.
Definition at line 309 of file Globals.hpp.
|
private |
length of medium VANDLE bars in cm
Definition at line 329 of file Globals.hpp.
|
private |
mass of neutrons in MeV/c/c
Definition at line 330 of file Globals.hpp.
|
private |
number of traces to plot
Definition at line 354 of file Globals.hpp.
|
private |
Output Filename.
Definition at line 349 of file Globals.hpp.
|
private |
The path to additional configuration files.
Definition at line 351 of file Globals.hpp.
|
private |
QDC compression factor for VANDLE related plots.
Definition at line 331 of file Globals.hpp.
|
private |
rejection range in time
Definition at line 356 of file Globals.hpp.
|
private |
the pixie revision
Definition at line 352 of file Globals.hpp.
|
private |
threshold on fitting for Std dev. of the baseline
Definition at line 333 of file Globals.hpp.
|
private |
threshold on fitting for Std dev. of the baseline for SiPMTs
Definition at line 334 of file Globals.hpp.
|
private |
length of small VANDLE bars in cm
Definition at line 332 of file Globals.hpp.
|
private |
speed of light in cm/ns
Definition at line 335 of file Globals.hpp.
|
private |
speed of light in big VANDLE bars in cm/ns
Definition at line 336 of file Globals.hpp.
|
private |
speed of light in medium VANDLE bars in cm/ns
Definition at line 337 of file Globals.hpp.
|
private |
speed of light in small VANDLE bars in cm/ns
Definition at line 338 of file Globals.hpp.
|
private |
frequency of the system clock
Definition at line 339 of file Globals.hpp.
|
private |
the trace delay in ns
Definition at line 340 of file Globals.hpp.
|
private |
Map containing all of the trapezoidal filter parameters for a given type:subtype.
Definition at line 347 of file Globals.hpp.
|
private |
Map containing ranges for the waveforms.
Definition at line 344 of file Globals.hpp.