3 #ifndef ALIHLTTRIGGERBARRELMULTIPLICITY_H
4 #define ALIHLTTRIGGERBARRELMULTIPLICITY_H
5 //* This file is property of and copyright by the ALICE HLT Project *
6 //* ALICE Experiment at CERN, All rights reserved. *
7 //* See cxx source for full Copyright notice *
9 /// @file AliHLTTriggerBarrelMultiplicity.h
10 /// @author Matthias Richter, Jochen Thaeder
12 /// @brief HLT trigger component for charged particle multiplicity in
13 /// the central barrel.
15 #include "AliHLTTrigger.h"
20 class AliHLTESDTrackCuts;
23 * @class AliHLTTriggerBarrelMultiplicity
24 * HLT trigger component for charged particle multiplicity in the
27 * Triggers on charged particle number in a certain pt range and geometrical
30 * Multiple instances of this component can serve different trigger
31 * conditions, i.e. component parameters. The different instances get
32 * different names, specified by the '-triggername' component argument.
33 * The configuration is loaded from OCDB entries according to the name, see
36 * <h2>General properties:</h2>
38 * Component ID: \b BarrelMultiplicityTrigger <br>
39 * Library: \b libAliHLTTrigger.so <br>
40 * Input Data Types: kAliHLTDataTypeESDObject, kAliHLTDataTypeESDTree
41 * kAliHLTDataTypeTrack <br>
42 * Output Data Types: ::kAliHLTAnyDataType <br>
44 * <h2>Mandatory arguments:</h2>
45 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
47 * <h2>Optional arguments:</h2>
48 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
50 * <h2>Configuration:</h2>
51 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
52 * \li -mintracks <i> n </i> <br>
53 * required number of tracks for a trigger
54 * \li -minpt <i> pt </i> <br>
55 * required minimum pt for a trigger
56 * \li -maxpt <i> pt </i> <br>
57 * required maximum pt for a trigger
58 * \li -min-ldca <i> dca </i> <br>
59 * minimum longitudinal dca to reference point
60 * \li -max-ldca <i> dca </i> <br>
61 * maximum longitudinal dca to reference point
62 * \li -min-tdca <i> dca </i> <br>
63 * minimum transverse dca to reference point
64 * \li -max-tdca <i> dca </i> <br>
65 * maximum transverse dca to reference point
66 * \li -triggername <i> name </i> <br>
67 * The name of this specific trigger.
69 * By default, configuration is loaded from OCDB, can be overridden by
70 * component arguments.
72 * <h2>Default CDB entries:</h2>
73 * HLT/ConfigHLT/BarrelMultiplicityTrigger: TObjString storing the arguments <br>
74 * HLT/ConfigHLT/<name>: for triggers with specific names
76 * HLT/ConfigHLT/H_._Barrel_pT_Single_._V0001.001
77 * - TriggerName : H-Barrel_pT_Single-V0001.001
78 * - ObjectType : AliHLTESDTrackCuts
79 * HLT/ConfigHLT/H_._Barrel_pT_Single_._V0002.001
80 * - TriggerName : H-Barrel_pT_Single-V0002.001
81 * - ObjectType : AliHLTESDTrackCuts
82 * HLT/ConfigHLT/H_._Barrel_pT_Single_._V0003.001
83 * - TriggerName : H-Barrel_pT_Single-V0003.001
84 * - ObjectType : AliHLTESDTrackCuts
86 * <h2>Performance:</h2>
89 * <h2>Memory consumption:</h2>
92 * <h2>Output size:</h2>
95 * \ingroup alihlt_trigger_components
97 class AliHLTTriggerBarrelMultiplicity : public AliHLTTrigger
100 AliHLTTriggerBarrelMultiplicity();
101 virtual ~AliHLTTriggerBarrelMultiplicity();
103 /// inherited from AliHLTTrigger: name of this trigger
104 virtual const char* GetTriggerName() const;
105 /// inherited from AliHLTComponent: create an instance
106 virtual AliHLTComponent* Spawn();
109 /// inherited from AliHLTComponent: handle the initialization
110 int DoInit(int argc, const char** argv);
112 /// inherited from AliHLTComponent: handle cleanup
115 /// inherited from AliHLTComponent: handle re-configuration event
116 int Reconfigure(const char* cdbEntry, const char* chainId);
118 /// inherited from AliHLTComponent: handle dcs update event
119 int ReadPreprocessorValues(const char* modules);
121 /// Configure from CDB object, checking if AliHLTESDTrackCuts or TObjString
122 int ConfigureFromCDBObject(TString cdbPath);
124 /// inherited from AliHLTComponent, scan one argument and
126 int ScanConfigurationArgument(int argc, const char** argv);
129 /// copy constructor prohibited
130 AliHLTTriggerBarrelMultiplicity (const AliHLTTriggerBarrelMultiplicity&);
132 /// assignment operator prohibited
133 AliHLTTriggerBarrelMultiplicity& operator=(const AliHLTTriggerBarrelMultiplicity&);
135 /// inherited from AliHLTTrigger: calculate the trigger
136 virtual int DoTrigger();
138 /// ESD track cut object
139 AliHLTESDTrackCuts *fHLTESDTrackCuts; //! transient
141 /// required number of tracks
142 int fMinTracks; //!transient
144 /// Name of the trigger
145 TString fName; //! transient
147 /// the default configuration entry for this component
148 static const char* fgkDefaultOCDBEntry; //!transient
150 ClassDef(AliHLTTriggerBarrelMultiplicity, 0)
152 #endif //ALIHLTTRIGGERBARRELMULTIPLICITY_H