Ignore:
Timestamp:
12/02/03 16:05:24 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mreport
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mreport/MReportCamera.h

    r2556 r2592  
    4444    Bool_t InterpreteBody(TString &str);
    4545
    46     ClassDef(MReportCamera, 1) // Base class for control reports
     46    ClassDef(MReportCamera, 1) // Class for CAMERA-REPORT information
    4747};
    4848
  • trunk/MagicSoft/Mars/mreport/MReportDAQ.h

    r2591 r2592  
    1414    Bool_t InterpreteBody(TString &str);
    1515
    16     ClassDef(MReportDAQ, 1) // Base class for control reports
     16    ClassDef(MReportDAQ, 1) // Class for DAQ-REPORT information
    1717};
    1818
  • trunk/MagicSoft/Mars/mreport/MReportDrive.cc

    r2566 r2592  
    2626//
    2727//  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.
    2834//
    2935//////////////////////////////////////////////////////////////////////////////
  • trunk/MagicSoft/Mars/mreport/MReportDrive.h

    r2566 r2592  
    4444    Double_t GetAbsError() const;
    4545
    46     ClassDef(MReportDrive, 1) // Base class for control reports
     46    ClassDef(MReportDrive, 1) // Class for DRIVE-REPORT information
    4747};
    4848
  • trunk/MagicSoft/Mars/mreport/MReportFileRead.cc

    r2556 r2592  
    2525//////////////////////////////////////////////////////////////////////////////
    2626//
    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.
    2838//
    2939//////////////////////////////////////////////////////////////////////////////
     
    123133// --------------------------------------------------------------------------
    124134//
    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.
    126137//
    127138MReportFileRead::MReportFileRead(const char *fname, const char *name, const char *title)
     
    138149// --------------------------------------------------------------------------
    139150//
    140 // Destructor. Delete input stream.
     151// Destructor. Delete input stream and hash table.
    141152//
    142153MReportFileRead::~MReportFileRead()
     
    161172}
    162173
     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//
    163179Bool_t MReportFileRead::AddToList(const char *name) const
    164180{
     
    182198}
    183199
     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//
    184207Bool_t MReportFileRead::CheckFileHeader() const
    185208{
     
    219242// --------------------------------------------------------------------------
    220243//
    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.
    234246//
    235247Int_t MReportFileRead::PreProcess(MParList *pList)
     
    264276// --------------------------------------------------------------------------
    265277//
    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)
    271281//
    272282Int_t MReportFileRead::Process()
     
    304314// --------------------------------------------------------------------------
    305315//
    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
    309317//
    310318Int_t MReportFileRead::PostProcess()
  • trunk/MagicSoft/Mars/mreport/MReportFileRead.h

    r2556 r2592  
    4242    Bool_t AddToList(const char *name) const;
    4343
    44     ClassDef(MReportFileRead, 0)        // Task to read the raw data binary file
     44    ClassDef(MReportFileRead, 0)// Task to read the central control report file
    4545};
    4646
  • trunk/MagicSoft/Mars/mreport/MReportTrigger.cc

    r2556 r2592  
    2727//  MReportTrigger
    2828//
     29// This is the class interpreting and storing the TRIGGER-REPORT information.
     30//
    2931//////////////////////////////////////////////////////////////////////////////
    3032#include "MReportTrigger.h"
     
    3638using namespace std;
    3739
    38 MReportTrigger::MReportTrigger() : MReport("TRIGGER-REPORT"), fPrescalerRates(19)//, fRates(11)
     40MReportTrigger::MReportTrigger() : MReport("TRIGGER-REPORT"), fPrescalerRates(19)
    3941{
    4042    fName = "MReportTrigger";
  • trunk/MagicSoft/Mars/mreport/MReportTrigger.h

    r2556 r2592  
    2424    Bool_t InterpreteBody(TString &str);
    2525
    26     ClassDef(MReportTrigger, 1) // Base class for control reports
     26    ClassDef(MReportTrigger, 1) // Class for TRIGGER-REPORT information
    2727};
    2828
  • trunk/MagicSoft/Mars/mreport/Makefile

    r2555 r2592  
    3333           MReportCamera.cc \
    3434           MReportTrigger.cc \
     35           MReportCurrents.cc \
    3536           MReportFileRead.cc
    3637
  • trunk/MagicSoft/Mars/mreport/ReportLinkDef.h

    r2520 r2592  
    1111#pragma link C++ class MReportCamera+;
    1212#pragma link C++ class MReportTrigger+;
     13#pragma link C++ class MReportCurrents+;
    1314
    1415#pragma link C++ class MReportFileRead+;
Note: See TracChangeset for help on using the changeset viewer.