Jpp
|
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... | |
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... | |
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... | |
static int | Throw (const JException &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 163 of file JPMTParametersMap.hh.
|
inline |
Get ratio of hit probabilities of given PMT.
id | PMT identifier |
Definition at line 175 of file JPMTParametersMap.hh.
|
inline |
Get default PMT parameters.
Definition at line 188 of file JPMTParametersMap.hh.
|
inline |
Set default PMT parameters.
parameters | PMT parameters |
Definition at line 199 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 232 of file JPMTParametersMap.hh.
|
inline |
Check validity of PMT parameters.
Definition at line 243 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.
The survival probability is taken into account in the conversion (see method JDETECTOR::getSurvivalProbability).
mu | expectation value |
Definition at line 292 of file JPMTParametersMap.hh.
|
inlinestatic |
Get equation parameters.
Definition at line 388 of file JPMTParametersMap.hh.
|
inlinestatic |
Set equation parameters.
equation | equation parameters |
Definition at line 401 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 |
Throw exception or return error.
error | exception |
value | return code |
Definition at line 50 of file JThrow.hh.
|
friend |
Stream input.
in | input stream |
object | PMT parameters map |
Definition at line 327 of file JPMTParametersMap.hh.
|
friend |
Stream output.
out | output stream |
object | PMT parameters map |
Definition at line 363 of file JPMTParametersMap.hh.
JComment JDETECTOR::JPMTParametersMap::comment |
Definition at line 407 of file JPMTParametersMap.hh.
|
protected |
Default PMT parameters.
Definition at line 413 of file JPMTParametersMap.hh.
|
protected |
Global QE.
Definition at line 418 of file JPMTParametersMap.hh.
|
protected |
Expectation value for number of photo-electrons given two-fold (or higher) coincidence rate.
Definition at line 424 of file JPMTParametersMap.hh.
|
staticprotectedinherited |