]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONDigitStoreV1.cxx
bugfix #83123: registration of configurations in multiple handlers. The bug caused...
[u/mrichter/AliRoot.git] / MUON / AliMUONDigitStoreV1.cxx
index 52592c485a324667534de5e81b922cb6c58261ec..6c54941c471b46d0605c4df5beac1779df283a26 100644 (file)
@@ -215,8 +215,6 @@ AliMUONDigitStoreV1::ChamberDigitsPtr(Int_t chamberId) const
 {
   /// Get the address of the TClonesArray storing digits for chamberId.
 
-  return fDigits->GetObjectRef(fDigits->UncheckedAt(chamberId));
-
   TObject* object = fDigits->At(chamberId);
 
   if (!object)
@@ -366,3 +364,19 @@ AliMUONDigitStoreV1::GetSize() const
   }  
   return n;
 }
+
+//_____________________________________________________________________________
+Bool_t 
+AliMUONDigitStoreV1::HasMCInformation() const
+{
+  /// As this class is legacy, don't care about looping and loosing a bit of
+  /// time...
+  TIter next(CreateIterator());
+  AliMUONVDigit* digit;
+  while ( ( digit = static_cast<AliMUONVDigit*>(next()) ) )
+  {
+    if ( digit->HasMCInformation() ) return kTRUE;
+  }
+  return kFALSE;
+}
+