]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Printout event info if duplicate event found
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Oct 2010 22:08:17 +0000 (22:08 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Oct 2010 22:08:17 +0000 (22:08 +0000)
PWG4/TwoPartCorr/mergeCorr.C

index c44ff09f2bb6393b0e5d3d9843b2b9cdba93eba5..02ba9665021808791631564d58d423eeff61b537 100644 (file)
@@ -174,6 +174,7 @@ void mergeCorr(Int_t nEvents,
 
     totnent += nent;
     cout << "Found "<< nent << " entries in " << fname << endl;
+    TObjArray *filesnames = dynamic_cast<TObjArray*>(output->FindObject("filesnames"));
 
     MyHeader *header = 0;
     TBranch *br = tree->GetBranch("header");
@@ -212,6 +213,8 @@ void mergeCorr(Int_t nEvents,
           cout << " Nseltracks: " << it->second->fNSelTracks << " vs " << header->fNSelTracks << endl; 
           cout << " Ntracklets: " << it->second->fNTracklets << " vs " << header->fNTracklets << endl; 
           cout << " Vz: " << it->second->fVz << " vs " << header->fVz << endl;
+          cout << " Duplicate event " << header->fEvNumberInFile << " in file " 
+               << filesnames->At(header->fFileId)->GetName() << endl;
           ++totndup;
         }
 #endif