]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONVDigitStore.cxx
updated vertex selection
[u/mrichter/AliRoot.git] / MUON / AliMUONVDigitStore.cxx
index 476ee2d4c0091ecf6cca4d7e63b55f47b57aa006..72f0f9f62ea5b56b04181b1d140652d64db13a22 100644 (file)
@@ -15,6 +15,7 @@
 
 // $Id$
 
+//-----------------------------------------------------------------------------
 /// \class AliMUONVDigitStore
 ///
 /// Interface for a digit (or sdigit) container
@@ -23,6 +24,7 @@
 /// can create iterators to loop over (part of) the elements.
 ///
 /// \author Laurent Aphecetche, Subatech
+//-----------------------------------------------------------------------------
 
 #include "AliMUONVDigitStore.h"
 
@@ -98,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;
   }