#include "km3net-dataformat/offline/Evt.hh"
#include "km3net-dataformat/definitions/root.hh"
#include "TFile.h"
#include "TTree.h"
#include <iostream>
 
Go to the source code of this file.
 | 
| int  | main (int argc, char *argv[]) | 
|   | 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char *  | 
          argv[]  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 7 of file readEvtFile.cc.
   10                 cout << 
"usage: readEvtFile file.root" << endl;
 
   14         TFile *
f1 = TFile::Open(argv[1]);
 
   17                 cerr << 
"File can't be open." << endl;
 
   27         EvtTree->SetBranchAddress(
"Evt",&evt);
 
   28         Long64_t nentries = EvtTree->GetEntries();
 
   29         for (Long64_t 
i=0; 
i<nentries; 
i++) {
 
   31                 cout << 
"Event ID: " <<  evt->
id << endl; 
 
const JPolynome f1(1.0, 2.0, 3.0)
Function. 
 
static const char *const TTREE_OFFLINE_EVENT
ROOT TTree name. 
 
int id
offline event identifier 
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.