Data structure for PMT high-voltage calibration.  
 More...
#include <JDetectorCalibration.hh>
|  | 
| static const char | SEPARATOR = '/' | 
|  | Separator between PBS, variant and version.  More... 
 | 
|  | 
| static const char | DOT = '.' | 
|  | Separator between PBS values.  More... 
 | 
|  | 
Data structure for PMT high-voltage calibration. 
Definition at line 249 of file JDetectorCalibration.hh.
  
  | 
        
          | JDETECTOR::JHVCalibration_t::JHVCalibration_t | ( |  | ) |  |  | inline | 
 
Default constructor. 
Definition at line 255 of file JDetectorCalibration.hh.
std::vector< int > runNumbers
JUPI_t()
Default constructor. 
static const std::string Fail_t
 
 
 
  
  | 
        
          | JDETECTOR::JHVCalibration_t::JHVCalibration_t | ( | const JUPI_t & | upi, |  
          |  |  | const std::string & | result, |  
          |  |  | const double | hv, |  
          |  |  | const std::vector< int > | runNumberList = std::vector<int>(0), |  
          |  |  | const double | gain = 1.0 |  
          |  | ) |  |  |  | inline | 
 
Constructor. 
- Parameters
- 
  
    | upi | UPI |  | result | result |  | hv | HV |  | runNumberList | run numbers |  | gain | gain |  
 
Definition at line 273 of file JDetectorCalibration.hh.
std::vector< int > runNumbers
JUPI_t()
Default constructor. 
then $JPP_DIR examples JDetector JToT o $OUTPUT_FILE n N $NPE P gain
 
 
 
  
  | 
        
          | static int JDETECTOR::JHVCalibration_t::getVersion | ( |  | ) |  |  | inlinestatic | 
 
Get HV-tuning database test type. 
- Returns
- HV-tuning database test type 
Definition at line 291 of file JDetectorCalibration.hh.
static int & get_version()
Get reference to HV-tuning database test type. 
 
 
 
  
  | 
        
          | static void JDETECTOR::JHVCalibration_t::setVersion | ( | const int | version | ) |  |  | inlinestatic | 
 
Set HV-tuning database test type. 
- Parameters
- 
  
    | version | HV-tuning database test type |  
 
Definition at line 302 of file JDetectorCalibration.hh.
static int & get_version()
Get reference to HV-tuning database test type. 
 
 
 
  
  | 
        
          | static int& JDETECTOR::JHVCalibration_t::get_version | ( |  | ) |  |  | inlinestaticprivate | 
 
Get reference to HV-tuning database test type. 
- Returns
- HV-tuning database test type 
Definition at line 404 of file JDetectorCalibration.hh.
 
 
  
  | 
        
          | const JUPI_t& JDATABASE::JUPI_t::getUPI | ( |  | ) | const |  | inlineinherited | 
 
Get UPI. 
- Returns
- UPI 
Definition at line 97 of file JUPI_t.hh.
   99       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 108 of file JUPI_t.hh.
 
 
  
  | 
        
          | int JDATABASE::JUPI_t::getVersion | ( |  | ) | const |  | inlineinherited | 
 
Get version. 
- Returns
- version 
Definition at line 119 of file JUPI_t.hh.
 
 
  
  | 
        
          | int JDATABASE::JUPI_t::getNumber | ( |  | ) | const |  | inlineinherited | 
 
Get serial number. 
- Returns
- serial number 
Definition at line 130 of file JUPI_t.hh.
 
 
Convert UPI. 
- Returns
- UPI 
Definition at line 141 of file JUPI_t.hh.
  143       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 high-voltage calibration to JSon. 
- Parameters
- 
  
    | js | json2 |  | object | PMT high-voltage calibration |  
 
Definition at line 314 of file JDetectorCalibration.hh.
  320       os << 
object.getUPI();
 
  322       js[
UPI_t]                      = os.str();
 
static const std::string Volt_t
static const std::string Name_t
static const std::string Parameters_t
std::vector< int > runNumbers
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 Result_t
static const std::string PMTGain_t
std::string to_string(const T &value)
Convert value to string. 
static const std::string PMTSupplyVoltage_t
static int getVersion()
Get HV-tuning database test type. 
std::vector< std::string > get_string_array(T value)
Cast single value to array of strings, conform the DB-format. 
 
 
 
Convert JSon to PMT high-voltage calibration. 
- Parameters
- 
  
    | js | json |  | object | PMT high-voltage calibration |  
 
Definition at line 357 of file JDetectorCalibration.hh.
  361       stringstream 
is(js.at(
UPI_t).get<
string>());
 
  377             object.runNumbers.push_back(stoi(*
i));
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
static const std::string Parameters_t
*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
double retrieve_value(std::vector< std::string > string_value_array)
Retrieve value from json array of strings. 
#define MAKE_STRING(A)
Make string. 
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
static int getVersion()
Get HV-tuning database test type. 
 
 
 
      
        
          | double JDETECTOR::JHVCalibration_t::supplyVoltage | 
      
 
 
      
        
          | std::vector<int> JDETECTOR::JHVCalibration_t::runNumbers | 
      
 
 
      
        
          | double JDETECTOR::JHVCalibration_t::PMTgain | 
      
 
 
  
  | 
        
          | const char JDATABASE::JUPI_t::SEPARATOR = '/' |  | staticinherited | 
 
Separator between PBS, variant and version. 
Definition at line 35 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: