]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/icepack/IceXtalk.cxx
26-sep-2007 NvE AliTrack extended with GetNsignals for a specific signal class.
[u/mrichter/AliRoot.git] / RALICE / icepack / IceXtalk.cxx
index 35159ef57ef3e3d6d363292888a4beec1ea32253..c393a20249d87610e323e3550d2379af6a8281b1 100644 (file)
@@ -19,6 +19,9 @@
 // Class IceXtalk
 // TTask derived class to perform cross talk hit correction.
 //
+// In case an event has been rejected by an AliEventSelector (based) processor,
+// this task (and its sub-tasks) is not executed.
+//
 // Note : This processor only acts on MuDaq data.
 //
 // This task takes the current event in memory and uses the attached
@@ -144,6 +147,13 @@ void IceXtalk::Exec(Option_t* opt)
  IceEvent* evt=(IceEvent*)parent->GetObject("IceEvent");
  if (!evt) return;
 
+ // Only process accepted events
+ AliDevice* seldev=(AliDevice*)evt->GetDevice("AliEventSelector");
+ if (seldev)
+ {
+  if (seldev->GetSignal("Select") < 0.1) return;
+ }
+
  Int_t mudaq=0;
  Int_t twrdaq=0;
  AliSignal* daq=(AliSignal*)evt->GetDevice("Daq");