Jpp  master_rocky-40-g5f0272dcd
the software that should make you happy
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
JDATABASE::JRunQuality Struct Reference

Auxiliary data structure for data quality. More...

#include <JRunQuality.hh>

Inheritance diagram for JDATABASE::JRunQuality:
TObject

Classes

struct  JEnabled
 
struct  JPrescaler
 

Public Member Functions

 JRunQuality ()
 
 JRunQuality (const int ID, const int run)
 Constructor. More...
 
void put (const std::string &key, const std::string &value)
 Put value at given key. More...
 
 ClassDef (JRunQuality, 4)
 

Static Public Member Functions

static const char *const getName ()
 Table name. More...
 

Public Attributes

std::string GIT
 GIT version used to write QA/QC data. More...
 
std::string JPP
 Jpp version used to take data (see JPrintMeta.cc) More...
 
int nb_of_meta
 Number of JMeta objects (see JPrintMeta.cc) More...
 
std::string UUID
 UUID of raw data file. More...
 
int detector
 detector identifier More...
 
int run
 run number More...
 
double livetime_s
 livetime of data takig run (as determined from KM3NETDAQ::JDAQSummaryslice data) More...
 
double UTCMin_s
 minimal UTC time (from "runs" table) More...
 
double UTCMax_s
 maximal UTC time (from "runs" table) More...
 
JEnabled trigger3DMuon
 enable (1) or disable (0) of 3D-muon trigger More...
 
JEnabled trigger3DShower
 enable (1) or disable (0) of 3D-shower trigger More...
 
JEnabled triggerMXShower
 enable (1) or disable (0) of L1/L0 mixed trigger More...
 
JEnabled triggerNB
 enable (1) or disable (0) of nano-beacon trigger More...
 
JPrescaler writeL0
 pre-scaling of L0 data (0 implies off) More...
 
JPrescaler writeL1
 pre-scaling of L1 data (0 implies off) More...
 
JPrescaler writeL2
 pre-scaling of L2 data (0 implies off) More...
 
JPrescaler writeSN
 pre-scaling of Supernova data (0 implies off) More...
 
int JDAQTimeslice
 number of timeslices (reserved for rejected data) More...
 
int JDAQTimesliceL0
 number of L0 timeslices More...
 
int JDAQTimesliceL1
 number of L1 timeslices More...
 
int JDAQTimesliceL2
 number of L2 timeslices More...
 
int JDAQTimesliceSN
 number of Supernova timeslices More...
 
int JDAQSummaryslice
 number of summary slices More...
 
int JDAQEvent
 number of events More...
 
int JTriggerReprocessor
 number of events following re-triggering of the data (see JTriggerReprocessor.cc) More...
 
int JTrigger3DShower
 number of 3D-muon triggers (see JTriggerMonitor.cc) More...
 
int JTriggerMXShower
 number of 3D-shower triggers (see JTriggerMonitor.cc) More...
 
int JTrigger3DMuon
 number of L1/L0 mixed triggers (see JTriggerMonitor.cc) More...
 
int JTriggerNB
 number of nano-beacon triggers (see JTriggerMonitor.cc) More...
 
int in_sync
 number of modules in synchronisation with master clock (see JTurbot.cc) More...
 
int out_sync
 number of modules out of synchronisation with master clock (see JTurbot.cc) More...
 
double DAQ
 fraction of data frames with correct DAQ status (see JSummaryMonitor.cc) More...
 
double WR
 fraction of data frames with correct White Rabbit status (see JSummaryMonitor.cc) More...
 
double HRV
 fraction of PMTs with high-rate veto (see JSummaryMonitor.cc) More...
 
double FIFO
 fraction of PMTs with FIFO (almost) full (see JSummaryMonitor.cc) More...
 
double PMTs
 average number of PMTs with valid data (see JSummaryMonitor.cc) More...
 
double MEAN_Rate_Hz
 mean rate from PMTs with valid data (see JSummaryMonitor.cc) More...
 
