Changeset 583


Ignore:
Timestamp:
01/18/01 20:29:03 (24 years ago)
Author:
harald
Message:
First version with MC subbranches.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/readraw.cc

    r547 r583  
    1717#include "MRawCrateArray.h"
    1818#include "MInputStreamID.h"
     19
     20#include "MMcEvt.h"
    1921
    2022#include "MGMarsMain.h"
     
    6466    MRawEvtData    *evtdata   = new MRawEvtData();
    6567    MRawCrateArray *evtcrate  = new MRawCrateArray();
     68
     69    MMcEvt         *evtmc     = new MMcEvt() ;
    6670
    6771    //
     
    134138
    135139        if ( ! strcmp(name, "MMcEvt") )
    136           cout << " Not able to connect to class MMcEvt yet " << endl ;
     140          evttree->GetBranch("MMcEvt")->SetAddress(&evtmc);
    137141
    138142        if ( ! strcmp(name, "MMcTrig") )
     
    156160        evttree->GetEvent(i);
    157161
     162        evtmc->Print("") ;
     163       
    158164        evtheader->Print();
    159165        evttime->Print();
    160166        evtcrate->Print();
    161167        evtdata->Print();
     168
    162169    }
    163170   
Note: See TracChangeset for help on using the changeset viewer.