Changeset 762 for trunk/MagicSoft


Ignore:
Timestamp:
04/23/01 14:44:25 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.cc

    r749 r762  
    4949
    5050
    51 /*/  ----------- please don't delete ------------
     51/*/  ----------- please don't delete and don't care about (Thomas) ------------
    5252#define kBUFSZ 1024
    5353
     
    7979*/
    8080
     81// --------------------------------------------------------------------------
     82//
     83// Default constructor. It tries to open the given file.
     84//
    8185MRawFileRead::MRawFileRead(const char *fname, const char *name, const char *title)
    8286{
     
    9397}
    9498
     99// --------------------------------------------------------------------------
     100//
     101// Destructor. Delete input stream.
     102//
    95103MRawFileRead::~MRawFileRead()
    96104{
     
    98106}
    99107
     108// --------------------------------------------------------------------------
     109//
     110// The PreProcess of this task checks for the following containers in the
     111// list:
     112//   MRawRunHeader <output>   if not found it is created
     113//   MRawEvtHeader <output>   if not found it is created
     114//   MRawEvtData <output>     if not found it is created
     115//   MRawCrateArray <output>  if not found it is created
     116//   MRawEvtTime <output>     if not found it is created (MTime)
     117//
     118// If all containers are found or created the run header is read from the
     119// binary file and printed.  If the Magic-Number (file identification)
     120// doesn't match we stop the eventloop.
     121//
     122// Now the EvtHeader and EvtData containers are initialized.
     123//
    100124Bool_t MRawFileRead::PreProcess(MParList *pList)
    101125{
     
    124148        return kFALSE;
    125149
    126     fRawEvtTime = (MTime*)pList->FindCreateObj("MRawEvtTime");
     150    fRawEvtTime = (MTime*)pList->FindCreateObj("MTime", "MRawEvtTime");
    127151    if (!fRawEvtTime)
    128152        return kTRUE;
     
    146170}
    147171
     172// --------------------------------------------------------------------------
     173//
     174// The Process reads one event from the binary file:
     175//  - The event header is read
     176//  - the run header is read
     177//  - all crate information is read
     178//  - the raw data information of one event is read
     179//
    148180Bool_t MRawFileRead::Process()
    149181{
Note: See TracChangeset for help on using the changeset viewer.