double RMS_Rate_Hz
 RMS of rate from PMTs with valid data (see JSummaryMonitor.cc) More...
 
int hrv_fifo_failures
 Number of PMT/timeslices with a rate > 50 kHz (after veto filter) (see JSummaryMonitor.cc) More...
 
int duplic_timeslices
 Number of duplicated timeslices (see JSummaryMonitor.cc) More...
 
int Acoustics
 number of acoustic events (see JAcousticsEventBuilder.cc) More...
 
int zero_AHRS
 number of non-working compass (see software/JCompass/JAHRSMonitor.cc) More...
 
double mean_AHRS
 mean number of compass measurements per working compass (see software/JCompass/JAHRSMonitor.cc) More...
 
std::string name
 setup name (see JRunsetups) More...
 
double value
 setup identifier (see JRunsetups) More...
 
int in_usync
 number of modules in micro-synchronisation with master clock (see JSquid.cc) More...
 
int out_usync
 number of modules out of micro-synchronisation with master clock (see JSquid.cc) More...
 
int event_duration
 number of events with event duration exceeding preset value (see JMermaid.cc) More...
 

Detailed Description

Auxiliary data structure for data quality.

For ASCII I/O, the number, order and type of the data members of this data structure should be compatible with the output of the script JQAQC.sh.

Definition at line 34 of file JRunQuality.hh.

Constructor & Destructor Documentation

◆ JRunQuality() [1/2]

JDATABASE::JRunQuality::JRunQuality ( )
inline

Definition at line 64 of file JRunQuality.hh.

64  :
65  GIT("?"),
66  JPP("?"),
67  nb_of_meta(0),
68  UUID("?"),
69  detector(0),
70  run(0),
71  livetime_s(0.0),
72  UTCMin_s(0.0),
73  UTCMax_s(0.0),
74  trigger3DMuon(),
77  triggerNB(),
78  writeL0(),
79  writeL1(),
80  writeL2(),
81  writeSN(),
82  JDAQTimeslice(0),
83  JDAQTimesliceL0(0),
84  JDAQTimesliceL1(0),
85  JDAQTimesliceL2(0),
86  JDAQTimesliceSN(0),
88  JDAQEvent(0),
92  JTrigger3DMuon(0),
93  JTriggerNB(0),
94  in_sync(0),
95  out_sync(0),
96  DAQ(0.0),
97  WR(0.0),
98  HRV(0.0),
99  FIFO(0.0),
100  PMTs(0.0),
101  MEAN_Rate_Hz(0.0),
102  RMS_Rate_Hz(0.0),
105  Acoustics(0),
106  zero_AHRS(0),
107  mean_AHRS(0.0),
108  name("?"),
109  value(0.0),
110  in_usync(0),
111  out_usync(0),
112  event_duration(0.0)
113  {}
double UTCMin_s
minimal UTC time (from "runs" table)
Definition: JRunQuality.hh:146
int nb_of_meta
Number of JMeta objects (see JPrintMeta.cc)
Definition: JRunQuality.hh:141
double value
setup identifier (see JRunsetups)
Definition: JRunQuality.hh:183
int JTriggerMXShower
number of 3D-shower triggers (see JTriggerMonitor.cc)
Definition: JRunQuality.hh:165
double PMTs
average number of PMTs with valid data (see JSummaryMonitor.cc)
Definition: JRunQuality.hh:174
int in_usync
number of modules in micro-synchronisation with master clock (see JSquid.cc)
Definition: JRunQuality.hh:184
int JDAQTimesliceSN
number of Supernova timeslices
Definition: JRunQuality.hh:160
int Acoustics
number of acoustic events (see JAcousticsEventBuilder.cc)
Definition: JRunQuality.hh:179
int duplic_timeslices
Number of duplicated timeslices (see JSummaryMonitor.cc)
Definition: JRunQuality.hh:178
int hrv_fifo_failures
Number of PMT/timeslices with a rate > 50 kHz (after veto filter) (see JSummaryMonitor....
Definition: JRunQuality.hh:177
int out_usync
number of modules out of micro-synchronisation with master clock (see JSquid.cc)
Definition: JRunQuality.hh:185
JPrescaler writeSN
pre-scaling of Supernova data (0 implies off)
Definition: JRunQuality.hh:155
std::string UUID
UUID of raw data file.
Definition: JRunQuality.hh:142
int JDAQTimeslice
number of timeslices (reserved for rejected data)
Definition: JRunQuality.hh:156
double RMS_Rate_Hz
RMS of rate from PMTs with valid data (see JSummaryMonitor.cc)
Definition: JRunQuality.hh:176
double mean_AHRS
mean number of compass measurements per working compass (see software/JCompass/JAHRSMonitor....
Definition: JRunQuality.hh:181
int JDAQEvent
number of events
Definition: JRunQuality.hh:162
int JTriggerReprocessor
number of events following re-triggering of the data (see JTriggerReprocessor.cc)
Definition: JRunQuality.hh:163
int JTriggerNB
number of nano-beacon triggers (see JTriggerMonitor.cc)
Definition: JRunQuality.hh:167
int in_sync
number of modules in synchronisation with master clock (see JTurbot.cc)
Definition: JRunQuality.hh:168
int event_duration
number of events with event duration exceeding preset value (see JMermaid.cc)
Definition: JRunQuality.hh:186
std::string JPP
Jpp version used to take data (see JPrintMeta.cc)
Definition: JRunQuality.hh:140
int JTrigger3DMuon
number of L1/L0 mixed triggers (see JTriggerMonitor.cc)
Definition: JRunQuality.hh:166
double MEAN_Rate_Hz
mean rate from PMTs with valid data (see JSummaryMonitor.cc)
Definition: JRunQuality.hh:175
int zero_AHRS
number of non-working compass (see software/JCompass/JAHRSMonitor.cc)
Definition: JRunQuality.hh:180
double UTCMax_s
maximal UTC time (from "runs" table)
Definition: JRunQuality.hh:147
double DAQ
fraction of data frames with correct DAQ status (see JSummaryMonitor.cc)
Definition: JRunQuality.hh:170
int JDAQTimesliceL2
number of L2 timeslices
Definition: JRunQuality.hh:159
int JDAQSummaryslice
number of summary slices
Definition: JRunQuality.hh:161
double HRV
fraction of PMTs with high-rate veto (see JSummaryMonitor.cc)
Definition: JRunQuality.hh:172
JEnabled triggerMXShower
enable (1) or disable (0) of L1/L0 mixed trigger
Definition: JRunQuality.hh:150
std::string name
setup name (see JRunsetups)
Definition: JRunQuality.hh:182
JEnabled trigger3DMuon
enable (1) or disable (0) of 3D-muon trigger
Definition: JRunQuality.hh:148
double livetime_s
livetime of data takig run (as determined from KM3NETDAQ::JDAQSummaryslice data)
Definition: JRunQuality.hh:145
JEnabled trigger3DShower
enable (1) or disable (0) of 3D-shower trigger
Definition: JRunQuality.hh:149
int JTrigger3DShower
number of 3D-muon triggers (see JTriggerMonitor.cc)
Definition: JRunQuality.hh:164
JEnabled triggerNB
enable (1) or disable (0) of nano-beacon trigger
Definition: JRunQuality.hh:151
JPrescaler writeL2
pre-scaling of L2 data (0 implies off)
Definition: JRunQuality.hh:154
double FIFO
fraction of PMTs with FIFO (almost) full (see JSummaryMonitor.cc)
Definition: JRunQuality.hh:173
JPrescaler writeL0
pre-scaling of L0 data (0 implies off)
Definition: JRunQuality.hh:152
int out_sync
number of modules out of synchronisation with master clock (see JTurbot.cc)
Definition: JRunQuality.hh:169
std::string GIT
GIT version used to write QA/QC data.
Definition: JRunQuality.hh:139
double WR
fraction of data frames with correct White Rabbit status (see JSummaryMonitor.cc)
Definition: JRunQuality.hh:171
int JDAQTimesliceL0
number of L0 timeslices
Definition: JRunQuality.hh:157
int JDAQTimesliceL1
number of L1 timeslices
Definition: JRunQuality.hh:158
int detector
detector identifier
Definition: JRunQuality.hh:143
JPrescaler writeL1
pre-scaling of L1 data (0 implies off)
Definition: JRunQuality.hh:153

◆ JRunQuality() [2/2]

JDATABASE::JRunQuality::JRunQuality ( const int  ID,
const int  run 
)
inline

Constructor.

Parameters
IDdetector identifier
runrun number

Definition at line 121 of file JRunQuality.hh.

122  :
123  JRunQuality()
124  {
125  this->detector = ID;
126  this->run = run;
127  }

Member Function Documentation

◆ getName()

static const char* const JDATABASE::JRunQuality::getName ( )
inlinestatic

Table name.

Definition at line 37 of file JRunQuality.hh.

◆ put()

void JDATABASE::JRunQuality::put ( const std::string &  key,
const std::string &  value 
)

Put value at given key.

Parameters
keykey
valuevalue

Definition at line 25 of file JRunQuality.cc.

27  {
28  using namespace std;
29  using namespace JPP;
30 
31  const JEquationParameters parameters(":", "\n", "", "");
32 
33  JRootReader reader(null, parameters, JRootDictionary::getInstance());
34  JRootReadableClass cls(*this);
35 
36  const string buffer = replace(key, "-", "_");
37 
38  for (string::size_type il = 0, ir = 0; ir != string::npos && cls.is_valid(); il = ir + 1) {
39  ir = buffer.substr(il).find(parameters.getDefaultDivision());
40  cls = cls.find(buffer.substr(il, ir - il).c_str());
41  }
42 
43  if (cls.is_valid()) {
44 
45  JRedirectString redirect(reader, value);
46 
47  reader.getObject(cls);
48  }
49  }
TString replace(const TString &target, const TRegexp &regexp, const T &replacement)
Replace regular expression in input by given replacement.
Definition: JPrintResult.cc:63
Simple data structure to support I/O of equations (see class JLANG::JEquation).
This class can be used to temporarily redirect an input stream to an input string.
Implementation for ASCII input of objects with ROOT dictionary.
T & getInstance(const T &object)
Get static instance from temporary object.
Definition: JObject.hh:75
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JSTDTypes.hh:14
ROOT class for reading object.
Definition: JRootClass.hh:544

◆ ClassDef()

JDATABASE::JRunQuality::ClassDef ( JRunQuality  ,
 
)

Member Data Documentation

◆ GIT

std::string JDATABASE::JRunQuality::GIT

GIT version used to write QA/QC data.

Definition at line 139 of file JRunQuality.hh.

◆ JPP

std::string JDATABASE::JRunQuality::JPP

Jpp version used to take data (see JPrintMeta.cc)

Definition at line 140 of file JRunQuality.hh.

◆ nb_of_meta

int JDATABASE::JRunQuality::nb_of_meta

Number of JMeta objects (see JPrintMeta.cc)

Definition at line 141 of file JRunQuality.hh.

◆ UUID

std::string JDATABASE::JRunQuality::UUID

UUID of raw data file.

Definition at line 142 of file JRunQuality.hh.

◆ detector

int JDATABASE::JRunQuality::detector

detector identifier

Definition at line 143 of file JRunQuality.hh.

◆ run

int JDATABASE::JRunQuality::run

run number

Definition at line 144 of file JRunQuality.hh.

◆ livetime_s

double JDATABASE::JRunQuality::livetime_s

livetime of data takig run (as determined from KM3NETDAQ::JDAQSummaryslice data)

Definition at line 145 of file JRunQuality.hh.

◆ UTCMin_s

double JDATABASE::JRunQuality::UTCMin_s

minimal UTC time (from "runs" table)

Definition at line 146 of file JRunQuality.hh.

◆ UTCMax_s

double JDATABASE::JRunQuality::UTCMax_s

maximal UTC time (from "runs" table)

Definition at line 147 of file JRunQuality.hh.

◆ trigger3DMuon

JEnabled JDATABASE::JRunQuality::trigger3DMuon

enable (1) or disable (0) of 3D-muon trigger

Definition at line 148 of file JRunQuality.hh.

◆ trigger3DShower

JEnabled JDATABASE::JRunQuality::trigger3DShower

enable (1) or disable (0) of 3D-shower trigger

Definition at line 149 of file JRunQuality.hh.

◆ triggerMXShower

JEnabled JDATABASE::JRunQuality::triggerMXShower

enable (1) or disable (0) of L1/L0 mixed trigger

Definition at line 150 of file JRunQuality.hh.

◆ triggerNB

JEnabled JDATABASE::JRunQuality::triggerNB

enable (1) or disable (0) of nano-beacon trigger

Definition at line 151 of file JRunQuality.hh.

◆ writeL0

JPrescaler JDATABASE::JRunQuality::writeL0

pre-scaling of L0 data (0 implies off)

Definition at line 152 of file JRunQuality.hh.

◆ writeL1

JPrescaler JDATABASE::JRunQuality::writeL1

pre-scaling of L1 data (0 implies off)

Definition at line 153 of file JRunQuality.hh.

◆ writeL2

JPrescaler JDATABASE::JRunQuality::writeL2

pre-scaling of L2 data (0 implies off)

Definition at line 154 of file JRunQuality.hh.

◆ writeSN

JPrescaler JDATABASE::JRunQuality::writeSN

pre-scaling of Supernova data (0 implies off)

Definition at line 155 of file JRunQuality.hh.

◆ JDAQTimeslice

int JDATABASE::JRunQuality::JDAQTimeslice

number of timeslices (reserved for rejected data)

Definition at line 156 of file JRunQuality.hh.

◆ JDAQTimesliceL0

int JDATABASE::JRunQuality::JDAQTimesliceL0

number of L0 timeslices

Definition at line 157 of file JRunQuality.hh.

◆ JDAQTimesliceL1

int JDATABASE::JRunQuality::JDAQTimesliceL1

number of L1 timeslices

Definition at line 158 of file JRunQuality.hh.

◆ JDAQTimesliceL2

int JDATABASE::JRunQuality::JDAQTimesliceL2

number of L2 timeslices

Definition at line 159 of file JRunQuality.hh.

◆ JDAQTimesliceSN

int JDATABASE::JRunQuality::JDAQTimesliceSN

number of Supernova timeslices

Definition at line 160 of file JRunQuality.hh.

◆ JDAQSummaryslice

int JDATABASE::JRunQuality::JDAQSummaryslice

number of summary slices

Definition at line 161 of file JRunQuality.hh.

◆ JDAQEvent

int JDATABASE::JRunQuality::JDAQEvent

number of events

Definition at line 162 of file JRunQuality.hh.

◆ JTriggerReprocessor

int JDATABASE::JRunQuality::JTriggerReprocessor

number of events following re-triggering of the data (see JTriggerReprocessor.cc)

Definition at line 163 of file JRunQuality.hh.

◆ JTrigger3DShower

int JDATABASE::JRunQuality::JTrigger3DShower

number of 3D-muon triggers (see JTriggerMonitor.cc)

Definition at line 164 of file JRunQuality.hh.

◆ JTriggerMXShower

int JDATABASE::JRunQuality::JTriggerMXShower

number of 3D-shower triggers (see JTriggerMonitor.cc)

Definition at line 165 of file JRunQuality.hh.

◆ JTrigger3DMuon

int JDATABASE::JRunQuality::JTrigger3DMuon

number of L1/L0 mixed triggers (see JTriggerMonitor.cc)

Definition at line 166 of file JRunQuality.hh.

◆ JTriggerNB

int JDATABASE::JRunQuality::JTriggerNB

number of nano-beacon triggers (see JTriggerMonitor.cc)

Definition at line 167 of file JRunQuality.hh.

◆ in_sync

int JDATABASE::JRunQuality::in_sync

number of modules in synchronisation with master clock (see JTurbot.cc)

Definition at line 168 of file JRunQuality.hh.

◆ out_sync

int JDATABASE::JRunQuality::out_sync

number of modules out of synchronisation with master clock (see JTurbot.cc)

Definition at line 169 of file JRunQuality.hh.

◆ DAQ

double JDATABASE::JRunQuality::DAQ

fraction of data frames with correct DAQ status (see JSummaryMonitor.cc)

Definition at line 170 of file JRunQuality.hh.

◆ WR

double JDATABASE::JRunQuality::WR

fraction of data frames with correct White Rabbit status (see JSummaryMonitor.cc)

Definition at line 171 of file JRunQuality.hh.

◆ HRV

double JDATABASE::JRunQuality::HRV

fraction of PMTs with high-rate veto (see JSummaryMonitor.cc)

Definition at line 172 of file JRunQuality.hh.

◆ FIFO

double JDATABASE::JRunQuality::FIFO

fraction of PMTs with FIFO (almost) full (see JSummaryMonitor.cc)

Definition at line 173 of file JRunQuality.hh.

◆ PMTs

double JDATABASE::JRunQuality::PMTs

average number of PMTs with valid data (see JSummaryMonitor.cc)

Definition at line 174 of file JRunQuality.hh.

◆ MEAN_Rate_Hz

double JDATABASE::JRunQuality::MEAN_Rate_Hz

mean rate from PMTs with valid data (see JSummaryMonitor.cc)

Definition at line 175 of file JRunQuality.hh.

◆ RMS_Rate_Hz

double JDATABASE::JRunQuality::RMS_Rate_Hz

RMS of rate from PMTs with valid data (see JSummaryMonitor.cc)

Definition at line 176 of file JRunQuality.hh.

◆ hrv_fifo_failures

int JDATABASE::JRunQuality::hrv_fifo_failures

Number of PMT/timeslices with a rate > 50 kHz (after veto filter) (see JSummaryMonitor.cc)

Definition at line 177 of file JRunQuality.hh.

◆ duplic_timeslices

int JDATABASE::JRunQuality::duplic_timeslices

Number of duplicated timeslices (see JSummaryMonitor.cc)

Definition at line 178 of file JRunQuality.hh.

◆ Acoustics

int JDATABASE::JRunQuality::Acoustics

number of acoustic events (see JAcousticsEventBuilder.cc)

Definition at line 179 of file JRunQuality.hh.

◆ zero_AHRS

int JDATABASE::JRunQuality::zero_AHRS

number of non-working compass (see software/JCompass/JAHRSMonitor.cc)

Definition at line 180 of file JRunQuality.hh.

◆ mean_AHRS

double JDATABASE::JRunQuality::mean_AHRS

mean number of compass measurements per working compass (see software/JCompass/JAHRSMonitor.cc)

Definition at line 181 of file JRunQuality.hh.

◆ name

std::string JDATABASE::JRunQuality::name

setup name (see JRunsetups)

Definition at line 182 of file JRunQuality.hh.

◆ value

double JDATABASE::JRunQuality::value

setup identifier (see JRunsetups)

Definition at line 183 of file JRunQuality.hh.

◆ in_usync

int JDATABASE::JRunQuality::in_usync

number of modules in micro-synchronisation with master clock (see JSquid.cc)

Definition at line 184 of file JRunQuality.hh.

◆ out_usync

int JDATABASE::JRunQuality::out_usync

number of modules out of micro-synchronisation with master clock (see JSquid.cc)

Definition at line 185 of file JRunQuality.hh.

◆ event_duration

int JDATABASE::JRunQuality::event_duration

number of events with event duration exceeding preset value (see JMermaid.cc)

Definition at line 186 of file JRunQuality.hh.


The documentation for this struct was generated from the following files: