Data structure for PMT threshold calibration.
More...
#include <JDetectorCalibration.hh>
Data structure for PMT threshold calibration.
Definition at line 416 of file JDetectorCalibration.hh.
JDETECTOR::JPMTThresholdCalibration_t::JPMTThresholdCalibration_t |
( |
| ) |
|
|
inline |
JDETECTOR::JPMTThresholdCalibration_t::JPMTThresholdCalibration_t |
( |
const JUPI_t & |
upi, |
|
|
const std::string & |
result, |
|
|
const double |
threshold, |
|
|
const std::vector< int > & |
runNumbers = std::vector<int>(0) |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
upi | UPI |
result | result |
threshold | threshold |
runNumbers | run numbers |
Definition at line 434 of file JDetectorCalibration.hh.
JUPI_t()
Default constructor.
std::vector< int > runNumberList
const JUPI_t& JDATABASE::JUPI_t::getUPI |
( |
| ) |
const |
|
inlineinherited |
Get UPI.
- Returns
- UPI
Definition at line 100 of file JUPI_t.hh.
102 return static_cast<const JUPI_t&
>(*this);
Universal product identifier (UPI).
const std::string& JDATABASE::JUPI_t::getVariant |
( |
| ) |
const |
|
inlineinherited |
Get variant.
- Returns
- variant
Definition at line 111 of file JUPI_t.hh.
int JDATABASE::JUPI_t::getVersion |
( |
| ) |
const |
|
inlineinherited |
Get version.
- Returns
- version
Definition at line 122 of file JUPI_t.hh.
int JDATABASE::JUPI_t::getNumber |
( |
| ) |
const |
|
inlineinherited |
Get serial number.
- Returns
- serial number
Definition at line 133 of file JUPI_t.hh.
Convert UPI.
- Returns
- UPI
Definition at line 144 of file JUPI_t.hh.
146 std::ostringstream os;
JDATABASE::JUPI_t::ClassDefNV |
( |
JUPI_t |
, |
|
|
1 |
|
|
) |
| |
|
inherited |
JDATABASE::JPBS_t::ClassDefNV |
( |
JPBS_t |
, |
|
|
1 |
|
|
) |
| |
|
inherited |
const JPBS_t& JDATABASE::JPBS_t::getPBS |
( |
| ) |
const |
|
inlineinherited |
Get PBS.
- Returns
- PBS
Definition at line 101 of file JPBS_t.hh.
103 return static_cast<const JPBS_t&
>(*this);
Product breakdown structure (PBS).
bool JDATABASE::JPBS_t::is_valid |
( |
| ) |
const |
|
inlineinherited |
Check validity.
- Returns
- true if valid; else false
Definition at line 112 of file JPBS_t.hh.
114 return !this->empty();
Convert PMT threshold calibration to JSon.
- Parameters
-
js | json |
object | PMT threshold calibration |
Definition at line 451 of file JDetectorCalibration.hh.
453 std::ostringstream os;
455 os <<
object.getUPI();
457 js[
UPI_t] = os.str();
464 {
Values_t,
object.runNumberList } };
static const std::string Name_t
static const std::string Parameters_t
static const std::string Unit_t
static const std::string UPI_t
static const std::string Values_t
static const std::string RunNumber_t
static const std::string Test_t
static const std::string Unitless_t
static const std::string PMTThreshold_t
static const std::string Result_t
std::vector< std::string > get_string_array(T value)
Cast single value to array of strings, conform the DB-format.
Convert JSon to PMT threshold calibration.
- Parameters
-
js | json |
object | PMT threshold calibration |
Definition at line 474 of file JDetectorCalibration.hh.
478 stringstream
is(js.at(
UPI_t).get<
string>());
static const std::string Parameters_t
double retrieve_value(std::vector< std::string > string_value_array)
Retrieve value from json array of strings.
static const std::string UPI_t
static const std::string Values_t
JUPI_t()
Default constructor.
static const std::string Test_t
static const std::string Result_t
std::string JDETECTOR::JPMTThresholdCalibration_t::result |
double JDETECTOR::JPMTThresholdCalibration_t::threshold |
std::vector<int> JDETECTOR::JPMTThresholdCalibration_t::runNumberList |
const char JDATABASE::JUPI_t::SEPARATOR = '/' |
|
staticinherited |
Separator between PBS, variant and version.
Definition at line 36 of file JUPI_t.hh.
const int JDATABASE::JUPI_t::DEFAULT_VERSION = -1 |
|
staticinherited |
Default version.
Definition at line 38 of file JUPI_t.hh.
const int JDATABASE::JUPI_t::DEFAULT_NUMBER = -1 |
|
staticinherited |
Default number.
Definition at line 39 of file JUPI_t.hh.
int JDATABASE::JUPI_t::version |
|
protectedinherited |
int JDATABASE::JUPI_t::number |
|
protectedinherited |
const char JDATABASE::JPBS_t::DOT = '.' |
|
staticinherited |
Separator between PBS values.
Definition at line 33 of file JPBS_t.hh.
The documentation for this struct was generated from the following file: