Run Class Reference

#include <Run.hh>

Collaboration diagram for Run:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Run (Detector &aDetector)
 ~Run ()
std::ostream & operator<< (std::ostream &out) const
DetectorgetDetector (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 getDifFirmware () const
void setDifFirmware (ui16 value)
ui16 getCccFirmware () const
void setCccFirmware (ui16 value)
ui16 getSDccFirmware () const
void setSDccFirmware (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

Detectordetector
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
ui16 sdCCFirmware
ui16 difFirmware

Friends

std::ostream & operator<< (std::ostream &out, const Run &x)

Detailed Description

Definition at line 22 of file Run.hh.


Constructor & Destructor Documentation

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: 1850 $";
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   sdCCFirmware = 0;
00036   difFirmware  = 0;
00037 }

Run::~Run (  ) 

Definition at line 41 of file Run.cpp.

00041          {
00042   //FILE_LOG(logDEBUG) << "----Run destructor"<< endl;
00043 }


Member Function Documentation

std::ostream& Run::operator<< ( std::ostream &  out  )  const

Detector& Run::getDetector ( void   )  const [inline]

Definition at line 63 of file Run.hh.

Referenced by MicrorocOldLabviewReader::getAcqData(), MicrorocMergeReader::getAcqData(), Hardroc2XdaqReader::getAcqData(), Hardroc2LabviewReader::getAcqData(), Hardroc1Reader::getAcqData(), MicrorocOldLabviewReader::getAnalogData(), DiracReader::getConfigData(), TestMicrorocParser::getNextEvent(), Hardroc2XdaqReader::getNextEvent(), Hardroc2LabviewReader::getNextEvent(), Hardroc1Reader::getNextEvent(), DiracLabview::getNextEvent(), DifSynchroReader::getNextEvent(), Centaure::getNextEvent(), CalibMicrorocParser::getNextEvent(), CalibHR2Parser::getNextEvent(), CalibHR1Parser::getNextEvent(), MicrorocOldLabviewReader::getScData(), MicrorocMergeReader::getScData(), Hardroc2LabviewReader::getScData(), Hardroc1Reader::getScData(), DifSynchroReader::getScData(), Event::initChannelHitVector(), DiracReader::newHit(), MTRun::operator=(), MTEvent::operator=(), MicrorocSCReader::parseSC(), MicrorocSCReader::parseSCFromDb(), SteerDesc::setRun(), and DiracReader::storeDifInfo().

00063 { return detector; }

std::string Run::getSvnrev (  )  const

Definition at line 59 of file Run.cpp.

Referenced by main(), and MTRun::operator=().

00060 {
00061   string without = svnrev.substr(11);
00062   size_t len = without.length();
00063   return without.substr(0,len-2); 
00064 }

const time_t Run::getReconstructionDate ( void   )  const [inline]

Definition at line 66 of file Run.hh.

Referenced by MTRun::operator=().

00066 { return reconstructionDate; }

void Run::setReconstructionDate ( time_t  _aDate  )  [inline]

Definition at line 67 of file Run.hh.

00067 { reconstructionDate = _aDate;};

ui32 Run::getId ( void   )  const [inline]

Definition at line 69 of file Run.hh.

Referenced by MicrorocXDaqReader::getNextEvent(), MTRun::operator=(), and MicrorocSCReader::parseSCFromDb().

00069 { return id; }

void Run::setId ( const ui32  aId  )  [inline]

Definition at line 70 of file Run.hh.

Referenced by MicrorocXDaqReader::getNextEvent().

00070 { id = aId; }

std::string Run::getName ( void   )  const [inline]

Definition at line 72 of file Run.hh.

Referenced by MTRun::operator=().

00072 { return name; }

void Run::setName ( const std::string  aName  )  [inline]

Definition at line 73 of file Run.hh.

Referenced by CalibMicrorocParser::CalibMicrorocParser(), CalibHR2Parser::getNextEvent(), CalibHR1Parser::getNextEvent(), and TestMicrorocParser::TestMicrorocParser().

00073 { name = aName; }

std::string Run::getDate ( void   )  const [inline]

Definition at line 75 of file Run.hh.

Referenced by MTRun::operator=().

00075 { return date; }

void Run::setDate ( const std::string  aDate  )  [inline]

Definition at line 76 of file Run.hh.

Referenced by SteerDesc::setRun().

00076 { date = aDate; }

ui16 Run::getDataFormat (  )  const [inline]

Definition at line 78 of file Run.hh.

Referenced by MicrorocOldLabviewReader::getAcqData(), Hardroc1Reader::getAcqData(), MicrorocXDaqReader::getNextEvent(), MicrorocOldLabviewReader::getNextEvent(), MicrorocLabviewReader::getNextEvent(), Hardroc2XdaqReader::getNextEvent(), Hardroc2LabviewReader::getNextEvent(), Hardroc1Reader::getNextEvent(), DiracReader::getNextEvent(), DiracLabview::getNextEvent(), DifSynchroReader::getNextEvent(), MicrorocOldLabviewReader::getScData(), MicrorocMergeReader::getScData(), Hardroc2LabviewReader::getScData(), Hardroc1Reader::getScData(), DifSynchroReader::getScData(), and MTRun::operator=().

00078 { return dataFormat ; } ;

void Run::setDataFormat ( ui16  value  )  [inline]

Definition at line 79 of file Run.hh.

Referenced by MicrorocXDaqReader::getNextEvent(), MicrorocOldLabviewReader::getNextEvent(), MicrorocLabviewReader::getNextEvent(), Hardroc2XdaqReader::getNextEvent(), Hardroc2LabviewReader::getNextEvent(), Hardroc1Reader::getNextEvent(), DiracReader::getNextEvent(), DiracLabview::getNextEvent(), DifSynchroReader::getNextEvent(), and main().

00079 { dataFormat = value; };

ui16 Run::getDaqSoftware (  )  const [inline]

Definition at line 81 of file Run.hh.

Referenced by MicrorocOldLabviewReader::getNextEvent(), MicrorocLabviewReader::getNextEvent(), Hardroc2LabviewReader::getNextEvent(), DifSynchroReader::getNextEvent(), and MTRun::operator=().

00081 { return daqSoftware ; } ;

void Run::setDaqSoftware ( ui16  value  )  [inline]

Definition at line 82 of file Run.hh.

Referenced by MicrorocXDaqReader::getNextEvent(), MicrorocOldLabviewReader::getNextEvent(), MicrorocLabviewReader::getNextEvent(), Hardroc2LabviewReader::getNextEvent(), and DifSynchroReader::getNextEvent().

00082 { daqSoftware = value; };

ui16 Run::getDifFirmware (  )  const [inline]

Definition at line 84 of file Run.hh.

Referenced by MicrorocOldLabviewReader::getNextEvent(), MicrorocLabviewReader::getNextEvent(), and MTRun::operator=().

00084 { return difFirmware ; } ;

void Run::setDifFirmware ( ui16  value  )  [inline]

Definition at line 85 of file Run.hh.

Referenced by MicrorocOldLabviewReader::getNextEvent(), and MicrorocLabviewReader::getNextEvent().

00085 { difFirmware = value; };

ui16 Run::getCccFirmware (  )  const [inline]

Definition at line 87 of file Run.hh.

Referenced by MicrorocOldLabviewReader::getNextEvent(), Hardroc2LabviewReader::getNextEvent(), DifSynchroReader::getNextEvent(), and MTRun::operator=().

00087 { return cccFirmware ; } ;

void Run::setCccFirmware ( ui16  value  )  [inline]

Definition at line 88 of file Run.hh.

Referenced by MicrorocXDaqReader::getNextEvent(), MicrorocOldLabviewReader::getNextEvent(), Hardroc2LabviewReader::getNextEvent(), and DifSynchroReader::getNextEvent().

00088 { cccFirmware = value; };

ui16 Run::getSDccFirmware (  )  const [inline]

Definition at line 90 of file Run.hh.

Referenced by MicrorocOldLabviewReader::getNextEvent(), MicrorocLabviewReader::getNextEvent(), and MTRun::operator=().

00090 { return sdCCFirmware ; } ;

void Run::setSDccFirmware ( ui16  value  )  [inline]

Definition at line 91 of file Run.hh.

Referenced by MicrorocOldLabviewReader::getNextEvent(), and MicrorocLabviewReader::getNextEvent().

00091 { sdCCFirmware = value; };

void Run::setRawDataFilename ( std::string  value  )  [inline]

Definition at line 93 of file Run.hh.

Referenced by main().

00093 { rawDataFilename = value;};

std::string Run::getRawDataFilename ( void   )  const [inline]

Definition at line 94 of file Run.hh.

Referenced by MTRun::operator=().

00094 { return rawDataFilename; };

bool Run::isCalibrationRun ( void   )  const [inline]

Definition at line 96 of file Run.hh.

Referenced by MTRun::operator=(), and MicrorocSCReader::parseSC().

00096 { return calibrationRun; };

void Run::setCalibrationRun ( bool  aValue  )  [inline]

Definition at line 97 of file Run.hh.

Referenced by CalibHR1Parser::CalibHR1Parser(), CalibHR2Parser::CalibHR2Parser(), and CalibMicrorocParser::CalibMicrorocParser().

00097 { calibrationRun = aValue; }

bool Run::isDifSynchro ( void   )  const [inline]

Definition at line 99 of file Run.hh.

Referenced by MTRun::operator=().

00099 { return difSynchro; };

void Run::setDifSynchro ( bool  aValue  )  [inline]

Definition at line 100 of file Run.hh.

00100 { difSynchro = aValue; }

float Run::getSendedCharge ( void   )  const [inline]

Definition at line 104 of file Run.hh.

Referenced by MTRun::operator=().

00104 { return injectedCharge; } ;

ui16 Run::getWidthCtest ( void   )  const [inline]

Definition at line 105 of file Run.hh.

Referenced by MTRun::operator=().

00105 { return widthCtest; } ;

ui16 Run::getPeriodCtest ( void   )  const [inline]

Definition at line 106 of file Run.hh.

Referenced by MTRun::operator=().

00106 { return periodCtest; } ;

ui16 Run::getDelayCtest ( void   )  const [inline]

Definition at line 107 of file Run.hh.

Referenced by MTRun::operator=().

00107 { return delayCtest; } ;

ui16 Run::getDelayTrigger ( void   )  const [inline]

Definition at line 108 of file Run.hh.

Referenced by MTRun::operator=().

00108 { return delayTrigger; } ;

void Run::setInjectedCharge ( float  aValue  )  [inline]

Definition at line 111 of file Run.hh.

Referenced by DiracReader::getNextEvent(), and DiracLabview::getNextEvent().

00111 {  injectedCharge = aValue; } ;

void Run::setWidthCtest ( ui16  aValue  )  [inline]

Definition at line 112 of file Run.hh.

Referenced by DiracReader::getNextEvent().

00112 {  widthCtest = aValue; } ;

void Run::setPeriodCtest ( ui16  aValue  )  [inline]

Definition at line 113 of file Run.hh.

Referenced by DiracReader::getNextEvent().

00113 {  periodCtest = aValue; } ;

void Run::setDelayCtest ( ui16  aValue  )  [inline]

Definition at line 114 of file Run.hh.

Referenced by DiracReader::getNextEvent().

00114 {  delayCtest = aValue; }

void Run::setDelayTrigger ( ui16  aValue  )  [inline]

Definition at line 115 of file Run.hh.

Referenced by DiracReader::getNextEvent().

00115 {  delayTrigger = aValue; }


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const Run x 
) [friend]

