1 #ifndef ALIHLTTRIGGERBARRELGEOMMULTIPLICITY_H
2 #define ALIHLTTRIGGERBARRELGEOMMULTIPLICITY_H
3 //* This file is property of and copyright by the ALICE HLT Project *
4 //* ALICE Experiment at CERN, All rights reserved. *
5 //* See cxx source for full Copyright notice *
7 /// @file AliHLTTriggerBarrelGeomMultiplicity.h
8 /// @author Oystein Djuvsland
10 /// @brief HLT trigger component for charged particle multiplicity in
11 /// a geometrical selection of the central barrel.
13 #include "AliHLTTrigger.h"
15 class AliHLTTriggerDecisionParameters;
18 * @class AliHLTTriggerBarrelGeomMultiplicity
19 * HLT trigger component for charged particle multiplicity in the
22 * Triggers on charged particle number in a certain geometrical acceptance
24 * <h2>General properties:</h2>
26 * Component ID: \b BarrelGeomMultiplicityTrigger <br>
27 * Library: \b libAliHLTTrigger.so <br>
28 * Input Data Types: kAliHLTDataTypeESDObject, kAliHLTDataTypeESDTree
29 * kAliHLTDataTypeTrack <br>
30 * Output Data Types: ::kAliHLTAnyDataType <br>
32 * <h2>Mandatory arguments:</h2>
33 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
34 * \li -triggername <i> n </i> <br>
35 * specifies which configuration object to use for the trigger
37 * <h2>Optional arguments:</h2>
38 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
39 * \li -geomfile <i> n </i> <br>
40 * specifies root file containing configuration objects
42 * <h2>Configuration:</h2>
43 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
44 * \li -mintracks <i> n </i> <br>
45 * required number of tracks for a trigger
46 * \li -solenoidBz <i> field </i> <br>
47 * magnetic field needed if the input is not an ESD object
49 * By default, configuration is loaded from OCDB, can be overridden by
50 * component arguments.
52 * <h2>Default CDB entries:</h2>
53 * HLT/ConfigHLT/BarrelGeomMultiplicityTrigger/<triggername>: TObjArray storing the
54 * geometries and readout parameters.
55 * HLT/ConfigHLT/Solenoidbz: TObjString -solenoidBz field
57 * <h2>Performance:</h2>
60 * <h2>Memory consumption:</h2>
63 * <h2>Output size:</h2>
66 * \ingroup alihlt_trigger_components
68 class AliHLTTriggerBarrelGeomMultiplicity : public AliHLTTrigger
72 AliHLTTriggerBarrelGeomMultiplicity();
73 ~AliHLTTriggerBarrelGeomMultiplicity();
75 /// inherited from AliHLTComponent: create an instance
76 virtual AliHLTComponent* Spawn();
78 /// inherited from AliHLTTrigger: name of this trigger
79 virtual const char* GetTriggerName() const;
82 /// inherited from AliHLTComponent: handle the initialization
83 int DoInit(int argc, const char** argv);
85 /// inherited from AliHLTComponent: handle cleanup
88 /// inherited from AliHLTComponent: handle dcs update event
89 int ReadPreprocessorValues(const char* modules);
91 /// inherited from AliHLTComponent, scan one argument and
93 virtual int ScanConfigurationArgument(int argc, const char** argv);
95 // Get the detector geometries from CDB entry
96 virtual int GetDetectorGeomsFromCDBObject(const char *cdbEntry, const char *chainId);
98 // Get the detector geometries from a root file
99 virtual int GetDetectorGeomsFromFile(const char *filename);
101 /// inherited from AliHLTComponent: handle re-configuration event
102 int Reconfigure(const char* cdbEntry = 0, const char* chainId = 0);
106 /// inherited from AliHLTTrigger: calculate the trigger
107 virtual int DoTrigger();
109 /// check whether a track meets the criteria
111 bool CheckCondition(T* track, float b);
113 // check whether a track is in the desired detectors
115 bool IsInDetectors(T* track, float b);
117 // magnetic field (dca estimation for)
120 // minimum number of tracks satisfying the cut
123 // array of (sub-)detectors to trigger on
124 TObjArray *fDetectorArray; // !transient
126 // Trigger decision parameters
127 AliHLTTriggerDecisionParameters *fTriggerDecisionPars; //!transient
130 char *fTriggerName; //!transient
132 // the default configuration entry for this component
133 char* fOCDBEntry; //!transient
135 /** Keep the copy constructor private since it should not be used */
136 AliHLTTriggerBarrelGeomMultiplicity(const AliHLTTriggerBarrelGeomMultiplicity & );
138 /** Keep the assignement operator private since it should not be used */
139 AliHLTTriggerBarrelGeomMultiplicity & operator = (const AliHLTTriggerBarrelGeomMultiplicity &);
141 ClassDef(AliHLTTriggerBarrelGeomMultiplicity, 0);