]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/trigger/AliHLTTriggerBarrelMultiplicity.h
Adding kAliHLTDataTypeTrack as valid input. Conversion of the input data to
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTTriggerBarrelMultiplicity.h
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
17 class AliESDtrack;
18
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
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
51  private:
52   /// inherited from AliHLTTrigger: calculate the trigger
53   virtual int DoTrigger();
54
55   /// check whether a track meets the criteria
56   template<class T>
57   bool CheckCondition(T* track);
58
59   /// pt cut, minimum
60   float fPtMin; //! transient
61   /// pt cut, maximum
62   float fPtMax; //! transient
63   /// required number of tracks
64   int fMinTracks; //!transient
65
66   /// the default configuration entry for this component
67   static const char* fgkOCDBEntry; //!transient
68
69   ClassDef(AliHLTTriggerBarrelMultiplicity, 0)
70 };
71 #endif //ALIHLTTRIGGERBARRELMULTIPLICITY_H