]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONErrorCounter.cxx
Fixing minor bug recognizing diffractive events in simulation
[u/mrichter/AliRoot.git] / MUON / AliMUONErrorCounter.cxx
index 089f755ef8d05465b938a6a998bb202ae08e3536..f1312be0b248c227c7cf3048d31df60d46470edd 100644 (file)
@@ -34,10 +34,12 @@ ClassImp(AliMUONErrorCounter)
 
 //______________________________________________________________________________
 AliMUONErrorCounter::AliMUONErrorCounter(Int_t bp, Int_t manu, Int_t ev) 
-  : fBusPatch(bp), 
-    fManuId(manu), 
-    fEvents(ev) 
+: TNamed(Form("bp%dmanu%d",bp,manu),""),
+fBusPatch(bp), 
+fManuId(manu), 
+fEvents(ev) 
 {
+  SetUniqueID( ( manu << 16 ) | bp );
 }
 
 //______________________________________________________________________________
@@ -71,7 +73,7 @@ void AliMUONErrorCounter::Print(const Option_t* option) const
 }
 
 //______________________________________________________________________________
-void AliMUONErrorCounter::Print_uncal(const Option_t* option) const
+void AliMUONErrorCounter::PrintUncal(const Option_t* option) const
 {
   TNamed::Print(option);
   cout<<"bp =  "<<fBusPatch<< "  manu = " << fManuId << " uncal = "<< fEvents <<endl;