]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/icepack/IceCleanHits.cxx
26-sep-2007 NvE AliTrack extended with GetNsignals for a specific signal class.
[u/mrichter/AliRoot.git] / RALICE / icepack / IceCleanHits.cxx
index 292157acb42b8ea4e5e88da62efd3db88c2a400e..36c902a129042c36b4189fadfa877a1b35873540 100644 (file)
@@ -19,6 +19,9 @@
 // Class IceCleanHits
 // TTask derived class to perform hit cleaning.
 //
+// In case an event has been rejected by an AliEventSelector (based) processor,
+// this task (and its sub-tasks) is not executed.
+//
 // The code in this processor is based on the algorithms as developed
 // by Oladipo Fadiran and George Japaridze (Clark Atlanta University, USA).
 //
@@ -244,6 +247,13 @@ void IceCleanHits::Exec(Option_t* opt)
  fEvt=(IceEvent*)parent->GetObject("IceEvent");
  if (!fEvt) return;
 
+ // Only process accepted events
+ AliDevice* seldev=(AliDevice*)fEvt->GetDevice("AliEventSelector");
+ if (seldev)
+ {
+  if (seldev->GetSignal("Select") < 0.1) return;
+ }
+
  // Storage of the used parameters in the IceCleanHits device
  AliSignal params;
  params.SetNameTitle("IceCleanHits","IceCleanHits processor parameters");