remove option C for Clear for trigger array for the moment, causes malloc error
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnCutBetheBloch.cxx
index 8ee144d6aae32ab4cdb4b7b457318958d3ef1541..329426f2dab142c7c4a8429cc273e4aa85889418 100644 (file)
@@ -120,7 +120,9 @@ Bool_t AliRsnCutBetheBloch::IsSelected(TObject *object)
   if (!TargetOK(object)) return kFALSE;
 
   // retrieve the TPC signal
-  AliRsnDaughter *track = dynamic_cast<AliRsnDaughter*>(object);
+  AliRsnDaughter *track = fDaughter;
+  
+  // if track is meaningful, retrieve its ESD format
   AliESDtrack    *esd   = track->GetRefESDtrack();
   if (!esd) {
     AliError("ESD information unavailable");