--- PamelaLevel2/doc/examples/example2.C 2006/06/16 16:43:55 1.1.1.1 +++ PamelaLevel2/doc/examples/example2.C 2006/10/09 12:37:52 1.2 @@ -34,7 +34,7 @@ // TFile f(file); // - TTree *T = pam_event->LoadPamTrees(&f); // << load Pamela trees from file f + TTree *T = pam_event->GetPamTree(&f); // << get Pamela trees from file f Int_t nevent = T->GetEntries(); // ******************** // load magnetic field @@ -57,8 +57,8 @@ // cout << endl<< " Start loop over events "; for (Int_t i=0; iGetEntry(i); + // + T->GetEntry(i); // if(pam_event->GetNTracks()==1){ // << select events with only one track // @@ -75,7 +75,7 @@ ){ cout << endl<< "***** First trajectory"<< endl; - track->DoTrack2(tr1); // << calculate the first trajectory in magnetic field + track->DoTrack2(tr1); // << calculate the first trajectory in magnetic field // tr1->Dump(); // dump the trajectory cout << "Length: "<< tr1->GetLength()<