Ignore:
Timestamp:
07/09/01 16:13:19 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
4 edited

Legend:

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

    r859 r860  
    9797    // open the input stream
    9898    //
     99    fFileName = fname;
    99100    fIn = new ifstream(fname);
    100 
    101     if (!(*fIn))
    102         *fLog << "Error: Trying to open file '" << fname << "'" << endl;
    103101}
    104102
     
    131129{
    132130    //
    133     // remember the pointer to the parameter list fur further usage
    134     //
     131    // first of all check if opening the file in the constructor was
     132    // successfull
     133    //
     134    if (!(*fIn))
     135    {
     136        *fLog << "Error: Cannot open file '" << fFileName << "'" << endl;
     137        return kFALSE;
     138    }
    135139
    136140    //
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.h

    r698 r860  
    2424    MTime          *fRawEvtTime;    // raw evt time information container to fill from file
    2525
     26    TString         fFileName;
    2627    ifstream       *fIn;            //! buffered input stream (file to read from)
    2728
  • trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc

    r859 r860  
    7777{
    7878    //
    79     // delete instance, this laso does a fOut->Close()
    80     //
     79    // delete instance, this also does a fOut->Close()
     80    //
     81    if (fOut->IsOpen())
     82        fOut->Write();
     83
    8184    delete fOut;
    8285}
     
    104107    if (!fOut->IsOpen())
    105108    {
    106         *fLog << dbginf << "Cannot open file '" << fOut->GetName() << "'" << endl;
     109        *fLog << dbginf << "Error: Cannot open file '" << fOut->GetName() << "'" << endl;
    107110        return kFALSE;
    108111    }
     
    200203    //
    201204    const UShort_t type = fRawEvtHeader->GetTrigType();
    202 
     205    cout << "W" << flush;
    203206    //
    204207    // writa data to the tree. the tree is choosen by the type of the event
     
    225228}
    226229
    227 
    228 // --------------------------------------------------------------------------
    229 //
    230 // Close the TFile object and delete it.
    231 //
    232 Bool_t MRawFileWrite::PostProcess()
    233 {
    234     //
    235     // empty data stream
    236     //
    237     fOut->Write();
    238 
    239     return kTRUE;
    240 }
    241 
  • trunk/MagicSoft/Mars/mraw/MRawFileWrite.h

    r852 r860  
    4343    Bool_t PreProcess(MParList *pList);
    4444    Bool_t Process();
    45     Bool_t PostProcess();
    4645
    4746    ClassDef(MRawFileWrite, 0)  // Task to write the raw data containers to a root file
Note: See TracChangeset for help on using the changeset viewer.