6 TFile*
f =
new TFile(
"pygen_sim_01_test04_test2.root");
7 TTree *
tree=(TTree *) f->Get(
"pndsim") ;
8 TGeoManager *
geoMan = (TGeoManager*) f->Get(
"FAIRGeom");
11 TClonesArray* fMdt=
new TClonesArray(
"PndMdtPoint");
12 tree->SetBranchAddress(
"MdtPoint",&fMdt);
14 TClonesArray* fMC=
new TClonesArray(
"PndMCTrack");
15 tree->SetBranchAddress(
"MCTrack",&fMC);
17 Int_t NEvents = (Int_t) tree->GetEntriesFast();
18 cout<<
"N. of events: "<<NEvents<<endl;
22 for (Int_t js=0; js<NEvents; js++){
23 cout<<
"Event "<<js<<endl;
26 cout<<
"fMC->GetEntriesFast() "<<fMC->GetEntriesFast()<<endl;
27 Int_t NPoints = (Int_t) fMdt->GetEntriesFast();
28 cout<<
"fMdt->GetEntriesFast() "<<fMdt->GetEntriesFast()<<endl;
29 Int_t pmp_tid = fMC->GetEntriesFast();
30 cout<<
"N. of hits: "<<NPoints<<endl;
42 for (Int_t
i=0;
i<NPoints ;
i++){
47 if((Pid1-Pid2)!=0) {cout<<
" - "<<
i <<
" (Point ) Pid "<< Pid1 <<
" track Pid "<< Pid2 << endl;
58 cout <<
" Test passed" << endl;
59 cout <<
" All ok " << endl;
61 cout <<
" Test Failed" << endl;
62 cout <<
" Not Ok " << endl;