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
Get fallback UPI.
- Parameters
-
- Returns
- UPI
Definition at line 57 of file JPMTRunsetupParams.hh.
59 std::ostringstream os;
const std::string & getVariant() const
Get variant.
const JPBS_t & getPBS() const
Get PBS.
Configure PMT run setup parameters for given detector and run.
- Parameters
-
id | detector identifier |
run | run number |
parameter | parameter name |
Definition at line 85 of file JPMTRunsetupParams.hh.
100 if (rs >> parameters) {
110 if (parameters.NAME == parameter) {
121 if (parameters.PAR_OID == upars.OID && parameters.ISINPUT ==
'Y') {
122 if (parameters.VALUE !=
"") {
123 istringstream(parameters.VALUE) >> (*this)[parameters.UPIFILTER];
*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
Function object for mapping serial number to object identifier of detector and vice versa...
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 139 of file JPMTRunsetupParams.hh.
141 typename JPMTRunsetupParams::const_iterator p = this->find(upi.
toString());
143 const bool is_default = (p == this->end());
146 p = this->find(
getUPI(upi));
149 if (p != this->end())
150 return { is_default, p->second };
152 THROW(JDatabaseException,
"Invalid UPI " << upi);
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
static std::string getUPI(const JUPI_t &upi)
Get fallback UPI.
std::string toString() const
Convert UPI.
The documentation for this class was generated from the following file: