1 ////////////////////////////////////////////////////////
2 // Macro to attach and open an IceCube event file
3 // for interactive investigation.
5 // To run this macro, just do
9 //--- NvE 18-jun-2004 Utrecht University
10 /////////////////////////////////////////////
12 gSystem->Load("ralice");
13 gSystem->Load("icepack");
15 // Access to the input data
16 TFile* f=new TFile("events.root");
17 TTree* data=(TTree*)f->Get("T");
19 // Provide overview of Tree contents
23 // Define a pointer for an event
26 // Branch in the tree for the event input
27 data->SetBranchAddress("IceEvent",&evt);
30 cout << " *READ* nentries : " << data->GetEntries() << endl;
33 cout << " Use data->GetEntry(i) to load the i-th entry." << endl;
34 cout << " The event object is called evt " << endl;