#include <MTRun.hh>
Inheritance diagram for MTRun:
Public Member Functions | |
MTRun () | |
MTRun (const Run &aRun) | |
virtual | ~MTRun () |
MTRun & | operator= (const Run &aRun) |
time_t | GetReconstructionDate (TString &dateToComplete) const |
void | SetRawDataFilename (TString value) |
TString | GetRawDataFilename (void) const |
TString | GetRunName (void) const |
UInt_t | GetRunId (void) const |
void | SetRunId (UInt_t value) |
bool | GetProcessed (void) |
void | SetProcessed (bool value) |
TString | GetDate () |
void | SetDate (TString aDate) |
TString | GetSvnVersion () const |
bool | IsCalibrationRun (void) const |
void | SetCalibrationRun (bool aValue) |
bool | IsDifSynchro (void) const |
void | SetDifSynchro (bool aValue) |
void | SetDectector (MTDetector *value) |
MTDetector * | GetDetector (void) const |
Char_t | GetRawDataFormat () const |
Char_t | GetDaqSoftVersion () const |
Char_t | GetCCCFirmwareVersion () const |
const MTChip & | GetOneChip (void) const |
Float_t | GetInjectedCharge (void) const |
UShort_t | GetWidthCtest (void) const |
UShort_t | GetPeriodCtest (void) const |
UShort_t | GetDelayCtest (void) const |
UShort_t | GetDelayTrigger (void) const |
void | SetInjectedCharge (Float_t aValue) |
void | SetWidthCtest (UInt_t aValue) |
void | SetPeriodCtest (UInt_t aValue) |
void | SetDelayCtest (UInt_t aValue) |
void | SetDelayTrigger (UInt_t aValue) |
void | Info (void) const |
Private Attributes | |
UInt_t | id |
TString | name |
TString | date |
bool | processed |
bool | calibrationRun |
bool | difSynchro |
time_t | reconstructionDate |
TString | rawDataFilename |
TString | svnrev |
Char_t | rawDataFormat |
Char_t | daqSoftVersion |
Char_t | cccFirmwareVersion |
UShort_t | delayTrigger |
Float_t | injectedCharge |
UShort_t | widthCtest |
UShort_t | periodCtest |
UShort_t | delayCtest |
MTDetector * | detector |
Definition at line 27 of file MTRun.hh.
MTRun::MTRun | ( | ) |
MTRun::MTRun | ( | const Run & | aRun | ) |
MTRun::~MTRun | ( | ) | [virtual] |
Definition at line 69 of file MTRun.cpp.
00070 { 00071 try 00072 { 00073 id = aRun.getId(); 00074 name = aRun.getName(); 00075 date = aRun.getDate() ; 00076 processed = false; 00077 calibrationRun = aRun.isCalibrationRun(); 00078 difSynchro = aRun.isDifSynchro(); 00079 00080 reconstructionDate = aRun.getReconstructionDate(); 00081 rawDataFilename = aRun.getRawDataFilename(); 00082 svnrev = aRun.getSvnrev(); 00083 00084 const Detector& det = aRun.getDetector(); 00085 detector = new MTDetector(det); 00086 00087 rawDataFormat = aRun.getDataFormat(); 00088 daqSoftVersion = aRun.getDaqSoftware(); 00089 cccFirmwareVersion = aRun.getCccFirmware(); 00090 00091 // calibration only // Infos from calibration raw data file 00092 injectedCharge = aRun.getSendedCharge(); 00093 widthCtest = aRun.getWidthCtest(); // 10 bit store in 16 bits 00094 periodCtest = aRun.getPeriodCtest(); // 10 bit store in 16 bits 00095 delayCtest = aRun.getDelayCtest(); // 10 bit store in 16 bits 00096 delayTrigger = aRun.getDelayTrigger(); // 10 bit store in 16 bits 00097 FILE_LOG(logDEBUG1) << "injectedCharge[" << injectedCharge << "]" << endl; 00098 FILE_LOG(logDEBUG1) << "aRun.getSendedCharge()[" << aRun.getSendedCharge() << "]" << endl; 00099 } //try block 00100 catch (MicroException e) 00101 { 00102 throw MicroException(e.getMessage()); 00103 } 00104 // Save all objects in this file 00105 return *this; 00106 }
time_t MTRun::GetReconstructionDate | ( | TString & | dateToComplete | ) | const |
Definition at line 62 of file MTRun.cpp.
Referenced by Info().
00063 { 00064 dateToComplete = asctime(localtime(&reconstructionDate)); 00065 return reconstructionDate; 00066 }
void MTRun::SetRawDataFilename | ( | TString | value | ) | [inline] |
TString MTRun::GetRawDataFilename | ( | void | ) | const [inline] |
TString MTRun::GetRunName | ( | void | ) | const [inline] |
UInt_t MTRun::GetRunId | ( | void | ) | const [inline] |
Definition at line 86 of file MTRun.hh.
Referenced by main(), and selectAndCopyEvent().
00086 { return id; } ;
void MTRun::SetRunId | ( | UInt_t | value | ) | [inline] |
bool MTRun::GetProcessed | ( | void | ) | [inline] |
void MTRun::SetProcessed | ( | bool | value | ) | [inline] |
void MTRun::SetDate | ( | TString | aDate | ) | [inline] |
TString MTRun::GetSvnVersion | ( | ) | const [inline] |
bool MTRun::IsCalibrationRun | ( | void | ) | const [inline] |
void MTRun::SetCalibrationRun | ( | bool | aValue | ) | [inline] |
bool MTRun::IsDifSynchro | ( | void | ) | const [inline] |
void MTRun::SetDifSynchro | ( | bool | aValue | ) | [inline] |
void MTRun::SetDectector | ( | MTDetector * | value | ) | [inline] |
MTDetector* MTRun::GetDetector | ( | void | ) | const [inline] |
Definition at line 104 of file MTRun.hh.
Referenced by GetOneChip(), and main().
00104 { return detector ; } ;
Char_t MTRun::GetRawDataFormat | ( | ) | const [inline] |
Char_t MTRun::GetDaqSoftVersion | ( | ) | const [inline] |
Char_t MTRun::GetCCCFirmwareVersion | ( | ) | const [inline] |
const MTChip & MTRun::GetOneChip | ( | void | ) | const |
Definition at line 109 of file MTRun.cpp.
Referenced by main().
00110 { 00111 MTDetector* det = this->GetDetector(); 00112 if ( det != NULL) 00113 { 00114 // Get first detector's chamber 00115 const MTChamber& chamber = *((*det->GetChambers().begin()).second); 00116 // Get first chamber's board 00117 const MTBoard& board = *((*chamber.GetBoards().begin()).second); 00118 // Get first board's chip 00119 const MTChip& chip = *((*board.GetChips().begin()).second); 00120 return chip; 00121 } 00122 throw MicroException("No Chip for this run"); 00123 }
Float_t MTRun::GetInjectedCharge | ( | void | ) | const [inline] |
UShort_t MTRun::GetWidthCtest | ( | void | ) | const [inline] |
UShort_t MTRun::GetPeriodCtest | ( | void | ) | const [inline] |
UShort_t MTRun::GetDelayCtest | ( | void | ) | const [inline] |
UShort_t MTRun::GetDelayTrigger | ( | void | ) | const [inline] |
void MTRun::SetInjectedCharge | ( | Float_t | aValue | ) | [inline] |
void MTRun::SetWidthCtest | ( | UInt_t | aValue | ) | [inline] |
void MTRun::SetPeriodCtest | ( | UInt_t | aValue | ) | [inline] |
void MTRun::SetDelayCtest | ( | UInt_t | aValue | ) | [inline] |
void MTRun::SetDelayTrigger | ( | UInt_t | aValue | ) | [inline] |
void MTRun::Info | ( | void | ) | const |
Definition at line 126 of file MTRun.cpp.
Referenced by main().
00127 { 00128 00129 TString recDate; 00130 GetReconstructionDate(recDate); 00131 00132 TString calib = "production"; 00133 if ( calibrationRun) 00134 { 00135 calib = "calibration"; 00136 } 00137 00138 cout << "**** Run informations ****" << endl << endl ; 00139 cout << " Id: " << id << " " << endl ; 00140 cout << " Name: " << name << " " << endl ; 00141 cout << " Date: " << date << " " << endl ; 00142 cout << " Type: It is a "<< calib << " run " << endl; 00143 cout << " svn version for used source code:" << svnrev << endl; 00144 00145 00146 cout << endl << " 2/ Acquisition informations " << endl ; 00147 cout << " Raw data file name: "<<rawDataFilename << " "<< endl; 00148 cout << " data format: 0x" << hex << (unsigned int) rawDataFormat << " "<< endl; 00149 cout << " daq software version: 0x" << hex << (unsigned int) daqSoftVersion << " "<< endl; 00150 cout << " ccc firmware version: 0x" << hex << (unsigned int) cccFirmwareVersion << " "<< endl; 00151 00152 00153 cout << endl << " 3/ Reconstruction informations " << endl ; 00154 cout << " Date: " << recDate <<" " << endl; 00155 cout << endl << endl; 00156 00157 if ( calibrationRun ) 00158 { 00159 cout << endl << " 4/ Calibration informations " << endl ; 00160 cout << " injectedCharge: " << dec << injectedCharge << " fC " << endl; 00161 /* Following omly exist for Dirac callibration 00162 cout << " widthCtest: 0x" << hex << widthCtest << " " << endl; // 10 bit store in 16 bits 00163 cout << " periodCtest: 0x" << hex << periodCtest << " " << endl; // 10 bit store in 16 bits 00164 cout << " delayCtest: 0x" << hex << delayCtest << " " << endl; // 10 bit store in 16 bits 00165 cout << " delayTrigger: 0x" << hex << delayTrigger << " " << dec <<endl; // 10 bit store in 16 bits 00166 */ 00167 } 00168 00169 }
UInt_t MTRun::id [private] |
TString MTRun::name [private] |
TString MTRun::date [private] |
bool MTRun::processed [private] |
Definition at line 40 of file MTRun.hh.
Referenced by GetProcessed(), operator=(), and SetProcessed().
bool MTRun::calibrationRun [private] |
Definition at line 42 of file MTRun.hh.
Referenced by Info(), IsCalibrationRun(), operator=(), and SetCalibrationRun().
bool MTRun::difSynchro [private] |
Definition at line 43 of file MTRun.hh.
Referenced by IsDifSynchro(), operator=(), and SetDifSynchro().
time_t MTRun::reconstructionDate [private] |
TString MTRun::rawDataFilename [private] |
Definition at line 47 of file MTRun.hh.
Referenced by GetRawDataFilename(), Info(), operator=(), and SetRawDataFilename().
TString MTRun::svnrev [private] |
Char_t MTRun::rawDataFormat [private] |
Char_t MTRun::daqSoftVersion [private] |
Char_t MTRun::cccFirmwareVersion [private] |
Definition at line 53 of file MTRun.hh.
Referenced by GetCCCFirmwareVersion(), Info(), and operator=().
UShort_t MTRun::delayTrigger [private] |
Definition at line 68 of file MTRun.hh.
Referenced by GetDelayTrigger(), operator=(), and SetDelayTrigger().
Float_t MTRun::injectedCharge [private] |
Definition at line 71 of file MTRun.hh.
Referenced by GetInjectedCharge(), Info(), operator=(), and SetInjectedCharge().
UShort_t MTRun::widthCtest [private] |
Definition at line 72 of file MTRun.hh.
Referenced by GetWidthCtest(), operator=(), and SetWidthCtest().
UShort_t MTRun::periodCtest [private] |
Definition at line 73 of file MTRun.hh.
Referenced by GetPeriodCtest(), operator=(), and SetPeriodCtest().
UShort_t MTRun::delayCtest [private] |
Definition at line 74 of file MTRun.hh.
Referenced by GetDelayCtest(), operator=(), and SetDelayCtest().
MTDetector* MTRun::detector [private] |
Definition at line 76 of file MTRun.hh.
Referenced by GetDetector(), operator=(), SetDectector(), and ~MTRun().