]>
Commit | Line | Data |
---|---|---|
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 | 17 | class 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. | |
25 | */ | |
26 | class AliHLTTriggerBarrelMultiplicity : public AliHLTTrigger | |
27 | { | |
28 | public: | |
29 | AliHLTTriggerBarrelMultiplicity(); | |
30 | ~AliHLTTriggerBarrelMultiplicity(); | |
31 | ||
32 | /// inherited from AliHLTTrigger: name of this trigger | |
33 | virtual const char* GetTriggerName() const; | |
34 | /// inherited from AliHLTComponent: create an instance | |
35 | virtual AliHLTComponent* Spawn(); | |
36 | ||
f1574126 | 37 | protected: |
38 | /// inherited from AliHLTComponent: handle the initialization | |
39 | int DoInit(int argc, const char** argv); | |
40 | ||
41 | /// inherited from AliHLTComponent: handle cleanup | |
42 | int DoDeinit(); | |
43 | ||
44 | /// inherited from AliHLTComponent: handle re-configuration event | |
45 | int Reconfigure(const char* cdbEntry, const char* chainId); | |
46 | ||
47 | /// inherited from AliHLTComponent, scan one argument and | |
48 | /// its parameters | |
49 | int ScanConfigurationArgument(int argc, const char** argv); | |
50 | ||
cafc1a86 | 51 | private: |
52 | /// inherited from AliHLTTrigger: calculate the trigger | |
53 | virtual int DoTrigger(); | |
54 | ||
f1574126 | 55 | /// check whether a track meets the criteria |
56 | template<class T> | |
57 | bool CheckCondition(T* track); | |
58 | ||
cafc1a86 | 59 | /// pt cut, minimum |
60 | float fPtMin; //! transient | |
61 | /// pt cut, maximum | |
62 | float fPtMax; //! transient | |
63 | /// required number of tracks | |
f1574126 | 64 | int fMinTracks; //!transient |
65 | ||
66 | /// the default configuration entry for this component | |
67 | static const char* fgkOCDBEntry; //!transient | |
cafc1a86 | 68 | |
69 | ClassDef(AliHLTTriggerBarrelMultiplicity, 0) | |
70 | }; | |
71 | #endif //ALIHLTTRIGGERBARRELMULTIPLICITY_H |