X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONVDigitStore.cxx;h=501d71d2917e5fce9bd1871ffd1dfe05b5e71d42;hb=ab0f914c4be5ce381fa8e7eb383a0ae8363975a0;hp=412060d203e20f9ac116ce7da275e1bb0a291f17;hpb=3d1463c8f7148e36069c24f20cde34e096d5d6a9;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONVDigitStore.cxx b/MUON/AliMUONVDigitStore.cxx index 412060d203e..501d71d2917 100644 --- a/MUON/AliMUONVDigitStore.cxx +++ b/MUON/AliMUONVDigitStore.cxx @@ -100,7 +100,7 @@ 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; } @@ -153,9 +153,8 @@ AliMUONVDigitStore::GetSize(Int_t detElemId, Int_t cathode) const { /// 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(next()) ) ) + while ( ( next() ) ) { ++n; }