]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONDigitStoreV1.cxx
- update track cuts
[u/mrichter/AliRoot.git] / MUON / AliMUONDigitStoreV1.cxx
index 52592c485a324667534de5e81b922cb6c58261ec..8331a3ba5245632f225210305ef5f0618f7db12a 100644 (file)
@@ -56,6 +56,15 @@ namespace
   }
 }
 
+//_____________________________________________________________________________
+AliMUONDigitStoreV1::AliMUONDigitStoreV1(TRootIOCtor* /*dummy*/)
+: AliMUONVDigitStore(), 
+fDigits(0x0),
+fChamberDigits(0x0)
+{
+  /// ctor
+}
+
 //_____________________________________________________________________________
 AliMUONDigitStoreV1::AliMUONDigitStoreV1()
 : AliMUONVDigitStore(), 
@@ -215,8 +224,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 +373,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;
+}
+