adding instances for the BarrelMultiplicityTrigger to the default configuration
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Dec 2009 07:53:26 +0000 (07:53 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Dec 2009 07:53:26 +0000 (07:53 +0000)
according to the HM-PHYSICS-V0001 setup
 *  1. Trigger items based on TPC tracks
 *  ------------------------------------
 *  a) H-TRACK_MULTIPLICITY-V0002.001-CENTRAL-ALL   min 10 tracks
 *     Trigger name: BarrelMultiplicityTrigger
 *  b) H-TRACK_MULTIPLICITY-V0002.002-CENTRAL-ALL   min 100 tracks
 *     Trigger name: BarrelHighMultiplicity
 *  c) H-TRACK_MULTIPLICITY-V0002.003-CENTRAL-ALL   min 1 tracks pt > 0.5 GeV
 *     Trigger name: BarrelPt_v01
 *  d) H-TRACK_MULTIPLICITY-V0002.004-CENTRAL-ALL   min 1 tracks pt > 1 GeV
 *     Trigger name: BarrelPt_v02
 *  e) H-TRACK_MULTIPLICITY-V0002.005-CENTRAL-ALL   min 1 tracks pt > 5 GeV
 *     Trigger name: BarrelPt_v03

HLT/trigger/AliHLTTriggerAgent.cxx

index 55863b1..704913e 100644 (file)
@@ -106,7 +106,7 @@ int AliHLTTriggerAgent::CreateConfigurations(AliHLTConfigurationHandler* pHandle
   // a central barrel charged particle multiplicity trigger
   configurationId="TRIGGER-Barrel-Multiplicity";
 
-  // define the inputsfor the BarrelMultiplicityTrigger
+  // define the inputs for the BarrelMultiplicityTrigger
   triggerInputs="GLOBAL-esd-converter";
 
   // check for the availibility
@@ -123,11 +123,37 @@ int AliHLTTriggerAgent::CreateConfigurations(AliHLTConfigurationHandler* pHandle
     delete pTokens;
   }
 
+  TString arg;
   if (triggerInputs.Length()>0) {
+    // define multiple instances of the BarrelMultiplicityTrigger with different settings
     HLTInfo("Configuring inputs for %s: %s", configurationId.Data(), triggerInputs.Data());
     pHandler->CreateConfiguration(configurationId.Data(), "BarrelMultiplicityTrigger", triggerInputs.Data(), "");
     if (triggerOutputs.Length()>0) triggerOutputs+=" ";
     triggerOutputs+=configurationId;
+
+    configurationId="TRIGGER-Barrel-HighMultiplicity";
+    arg="-triggername BarrelHighMultiplicity";
+    pHandler->CreateConfiguration(configurationId.Data(), "BarrelMultiplicityTrigger", triggerInputs.Data(), arg.Data());
+    if (triggerOutputs.Length()>0) triggerOutputs+=" ";
+    triggerOutputs+=configurationId;
+
+    configurationId="TRIGGER-Barrel-Pt_v01";
+    arg="-triggername BarrelPt_v01";
+    pHandler->CreateConfiguration(configurationId.Data(), "BarrelMultiplicityTrigger", triggerInputs.Data(), arg.Data());
+    if (triggerOutputs.Length()>0) triggerOutputs+=" ";
+    triggerOutputs+=configurationId;
+
+    configurationId="TRIGGER-Barrel-Pt_v02";
+    arg="-triggername BarrelPt_v02";
+    pHandler->CreateConfiguration(configurationId.Data(), "BarrelMultiplicityTrigger", triggerInputs.Data(), arg.Data());
+    if (triggerOutputs.Length()>0) triggerOutputs+=" ";
+    triggerOutputs+=configurationId;
+
+    configurationId="TRIGGER-Barrel-Pt_v03";
+    arg="-triggername BarrelPt_v03";
+    pHandler->CreateConfiguration(configurationId.Data(), "BarrelMultiplicityTrigger", triggerInputs.Data(), arg.Data());
+    if (triggerOutputs.Length()>0) triggerOutputs+=" ";
+    triggerOutputs+=configurationId;
   } else {
     HLTWarning("No inputs for %s found, skipping component", configurationId.Data());
   }