Definition at line 12 of file Run.cpp.

00012                                                         {
00013      return(x.operator <<(out));
00014 }


Member Data Documentation

Detector& Run::detector [private]

Definition at line 30 of file Run.hh.

Referenced by getDetector().

ui32 Run::id [private]

Definition at line 32 of file Run.hh.

Referenced by getId().

std::string Run::name [private]

Definition at line 34 of file Run.hh.

Referenced by getName(), Run(), and setName().

std::string Run::date [private]

Definition at line 35 of file Run.hh.

Referenced by getDate(), and setDate().

time_t Run::reconstructionDate [private]

Definition at line 37 of file Run.hh.

Referenced by getReconstructionDate(), Run(), and setReconstructionDate().

std::string Run::svnrev [private]

Definition at line 38 of file Run.hh.

Referenced by Run().

std::string Run::rawDataFilename [private]

Definition at line 39 of file Run.hh.

Referenced by getRawDataFilename(), and setRawDataFilename().

bool Run::calibrationRun [private]

Definition at line 40 of file Run.hh.

Referenced by isCalibrationRun(), Run(), and setCalibrationRun().

bool Run::difSynchro [private]

Definition at line 41 of file Run.hh.

Referenced by isDifSynchro(), Run(), and setDifSynchro().

ui16 Run::delayTrigger [private]

