Changeset 2592
- Timestamp:
- 12/02/03 16:05:24 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mreport
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreport/MReportCamera.h
r2556 r2592 44 44 Bool_t InterpreteBody(TString &str); 45 45 46 ClassDef(MReportCamera, 1) // Base class for control reports46 ClassDef(MReportCamera, 1) // Class for CAMERA-REPORT information 47 47 }; 48 48 -
trunk/MagicSoft/Mars/mreport/MReportDAQ.h
r2591 r2592 14 14 Bool_t InterpreteBody(TString &str); 15 15 16 ClassDef(MReportDAQ, 1) // Base class for control reports16 ClassDef(MReportDAQ, 1) // Class for DAQ-REPORT information 17 17 }; 18 18 -
trunk/MagicSoft/Mars/mreport/MReportDrive.cc
r2566 r2592 26 26 // 27 27 // MReportDrive 28 // 29 // This is the class interpreting and storing the DRIVE-REPORT information. 30 // 31 // This is NOT the place to get the pointing position from. The class 32 // definition might change. But it is the place to calculate the 33 // correct pointing position from. 28 34 // 29 35 ////////////////////////////////////////////////////////////////////////////// -
trunk/MagicSoft/Mars/mreport/MReportDrive.h
r2566 r2592 44 44 Double_t GetAbsError() const; 45 45 46 ClassDef(MReportDrive, 1) // Base class for control reports46 ClassDef(MReportDrive, 1) // Class for DRIVE-REPORT information 47 47 }; 48 48 -
trunk/MagicSoft/Mars/mreport/MReportFileRead.cc
r2556 r2592 25 25 ////////////////////////////////////////////////////////////////////////////// 26 26 // 27 // MReportFileRead // 27 // MReportFileRead 28 // 29 // Task to read the central control report file. For more information see 30 // the base class of all reports MReport. 31 // 32 // To add a report which should be read use AddToList. 33 // 34 // eg. AddToList("Drive") will assume the existance of a class called 35 // MReportDrive. It will create such an object automatically. It will 36 // send all lines starting with 'MReportDrive::fIndetifier-REPORT' 37 // to this class. 28 38 // 29 39 ////////////////////////////////////////////////////////////////////////////// … … 123 133 // -------------------------------------------------------------------------- 124 134 // 125 // Default constructor. It tries to open the given file. 135 // Default constructor. It tries to open the given file and creates a 136 // THashTable which allows faster access to the MReport* objects. 126 137 // 127 138 MReportFileRead::MReportFileRead(const char *fname, const char *name, const char *title) … … 138 149 // -------------------------------------------------------------------------- 139 150 // 140 // Destructor. Delete input stream .151 // Destructor. Delete input stream and hash table. 141 152 // 142 153 MReportFileRead::~MReportFileRead() … … 161 172 } 162 173 174 // -------------------------------------------------------------------------- 175 // 176 // Add a new MReport* to the list (eg 'Drive' will add MReportDrive) 177 // For convinience the object is created as a MReportHelp object. 178 // 163 179 Bool_t MReportFileRead::AddToList(const char *name) const 164 180 { … … 182 198 } 183 199 200 // -------------------------------------------------------------------------- 201 // 202 // Check whether the file header corresponds to a central control file 203 // header and check for the existance of a correct version number. 204 // The version number may later be used to be able to read different 205 // file versions 206 // 184 207 Bool_t MReportFileRead::CheckFileHeader() const 185 208 { … … 219 242 // -------------------------------------------------------------------------- 220 243 // 221 // The PreProcess of this task checks for the following containers in the 222 // list: 223 // MRawRunHeader <output> if not found it is created 224 // MRawEvtHeader <output> if not found it is created 225 // MRawEvtData <output> if not found it is created 226 // MRawCrateArray <output> if not found it is created 227 // MRawEvtTime <output> if not found it is created (MTime) 228 // 229 // If all containers are found or created the run header is read from the 230 // binary file and printed. If the Magic-Number (file identification) 231 // doesn't match we stop the eventloop. 232 // 233 // Now the EvtHeader and EvtData containers are initialized. 244 // Call SetupReading for all MReportHelp objects scheduled. 245 // Try to open the file and check the file header. 234 246 // 235 247 Int_t MReportFileRead::PreProcess(MParList *pList) … … 264 276 // -------------------------------------------------------------------------- 265 277 // 266 // The Process reads one event from the binary file: 267 // - The event header is read 268 // - the run header is read 269 // - all crate information is read 270 // - the raw data information of one event is read 278 // Read the file line by line as long as a matching MReport* class is found. 279 // In this case call its interpreter (Interprete()) and remove the identifier 280 // first (XYZ-REPORT) 271 281 // 272 282 Int_t MReportFileRead::Process() … … 304 314 // -------------------------------------------------------------------------- 305 315 // 306 // Close the file. Check whether the number of read events differs from 307 // the number the file should containe (MRawRunHeader). Prints a warning 308 // if it doesn't match. 316 // Close the file and print some execution statistics 309 317 // 310 318 Int_t MReportFileRead::PostProcess() -
trunk/MagicSoft/Mars/mreport/MReportFileRead.h
r2556 r2592 42 42 Bool_t AddToList(const char *name) const; 43 43 44 ClassDef(MReportFileRead, 0) // Task to read the raw data binaryfile44 ClassDef(MReportFileRead, 0)// Task to read the central control report file 45 45 }; 46 46 -
trunk/MagicSoft/Mars/mreport/MReportTrigger.cc
r2556 r2592 27 27 // MReportTrigger 28 28 // 29 // This is the class interpreting and storing the TRIGGER-REPORT information. 30 // 29 31 ////////////////////////////////////////////////////////////////////////////// 30 32 #include "MReportTrigger.h" … … 36 38 using namespace std; 37 39 38 MReportTrigger::MReportTrigger() : MReport("TRIGGER-REPORT"), fPrescalerRates(19) //, fRates(11)40 MReportTrigger::MReportTrigger() : MReport("TRIGGER-REPORT"), fPrescalerRates(19) 39 41 { 40 42 fName = "MReportTrigger"; -
trunk/MagicSoft/Mars/mreport/MReportTrigger.h
r2556 r2592 24 24 Bool_t InterpreteBody(TString &str); 25 25 26 ClassDef(MReportTrigger, 1) // Base class for control reports26 ClassDef(MReportTrigger, 1) // Class for TRIGGER-REPORT information 27 27 }; 28 28 -
trunk/MagicSoft/Mars/mreport/Makefile
r2555 r2592 33 33 MReportCamera.cc \ 34 34 MReportTrigger.cc \ 35 MReportCurrents.cc \ 35 36 MReportFileRead.cc 36 37 -
trunk/MagicSoft/Mars/mreport/ReportLinkDef.h
r2520 r2592 11 11 #pragma link C++ class MReportCamera+; 12 12 #pragma link C++ class MReportTrigger+; 13 #pragma link C++ class MReportCurrents+; 13 14 14 15 #pragma link C++ class MReportFileRead+;
Note:
See TracChangeset
for help on using the changeset viewer.