Auxiliary class for PMT thresholds.
More...
#include <JPMTThreshold.hh>
Auxiliary class for PMT thresholds.
Definition at line 18 of file JPMTThreshold.hh.
JDATABASE::JPMTThreshold::JPMTThreshold |
( |
| ) |
|
|
inline |
JDATABASE::JPMTThreshold::JPMTThreshold |
( |
const int |
id, |
|
|
const int |
run |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
id | detector identifier |
run | run number |
Definition at line 39 of file JPMTThreshold.hh.
void configure(const int id, const int run)
Configure PMT thresholds for given detector and run.
void JDATABASE::JPMTThreshold::configure |
( |
const int |
id, |
|
|
const int |
run |
|
) |
| |
|
inline |
Configure PMT thresholds for given detector and run.
- Parameters
-
id | detector identifier |
run | run number |
Definition at line 51 of file JPMTThreshold.hh.
void configure(const int id, const int run)
Configure PMT thresholds for given detector and run.
const char *const PMT_THRESHOLD_t
parameter name of PMT threshold
Configure PMT run setup parameters for given detector and run.
- Parameters
-
id | detector identifier |
run | run number |
parameter | parameter name |
Definition at line 83 of file JPMTRunsetupParams.hh.
98 if (rs >> parameters) {
108 if (parameters.NAME == parameter) {
119 if (parameters.PAR_OID == upars.OID && parameters.ISINPUT ==
'Y') {
120 if (parameters.VALUE !=
"") {
124 if (parameters.ORDER > value.first) {
126 value.first = parameters.ORDER;
128 istringstream(parameters.VALUE) >> value.second;
Auxiliary data structure for fallback order of PMT data.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
JDetectorsHelper & getDetector()
Auxiliary function for helper object initialisation.
const char *const OPTICS_t
sub-system of PMT
ResultSet & getResultSet(const std::string &query)
Get result set.
Template definition for getting table specific selector.
Get PMT parameter value for given UPI of PMT.
- Parameters
-
- Returns
- PMT parameter value
Definition at line 145 of file JPMTRunsetupParams.hh.
147 typename JPMTRunsetupParams::const_iterator p = this->find(upi.
toString()), p0 = p,
p1 = p;
155 JUPI_t(upi.
getPBS(),
"", JUPI_t::DEFAULT_VERSION, JUPI_t::DEFAULT_NUMBER)
158 for (
const JUPI_t&
i : buffer) {
159 if ((p = this->find(
i.toString())) != this->end()) {
160 if (
p1 == this->end() || p->first >
p1->first) {
166 if (
p1 != this->end()) {
167 return { p0 !=
p1,
p1->second.second };
170 THROW(JDatabaseException,
"Invalid UPI " << upi);
const std::string & getVariant() const
Get variant.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Universal product identifier (UPI).
const JPBS_t & getPBS() const
Get PBS.
std::string toString() const
Convert UPI.
The documentation for this class was generated from the following file: