Changeset 4370


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4365 r4370  
    1919
    2020                                                 -*-*- END OF LINE -*-*-
     21
     22 2004/06/30: Thomas Bretz
     23
     24   * mbase/MEvtLoop.[h,cc]:
     25     - overwrite ReadEnv with a new function taking the
     26       name of the setup file as argument
     27
     28   * mjobs/MJPedestal.[h,cc]:
     29     - added setup file name as argument to
     30
     31   * mjobs/MJPedestal.[h,cc]:
     32     - implemented a new data member fEnv
     33     - implemented new setter SetEnv
     34     - some small changes towards setup files
     35     - some simplifications to line drawing
     36
     37   * msignal/MExtractor.[h,cc]:
     38     - added ReadEnv member function
     39     - removed obsolete virtual qualifiers in header
     40     - simplified usage of Form()
     41
     42   * mraw/MRawFileWrite.[h,cc]:
     43     - moved writing of RunHeaders from PreProcess to new ReInit
     44
     45
    2146
    2247 2004/06/29: Thomas Bretz
  • 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.