Ignore:
Timestamp:
06/30/04 19:48:23 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
2 edited

Legend:

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

    r3387 r4370  
    174174    // - Branches are automatically deleted by the tree destructor
    175175    //
    176 
    177     //
    178     // Write the run header information to the file
    179     //
    180     TTree *rh = new TTree("RunHeaders", "Run headers of all runs in this file");
    181     rh->Branch("MRawRunHeader.", "MRawRunHeader", &fRawRunHeader, 32000);
    182     rh->Fill();
    183     //rh->Write();
     176    fTRunHeader = new TTree("RunHeaders", "Run headers of all runs in this file");
     177    fTRunHeader->Branch("MRawRunHeader.", "MRawRunHeader", &fRawRunHeader, 32000);
    184178
    185179    //
     
    229223    return kTRUE;
    230224}
    231    
     225
     226// --------------------------------------------------------------------------
     227//
     228// Write the run header information to the file
     229//
     230Bool_t MRawFileWrite::ReInit(MParList *pList)
     231{
     232    fTRunHeader->Fill();
     233    return kTRUE;
     234}
     235
    232236// --------------------------------------------------------------------------
    233237//
  • trunk/MagicSoft/Mars/mraw/MRawFileWrite.h

    r3800 r4370  
    3131    TTree *fTCalibration;           //!
    3232
     33    TTree *fTRunHeader;             //!
     34
    3335    TFile *fOut;                    //!
     36
     37    Int_t  PreProcess(MParList *pList);
     38    Bool_t ReInit(MParList *pList);
     39    Int_t  Process();
    3440
    3541public:
     
    4147    ~MRawFileWrite();
    4248
    43     Int_t PreProcess(MParList *pList);
    44     Int_t Process();
    45 
    4649    ClassDef(MRawFileWrite, 0)  // Task to write the raw data containers to a root file
    4750};
Note: See TracChangeset for help on using the changeset viewer.