]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/trigger/AliHLTTriggerBarrelMultiplicity.h
updated component documentation
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTTriggerBarrelMultiplicity.h
CommitLineData
cafc1a86 1//-*- Mode: C++ -*-
2// $Id$
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 *
8
9/// @file AliHLTTriggerBarrelMultiplicity.h
10/// @author Matthias Richter
11/// @date 2009-06-30
12/// @brief HLT trigger component for charged particle multiplicity in
13/// the central barrel.
14
15#include "AliHLTTrigger.h"
16
f1574126 17class AliESDtrack;
18
cafc1a86 19/**
20 * @class AliHLTTriggerBarrelMultiplicity
21 * HLT trigger component for charged particle multiplicity in the
22 * central barrel.
23 *
24 * Triggers on charged particle number in a certain pt range.
895f3660 25 *
26 * <h2>General properties:</h2>
27 *
28 * Component ID: \b BarrelMultiplicityTrigger <br>
29 * Library: \b libAliHLTTrigger.so <br>
30 * Input Data Types: kAliHLTDataTypeESDObject, kAliHLTDataTypeESDTree
31 * kAliHLTDataTypeTrack <br>
32 * Output Data Types: ::kAliHLTAnyDataType <br>
33 *
34 * <h2>Mandatory arguments:</h2>
35 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
36 *
37 * <h2>Optional arguments:</h2>
38 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
39 *
40 * <h2>Configuration:</h2>
41 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
42 * \li -mintracks <i> n </i> <br>
43 * required number of tracks for a trigger
44 * \li -minpt <i> pt </i> <br>
45 * required minimum pt for a trigger
46 * \li -maxpt <i> pt </i> <br>
47 * required maximum pt for a trigger
48 *
49 * By default, configuration is loaded from OCDB, can be overridden by
50 * component arguments.
51 *
52 * <h2>Default CDB entries:</h2>
53 * HLT/ConfigHLT/BarrelMultiplicityTrigger: TObjString storing the arguments
54 *
55 * <h2>Performance:</h2>
56 *
57 *
58 * <h2>Memory consumption:</h2>
59 *
60 *
61 * <h2>Output size:</h2>
62 *
63 *
64 * \ingroup alihlt_trigger_components
cafc1a86 65 */
66class AliHLTTriggerBarrelMultiplicity : public AliHLTTrigger
67{
68 public:
69 AliHLTTriggerBarrelMultiplicity();
70 ~AliHLTTriggerBarrelMultiplicity();
71
72 /// inherited from AliHLTTrigger: name of this trigger
73 virtual const char* GetTriggerName() const;
74 /// inherited from AliHLTComponent: create an instance
75 virtual AliHLTComponent* Spawn();
76
f1574126 77 protected:
78 /// inherited from AliHLTComponent: handle the initialization
79 int DoInit(int argc, const char** argv);
80
81 /// inherited from AliHLTComponent: handle cleanup
82 int DoDeinit();
83
84 /// inherited from AliHLTComponent: handle re-configuration event
85 int Reconfigure(const char* cdbEntry, const char* chainId);
86
87 /// inherited from AliHLTComponent, scan one argument and
88 /// its parameters
89 int ScanConfigurationArgument(int argc, const char** argv);
90
cafc1a86 91 private:
92 /// inherited from AliHLTTrigger: calculate the trigger
93 virtual int DoTrigger();
94
f1574126 95 /// check whether a track meets the criteria
96 template<class T>
97 bool CheckCondition(T* track);
98
cafc1a86 99 /// pt cut, minimum
100 float fPtMin; //! transient
101 /// pt cut, maximum
102 float fPtMax; //! transient
103 /// required number of tracks
f1574126 104 int fMinTracks; //!transient
105
106 /// the default configuration entry for this component
107 static const char* fgkOCDBEntry; //!transient
cafc1a86 108
109 ClassDef(AliHLTTriggerBarrelMultiplicity, 0)
110};
111#endif //ALIHLTTRIGGERBARRELMULTIPLICITY_H