]>
Commit | Line | Data |
---|---|---|
7634d323 | 1 | //************************************************************************** |
2 | //* This file is property of and copyright by the ALICE HLT Project * | |
3 | //* ALICE Experiment at CERN, All rights reserved. * | |
4 | //* * | |
5 | //* Primary Authors: leonidas.xaplanteris@gmail.com * | |
6 | //* for The ALICE HLT Project. * | |
7 | //* * | |
8 | //* Permission to use, copy, modify and distribute this software and its * | |
9 | //* documentation strictly for non-commercial purposes is hereby granted * | |
10 | //* without fee, provided that the above copyright notice appears in all * | |
11 | //* copies and that both the copyright notice and this permission notice * | |
12 | //* appear in the supporting documentation. The authors make no claims * | |
13 | //* about the suitability of this software for any purpose. It is * | |
14 | //* provided "as is" without express or implied warranty. * | |
15 | //************************************************************************** | |
16 | ||
17 | #ifndef ALIHLTTRIGGERFASTJET_H | |
18 | #define ALIHLTTRIGGERFASTJET_H | |
19 | ||
917b0861 | 20 | #include "TObjArray.h" |
7634d323 | 21 | #include "AliHLTTrigger.h" |
504b2f85 | 22 | #include "AliESDtrackCuts.h" |
23 | #include "AliHLTScalars.h" | |
7634d323 | 24 | #include "AliFJWrapper.h" |
25 | ||
917b0861 | 26 | class AliHLTCaloClusterReader; |
7634d323 | 27 | class TRefArray; |
28 | class AliESDEvent; | |
29 | class TMap; | |
30 | ||
31 | class AliHLTTriggerFastJet : public AliHLTTrigger | |
32 | { | |
33 | ||
34 | public: | |
917b0861 | 35 | AliHLTTriggerFastJet(); |
7634d323 | 36 | ~AliHLTTriggerFastJet(); |
7eefc52d | 37 | |
38 | /// | |
39 | AliHLTComponent* Spawn(); | |
40 | ||
7634d323 | 41 | // inherited from AliHLTTrigger : name of this trigger |
7eefc52d | 42 | const char* GetTriggerName() const; |
43 | ||
7634d323 | 44 | // inherited from AliHLTComponent : get list of OCDB objects |
45 | void GetOCDBObjectDescription( TMap* const targetMap); | |
46 | ||
47 | protected: | |
48 | // inherited from AliHLTComponent: initialization | |
49 | int DoInit(int argc, const char** argv); | |
50 | ||
51 | // inherited from AliHLTComponent: de-initialization | |
52 | int DoDeInit(); | |
53 | ||
54 | // inherited from AliHLTComponent: re-configuration | |
55 | int Reconfigure(const char* cdbEntry, const char* chainId); | |
56 | ||
57 | // inherited from AliHLTComponent: scan one argument and its parameters | |
58 | int ScanConfigurationArgument(int argc, const char** argv); | |
59 | ||
504b2f85 | 60 | // inherited from AliHLTTrigger: returns the output data types generated from this component |
61 | void GetOutputDataTypes(AliHLTComponentDataTypeList &list) const; | |
62 | ||
63 | // inherited from AliHLTTrigger: Get a ratio by how much the data volume is shrunken or enhanced. | |
7eefc52d | 64 | void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier); |
7634d323 | 65 | |
7634d323 | 66 | // inherited from AliHLTTrigger: calculate the trigger |
67 | Int_t DoTrigger(); | |
68 | ||
504b2f85 | 69 | // gets tpc tracks |
70 | TObjArray *GetTPCTracks(AliESDEvent *fESD); | |
71 | ||
7634d323 | 72 | // check if cluster fullfills criteria and if so trigger |
73 | template <class T> | |
74 | Bool_t TriggerOnJet(T Jet); | |
75 | ||
76 | // threshold jet energy to trigger on | |
77 | Float_t fEThreshold; | |
78 | ||
7eefc52d | 79 | // the detector string (PHOS or EMCAL) |
80 | const TString fDetector; | |
7634d323 | 81 | |
82 | // fast jet wrapper | |
83 | AliFJWrapper *fFastJetWrapper; | |
84 | ||
7634d323 | 85 | // the default configuration entry for this component |
86 | const char* fOCDBEntry; //!transient | |
7eefc52d | 87 | |
917b0861 | 88 | // track cuts to get tpc tracks |
89 | AliESDtrackCuts *EsdTrackCuts; | |
7634d323 | 90 | |
504b2f85 | 91 | // flag to make statistics for histograming using AliHLTScalars |
92 | Bool_t fMakeStats; | |
93 | ||
94 | // AliHLTScalars | |
cdac6043 | 95 | // AliHLTScalars scalars; |
504b2f85 | 96 | |
7eefc52d | 97 | // offset for calo tracks |
917b0861 | 98 | //Int_t fOffset; |
7634d323 | 99 | |
7eefc52d | 100 | private: |
101 | ||
102 | // copy constructor prohibited | |
103 | AliHLTTriggerFastJet(const AliHLTTriggerFastJet & ); | |
104 | ||
105 | // assignment operator prohibited | |
106 | AliHLTTriggerFastJet& operator=(const AliHLTTriggerFastJet &); | |
107 | ||
7634d323 | 108 | ClassDef(AliHLTTriggerFastJet, 0) |
109 | }; | |
110 | ||
111 | #endif //ALIHLTTRIGGERFASTJET_H |