Definition at line 45 of file Run.hh.

Referenced by getDelayTrigger(), and setDelayTrigger().

float Run::injectedCharge [private]

Definition at line 47 of file Run.hh.

Referenced by getSendedCharge(), Run(), and setInjectedCharge().

ui16 Run::widthCtest [private]

Definition at line 50 of file Run.hh.

Referenced by getWidthCtest(), Run(), and setWidthCtest().

ui16 Run::periodCtest [private]

Definition at line 51 of file Run.hh.

Referenced by getPeriodCtest(), Run(), and setPeriodCtest().

ui16 Run::delayCtest [private]

Definition at line 52 of file Run.hh.

Referenced by getDelayCtest(), Run(), and setDelayCtest().

ui16 Run::dataFormat [private]

Definition at line 54 of file Run.hh.

Referenced by getDataFormat(), Run(), and setDataFormat().

ui16 Run::daqSoftware [private]

Definition at line 55 of file Run.hh.

Referenced by getDaqSoftware(), Run(), and setDaqSoftware().

ui16 Run::cccFirmware [private]

Definition at line 56 of file Run.hh.

Referenced by getCccFirmware(), Run(), and setCccFirmware().

ui16 Run::sdCCFirmware [private]

Definition at line 57 of file Run.hh.

Referenced by getSDccFirmware(), Run(), and setSDccFirmware().

ui16 Run::difFirmware [private]

Definition at line 58 of file Run.hh.

Referenced by getDifFirmware(), Run(), and setDifFirmware().


The documentation for this class was generated from the following files:
Generated on Mon Jan 7 13:19:00 2013 for MicromegasFramework by  doxygen 1.4.7