#include "AliMUONDigitStoreV1.h"
+//-----------------------------------------------------------------------------
/// \class AliMUONDigitStoreV1
///
/// (Legacy) Implementation of AliMUONVDigitStore.
/// to data stores.
///
// \author Laurent Aphecetche, Subatech
-///
+//-----------------------------------------------------------------------------
#include "AliLog.h"
#include "AliMUONDigit.h"
}
}
+//_____________________________________________________________________________
+AliMUONDigitStoreV1::AliMUONDigitStoreV1(TRootIOCtor* /*dummy*/)
+: AliMUONVDigitStore(),
+fDigits(0x0),
+fChamberDigits(0x0)
+{
+ /// ctor
+}
+
//_____________________________________________________________________________
AliMUONDigitStoreV1::AliMUONDigitStoreV1()
: AliMUONVDigitStore(),
{
/// Get the address of the TClonesArray storing digits for chamberId.
- return fDigits->GetObjectRef(fDigits->UncheckedAt(chamberId));
-
TObject* object = fDigits->At(chamberId);
if (!object)
}
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;
+}
+