#include <Run.hh>
Collaboration diagram for Run:
Public Member Functions | |
Run (Detector &aDetector) | |
~Run () | |
std::ostream & | operator<< (std::ostream &out) const |
Detector & | getDetector (void) const |
std::string | getSvnrev () const |
const time_t | getReconstructionDate (void) const |
void | setReconstructionDate (time_t _aDate) |
ui32 | getId (void) const |
void | setId (const ui32 aId) |
std::string | getName (void) const |
void | setName (const std::string aName) |
std::string | getDate (void) const |
void | setDate (const std::string aDate) |
ui16 | getDataFormat () const |
void | setDataFormat (ui16 value) |
ui16 | getDaqSoftware () const |
void | setDaqSoftware (ui16 value) |
ui16 | getCccFirmware () const |
void | setCccFirmware (ui16 value) |
void | setRawDataFilename (std::string value) |
std::string | getRawDataFilename (void) const |
bool | isCalibrationRun (void) const |
void | setCalibrationRun (bool aValue) |
bool | isDifSynchro (void) const |
void | setDifSynchro (bool aValue) |
float | getSendedCharge (void) const |
ui16 | getWidthCtest (void) const |
ui16 | getPeriodCtest (void) const |
ui16 | getDelayCtest (void) const |
ui16 | getDelayTrigger (void) const |
void | setInjectedCharge (float aValue) |
void | setWidthCtest (ui16 aValue) |
void | setPeriodCtest (ui16 aValue) |
void | setDelayCtest (ui16 aValue) |
void | setDelayTrigger (ui16 aValue) |
Private Attributes | |
Detector & | detector |
ui32 | id |
std::string | name |
std::string | date |
time_t | reconstructionDate |
std::string | svnrev |
std::string | rawDataFilename |
bool | calibrationRun |
bool | difSynchro |
ui16 | delayTrigger |
float | injectedCharge |
ui16 | widthCtest |
ui16 | periodCtest |
ui16 | delayCtest |
ui16 | dataFormat |
ui16 | daqSoftware |
ui16 | cccFirmware |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Run &x) |
Definition at line 22 of file Run.hh.
Run::Run | ( | Detector & | aDetector | ) |
Definition at line 17 of file Run.cpp.
00017 : detector(aDetector) 00018 { 00019 00020 name = ""; 00021 id = 0; 00022 time(&reconstructionDate); 00023 calibrationRun = false; 00024 difSynchro = false; 00025 svnrev = "$Revision: 1566 $"; 00026 00027 // calibration run only 00028 injectedCharge = 0; 00029 widthCtest = 0; 00030 periodCtest = 0; 00031 delayCtest = 0; 00032 dataFormat = 0; 00033 daqSoftware = 0; 00034 cccFirmware = 0; 00035 }
Run::~Run | ( | ) |
std::ostream& Run::operator<< | ( | std::ostream & | out | ) | const |
Detector& Run::getDetector | ( | void | ) | const [inline] |
Definition at line 61 of file Run.hh.
Referenced by MicrorocXDaqReader::getAcqData(), MicrorocLabviewReader::getAcqData(), Hardroc2XdaqReader::getAcqData(), Hardroc2LabviewReader::getAcqData(), Hardroc1Reader::getAcqData(), MicrorocLabviewReader::getAnalogData(), DiracReader::getConfigData(), TestMicrorocParser::getNextEvent(), Hardroc2XdaqReader::getNextEvent(), Hardroc2LabviewReader::getNextEvent(), Hardroc1Reader::getNextEvent(), DiracLabview::getNextEvent(), DifSynchroReader::getNextEvent(), Centaure::getNextEvent(), CalibMicrorocParser::getNextEvent(), CalibHR2Parser::getNextEvent(), CalibHR1Parser::getNextEvent(), MicrorocLabviewReader::getScData(), Hardroc2LabviewReader::getScData(), Hardroc1Reader::getScData(), DifSynchroReader::getScData(), Event::initChannelHitVector(), DiracReader::newHit(), MTRun::operator=(), MTEvent::operator=(), MicrorocSCReader::parseSC(), MicrorocSCReader::parseSCFromDb(), SteerDesc::setRun(), and DiracReader::storeDifInfo().
00061 { return detector; }
std::string Run::getSvnrev | ( | ) | const |
Definition at line 57 of file Run.cpp.
Referenced by main(), and MTRun::operator=().
00058 { 00059 string without = svnrev.substr(11); 00060 size_t len = without.length(); 00061 return without.substr(0,len-2); 00062 }
const time_t Run::getReconstructionDate | ( | void | ) | const [inline] |
Definition at line 64 of file Run.hh.
Referenced by MTRun::operator=().
00064 { return reconstructionDate; }
void Run::setReconstructionDate | ( | time_t | _aDate | ) | [inline] |
ui32 Run::getId | ( | void | ) | const [inline] |
Definition at line 67 of file Run.hh.
Referenced by MicrorocXDaqReader::getNextEvent(), MTRun::operator=(), and MicrorocSCReader::parseSCFromDb().
00067 { return id; }
void Run::setId | ( | const ui32 | aId | ) | [inline] |
std::string Run::getName | ( | void | ) | const [inline] |
void Run::setName | ( | const std::string | aName | ) | [inline] |
Definition at line 71 of file Run.hh.
Referenced by CalibMicrorocParser::CalibMicrorocParser(), CalibHR2Parser::getNextEvent(), CalibHR1Parser::getNextEvent(), and TestMicrorocParser::TestMicrorocParser().
00071 { name = aName; }
std::string Run::getDate | ( | void | ) | const [inline] |
void Run::setDate | ( | const std::string | aDate | ) | [inline] |
ui16 Run::getDataFormat | ( | ) | const [inline] |
Definition at line 76 of file Run.hh.
Referenced by Hardroc1Reader::getAcqData(), MicrorocLabviewReader::getNextEvent(), Hardroc2XdaqReader::getNextEvent(), Hardroc2LabviewReader::getNextEvent(), Hardroc1Reader::getNextEvent(), MicrorocXDaqReader::getNextEvent(), DiracReader::getNextEvent(), DiracLabview::getNextEvent(), DifSynchroReader::getNextEvent(), MicrorocLabviewReader::getScData(), Hardroc2LabviewReader::getScData(), Hardroc1Reader::getScData(), DifSynchroReader::getScData(), and MTRun::operator=().
00076 { return dataFormat ; } ;
void Run::setDataFormat | ( | ui16 | value | ) | [inline] |
Definition at line 77 of file Run.hh.
Referenced by MicrorocLabviewReader::getNextEvent(), Hardroc2XdaqReader::getNextEvent(), Hardroc2LabviewReader::getNextEvent(), Hardroc1Reader::getNextEvent(), MicrorocXDaqReader::getNextEvent(), DiracReader::getNextEvent(), DiracLabview::getNextEvent(), DifSynchroReader::getNextEvent(), and main().
00077 { dataFormat = value; };
ui16 Run::getDaqSoftware | ( | ) | const [inline] |
Definition at line 79 of file Run.hh.
Referenced by MicrorocLabviewReader::getNextEvent(), Hardroc2LabviewReader::getNextEvent(), DifSynchroReader::getNextEvent(), and MTRun::operator=().
00079 { return daqSoftware ; } ;
void Run::setDaqSoftware | ( | ui16 | value | ) | [inline] |
Definition at line 80 of file Run.hh.
Referenced by MicrorocLabviewReader::getNextEvent(), Hardroc2LabviewReader::getNextEvent(), MicrorocXDaqReader::getNextEvent(), and DifSynchroReader::getNextEvent().
00080 { daqSoftware = value; };
ui16 Run::getCccFirmware | ( | ) | const [inline] |
Definition at line 82 of file Run.hh.
Referenced by MicrorocLabviewReader::getNextEvent(), Hardroc2LabviewReader::getNextEvent(), DifSynchroReader::getNextEvent(), and MTRun::operator=().
00082 { return cccFirmware ; } ;
void Run::setCccFirmware | ( | ui16 | value | ) | [inline] |
Definition at line 83 of file Run.hh.
Referenced by MicrorocLabviewReader::getNextEvent(), Hardroc2LabviewReader::getNextEvent(), MicrorocXDaqReader::getNextEvent(), and DifSynchroReader::getNextEvent().
00083 { cccFirmware = value; };
void Run::setRawDataFilename | ( | std::string | value | ) | [inline] |
std::string Run::getRawDataFilename | ( | void | ) | const [inline] |
Definition at line 86 of file Run.hh.
Referenced by MTRun::operator=().
00086 { return rawDataFilename; };
bool Run::isCalibrationRun | ( | void | ) | const [inline] |
Definition at line 88 of file Run.hh.
Referenced by MTRun::operator=(), and MicrorocSCReader::parseSC().
00088 { return calibrationRun; };
void Run::setCalibrationRun | ( | bool | aValue | ) | [inline] |
Definition at line 89 of file Run.hh.
Referenced by CalibHR1Parser::CalibHR1Parser(), CalibHR2Parser::CalibHR2Parser(), and CalibMicrorocParser::CalibMicrorocParser().
00089 { calibrationRun = aValue; }
bool Run::isDifSynchro | ( | void | ) | const [inline] |
Definition at line 91 of file Run.hh.
Referenced by MTRun::operator=().
00091 { return difSynchro; };
void Run::setDifSynchro | ( | bool | aValue | ) | [inline] |
float Run::getSendedCharge | ( | void | ) | const [inline] |
Definition at line 96 of file Run.hh.
Referenced by MTRun::operator=().
00096 { return injectedCharge; } ;
ui16 Run::getWidthCtest | ( | void | ) | const [inline] |
Definition at line 97 of file Run.hh.
Referenced by MTRun::operator=().
00097 { return widthCtest; } ;
ui16 Run::getPeriodCtest | ( | void | ) | const [inline] |
Definition at line 98 of file Run.hh.
Referenced by MTRun::operator=().
00098 { return periodCtest; } ;
ui16 Run::getDelayCtest | ( | void | ) | const [inline] |
Definition at line 99 of file Run.hh.
Referenced by MTRun::operator=().
00099 { return delayCtest; } ;
ui16 Run::getDelayTrigger | ( | void | ) | const [inline] |
Definition at line 100 of file Run.hh.
Referenced by MTRun::operator=().
00100 { return delayTrigger; } ;
void Run::setInjectedCharge | ( | float | aValue | ) | [inline] |
Definition at line 103 of file Run.hh.
Referenced by DiracReader::getNextEvent(), and DiracLabview::getNextEvent().
00103 { injectedCharge = aValue; } ;
void Run::setWidthCtest | ( | ui16 | aValue | ) | [inline] |
Definition at line 104 of file Run.hh.
Referenced by DiracReader::getNextEvent().
00104 { widthCtest = aValue; } ;
void Run::setPeriodCtest | ( | ui16 | aValue | ) | [inline] |
Definition at line 105 of file Run.hh.
Referenced by DiracReader::getNextEvent().
00105 { periodCtest = aValue; } ;
void Run::setDelayCtest | ( | ui16 | aValue | ) | [inline] |
Definition at line 106 of file Run.hh.
Referenced by DiracReader::getNextEvent().
00106 { delayCtest = aValue; }
void Run::setDelayTrigger | ( | ui16 | aValue | ) | [inline] |
Definition at line 107 of file Run.hh.
Referenced by DiracReader::getNextEvent().
00107 { delayTrigger = aValue; }
std::ostream& operator<< | ( | std::ostream & | out, | |
const Run & | x | |||
) | [friend] |
Detector& Run::detector [private] |
std::string Run::name [private] |
std::string Run::date [private] |
time_t Run::reconstructionDate [private] |
Definition at line 37 of file Run.hh.
Referenced by getReconstructionDate(), Run(), and setReconstructionDate().
std::string Run::svnrev [private] |
std::string Run::rawDataFilename [private] |
bool Run::calibrationRun [private] |
Definition at line 40 of file Run.hh.
Referenced by isCalibrationRun(), Run(), and setCalibrationRun().
bool Run::difSynchro [private] |
ui16 Run::delayTrigger [private] |
float Run::injectedCharge [private] |
Definition at line 47 of file Run.hh.
Referenced by getSendedCharge(), Run(), and setInjectedCharge().
ui16 Run::widthCtest [private] |
ui16 Run::periodCtest [private] |
ui16 Run::delayCtest [private] |
ui16 Run::dataFormat [private] |
ui16 Run::daqSoftware [private] |
ui16 Run::cccFirmware [private] |