Map run number to trigger parameters.
More...
|
void | reset (const int run) |
| Remove all entries before given run. More...
|
|
bool | is_written (const int run) const |
| Check if trigger parameters have been written for given run. More...
|
|
void | read (const char *const data, const size_t size) |
| Read trigger parameters. More...
|
|
void | write (const int run, TFile *file) |
| Write trigger parameters for given run if not yet done. More...
|
|
Map run number to trigger parameters.
Definition at line 427 of file JDataWriter.cc.
void KM3NETDAQ::JDataWriter::JRunDB::reset |
( |
const int |
run | ) |
|
|
inline |
Remove all entries before given run.
- Parameters
-
Definition at line 435 of file JDataWriter.cc.
437 while (!this->empty() && this->begin()->
first <
run) {
438 this->erase(this->begin());
void run()
Run as run control client following command messages via JNET::JControlHost.
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
bool KM3NETDAQ::JDataWriter::JRunDB::is_written |
( |
const int |
run | ) |
const |
|
inline |
Check if trigger parameters have been written for given run.
- Parameters
-
- Returns
- true if written; else false.
Definition at line 448 of file JDataWriter.cc.
450 const_iterator p = this->find(
run);
452 return p != this->end() && p->second.is_written;
void run()
Run as run control client following command messages via JNET::JControlHost.
void KM3NETDAQ::JDataWriter::JRunDB::read |
( |
const char *const |
data, |
|
|
const size_t |
size |
|
) |
| |
|
inline |
Read trigger parameters.
- Parameters
-
Definition at line 461 of file JDataWriter.cc.
467 const string buffer(data, size);
482 in.clear(std::ios::eofbit);
488 JValue_t& value = (*this)[
run];
490 if (value.count == 0) {
std::vector< char > buffer
internal buffer for incoming data
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
*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
void run()
Run as run control client following command messages via JNET::JControlHost.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
void KM3NETDAQ::JDataWriter::JRunDB::write |
( |
const int |
run, |
|
|
TFile * |
file |
|
) |
| |
|
inline |
Write trigger parameters for given run if not yet done.
- Parameters
-
run | run number |
file | pointer to ROOT file |
Definition at line 507 of file JDataWriter.cc.
513 if (p != this->end() && p->second.count != 0 && !p->second.is_written) {
515 file->WriteTObject(&p->second.parameters);
517 p->second.is_written =
true;
then usage $script[< detector identifier >< run range >]< QA/QCfile > nExample script to produce data quality plots nWhen a detector identifier and run range are data are downloaded from the database nand subsequently stored in the given QA QC file
void run()
Run as run control client following command messages via JNET::JControlHost.
The documentation for this struct was generated from the following file: