]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONDigitStoreV1.cxx
Adding AliMUONVDigitStore::HasMCInformation in order to be able to skip MClabel compu...
[u/mrichter/AliRoot.git] / MUON / AliMUONDigitStoreV1.cxx
index 52592c485a324667534de5e81b922cb6c58261ec..7db3f3bd03a2ba3d4ab301778e4558c59a722925 100644 (file)
@@ -366,3 +366,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;
+}
+