From 31572b9ed22d1c9fba9ad73d38b08fd509553d30 Mon Sep 17 00:00:00 2001 From: cvetan Date: Wed, 10 Feb 2010 14:46:50 +0000 Subject: [PATCH] Added possibility to introduce downscaling in the selection of raw-data event based on a logical expression of trigger classes. The syntax is followed by % and N, where N is a integer downscaling factor. --- RAW/AliRawReader.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RAW/AliRawReader.cxx b/RAW/AliRawReader.cxx index a336d4693f7..09b4f4a7068 100644 --- a/RAW/AliRawReader.cxx +++ b/RAW/AliRawReader.cxx @@ -474,6 +474,8 @@ Bool_t AliRawReader::IsEventSelected() const expr.ReplaceAll(Form("[%d]",itrigger),"0"); } } + // Possibility to introduce downscaling + expr.ReplaceAll("%",Form("&& !%d %%",GetEventIndex())); Int_t error; if ((gROOT->ProcessLineFast(expr.Data(),&error) == 0) && (error == TInterpreter::kNoError)) { -- 2.43.0