]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSPIDv1.cxx
add a data member to count the number of produced objects by run
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPIDv1.cxx
index c9bc8980c1b50308edac5e1320d9ca4814a4d16d..03dcc8816bedaab5ffc9df73593396bb39027bf8 100644 (file)
@@ -98,6 +98,7 @@ AliPHOSPIDv1::AliPHOSPIDv1():AliPHOSPID()
   fRecPointsTitle    = "" ; 
   fRecParticlesTitle = "" ; 
   fIDOptions         = "" ; 
+  fRecParticlesInRun = 0 ; 
 }
 
 //____________________________________________________________________________
@@ -118,6 +119,7 @@ AliPHOSPIDv1::AliPHOSPIDv1(const char * headerFile,const char * name) : AliPHOSP
   TString tempo(GetName()) ; 
   tempo.Append(Version()) ; 
   SetName(tempo.Data()) ; 
+  fRecParticlesInRun = 0 ; 
    
   Init() ;
 
@@ -618,6 +620,8 @@ void AliPHOSPIDv1::PrintRecParticles(Option_t * option)
   cout << "AliPHOSPIDv1: event "<<gAlice->GetEvNumber()  << endl ;
   cout << "       found " << recParticles->GetEntriesFast() << " RecParticles " << endl ;
 
+  fRecParticlesInRun += recParticles->GetEntriesFast() ; 
+
   if(strstr(option,"all")) {  // printing found TS
     
     cout << "  PARTICLE "