// $Id$
+//-----------------------------------------------------------------------------
/// \class AliMUONVDigitStore
///
/// Interface for a digit (or sdigit) container
/// can create iterators to loop over (part of) the elements.
///
/// \author Laurent Aphecetche, Subatech
+//-----------------------------------------------------------------------------
#include "AliMUONVDigitStore.h"
AliMUONVDigitStore*
AliMUONVDigitStore::Create(const char* digitstoreclassname)
{
+ /// Create a concrete digitStore, given its classname
+
TClass* classPtr = TClass::GetClass(digitstoreclassname);
- if (!classPtr)
+ if (!classPtr || !classPtr->InheritsFrom("AliMUONVDigitStore"))
{
return 0x0;
}
AliMUONVDigit*
AliMUONVDigitStore::FindObject(const TObject* object) const
{
+ /// Find an object, if of AliMUONVDigit type.
const AliMUONVDigit* digit = dynamic_cast<const AliMUONVDigit*>(object);
if (digit)
{
{
/// Return the number of digits we have for a given detection element
TIter next(CreateIterator(detElemId,detElemId,cathode));
- AliMUONVDigit* digit;
Int_t n(0);
- while ( ( digit = static_cast<AliMUONVDigit*>(next()) ) )
+ while ( ( next() ) )
{
++n;
}