Jpp
19.0.0
the software that should make you happy
|
Auxiliary class for map of PMT parameters. More...
#include <JPMTParametersMap.hh>
Classes | |
class | JPMTParametersMapHelper |
Auxiliary class for I/O of PMT parameters map. More... | |
Public Member Functions | |
JPMTParametersMap (const JPMTParameters ¶meters=JPMTParameters()) | |
Constructor. More... | |
JPMTParametersMap (const char *const file_name) | |
Constructor. More... | |
const JPMTParameters & | getPMTParameters (const JPMTIdentifier &id) const |
Get PMT parameters. More... | |
double | getQE (const JPMTIdentifier &id) const |
Get QE of given PMT. More... | |
double | getHitProbability (const JPMTIdentifier &id) const |
Get ratio of hit probabilities of given PMT. More... | |
const JPMTParameters & | getDefaultPMTParameters () const |
Get default PMT parameters. More... | |
JPMTParameters & | getDefaultPMTParameters () |
Get default PMT parameters. More... | |
void | setDefaultPMTParameters (const JPMTParameters ¶meters) |
Set default PMT parameters. More... | |
double | getQE () const |
Get global QE. More... | |
void | setQE (const double QE) |
Set global QE. More... | |
double | getMu () const |
Get expectation value for number of photo-electrons given two-fold (or higher) coincidence rate. More... | |
bool | is_valid () const |
Check validity of PMT parameters. More... | |
void | convertHitProbabilityToQE (const double mu) |
Convert the hit probabilities to QEs for given expectation value. More... | |
JPMTParameters & | operator[] (const JPMTIdentifier &id) |
Access parameters corresponding to given PMT identifier. More... | |
void | load (const char *file_name) |
Load from input file. More... | |
void | store (const char *file_name) const |
Store to output file. More... | |
Static Public Member Functions | |
static JEquationParameters & | getEquationParameters () |
Get equation parameters. More... | |
static void | setEquationParameters (const JEquationParameters &equation) |
Set equation parameters. More... | |
static void | Throw (const bool option) |
Enable/disable throw option. More... | |
template<class JException_t > | |
static int | Throw (const JException_t &error, const int value=-1) |
Throw exception or return error. More... | |
Public Attributes | |
JComment | comment |
Protected Attributes | |
JPMTParameters | defaultPMTParameters |
Default PMT parameters. More... | |
double | QE |
Global QE. More... | |
double | mu |
Expectation value for number of photo-electrons given two-fold (or higher) coincidence rate. More... | |
Static Protected Attributes | |
static bool | do_throw = true |
throw option More... | |
Friends | |
std::istream & | operator>> (std::istream &in, JPMTParametersMap &object) |
Stream input. More... | |
std::ostream & | operator<< (std::ostream &out, const JPMTParametersMap &object) |
Stream output. More... | |
Auxiliary class for map of PMT parameters.
Input syntax as follows:
QE=<value> mu=<value>
%.<key>=<value>
PMT=<module> <pmt> <PMT parameters>
pmt=<module> <pmt> <key>=<value>[, <key>=<value>]
file=<file name>
where
The global QE is applied as a multiplicative factor to the default and PMT specific QEs. It is set (read overwritten) in the JTriggerEfficiency[RunByRun].sh scripts.
The default values are provided by the method getDefaultPMTParameters and can also be modified using method setDefaultPMTParameters. If no optional values are given, the default values are maintained.
Finally, <PMT parameters> corresponds to the list of PMT parameter values that should be compatible with the I/O methods of the JDETECTOR::JPMTParameters data structure.
Note that multiple input sequences should be seperated by a semicolumn ';' or be terminated by a newline. When multiple input sequences appear for the same target, the last sequence prevails.
Definition at line 89 of file JPMTParametersMap.hh.
|
inline |
Constructor.
parameters | PMT parameters |
Definition at line 100 of file JPMTParametersMap.hh.
|
inline |
Constructor.
file_name | file name |
Definition at line 114 of file JPMTParametersMap.hh.
|
inline |
Get PMT parameters.
This method returns the default PMT parameters if the parameters corresponding to the given PMT identifier have not been defined.
Note that the value of QE as part of the return value has been scaled with the global QE of the PMT parameters map.
id | PMT identifier |
Definition at line 140 of file JPMTParametersMap.hh.
|
inline |
Get QE of given PMT.
id | PMT identifier |
Definition at line 164 of file JPMTParametersMap.hh.
|
inline |
Get ratio of hit probabilities of given PMT.
id | PMT identifier |
Definition at line 176 of file JPMTParametersMap.hh.
|
inline |
Get default PMT parameters.
Definition at line 189 of file JPMTParametersMap.hh.
|
inline |
Get default PMT parameters.
Definition at line 200 of file JPMTParametersMap.hh.
|
inline |
Set default PMT parameters.
parameters | PMT parameters |
Definition at line 211 of file JPMTParametersMap.hh.
|
inline |
|
inline |
|
inline |
Get expectation value for number of photo-electrons given two-fold (or higher) coincidence rate.
Definition at line 244 of file JPMTParametersMap.hh.
|
inline |
Check validity of PMT parameters.
Definition at line 255 of file JPMTParametersMap.hh.
|
inline |
Convert the hit probabilities to QEs for given expectation value.
The expectation value corresponds to the number of photo-electrons given the multiplicity range of coincidences as specified at JCalibrateK40.cc.
mu | expectation value |
Definition at line 302 of file JPMTParametersMap.hh.
|
inline |
Access parameters corresponding to given PMT identifier.
Note: The default PMT parameters are inserted if no parameters for the given PMT identifier are contained at the time of the function call.
id | PMT identifier |
Definition at line 337 of file JPMTParametersMap.hh.
|
inlinestatic |
Get equation parameters.
Definition at line 417 of file JPMTParametersMap.hh.
|
inlinestatic |
Set equation parameters.
equation | equation parameters |
Definition at line 430 of file JPMTParametersMap.hh.
|
inlineinherited |
Load from input file.
file_name | file name |
Definition at line 30 of file JObjectStreamIO.hh.
|
inlineinherited |
Store to output file.
file_name | file name |
Definition at line 41 of file JObjectStreamIO.hh.
|
inlinestaticinherited |
|
inlinestaticinherited |
|
friend |
Stream input.
in | input stream |
object | PMT parameters map |
Definition at line 356 of file JPMTParametersMap.hh.
|
friend |
Stream output.
out | output stream |
object | PMT parameters map |
Definition at line 392 of file JPMTParametersMap.hh.
JComment JDETECTOR::JPMTParametersMap::comment |
Definition at line 436 of file JPMTParametersMap.hh.
|
protected |
Default PMT parameters.
Definition at line 442 of file JPMTParametersMap.hh.
|
protected |
Global QE.
Definition at line 447 of file JPMTParametersMap.hh.
|
protected |
Expectation value for number of photo-electrons given two-fold (or higher) coincidence rate.
Definition at line 453 of file JPMTParametersMap.hh.
|
staticprotectedinherited |