]>
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" | |
02cd8d63 | 24 | //#include "AliFJWrapper.h" |
7634d323 | 25 | |
917b0861 | 26 | class AliHLTCaloClusterReader; |
7634d323 | 27 | class TRefArray; |
28 | class AliESDEvent; | |
29 | class TMap; | |
02cd8d63 | 30 | class AliFJWrapper; |
7634d323 | 31 | |
32 | class AliHLTTriggerFastJet : public AliHLTTrigger | |
33 | { | |
34 | ||
35 | public: | |
917b0861 | 36 | AliHLTTriggerFastJet(); |
7634d323 | 37 | ~AliHLTTriggerFastJet(); |
7eefc52d | 38 | |
39 | /// | |
40 | AliHLTComponent* Spawn(); | |
41 | ||
7634d323 | 42 | // inherited from AliHLTTrigger : name of this trigger |
7eefc52d | 43 | const char* GetTriggerName() const; |
44 | ||
7634d323 | 45 | // inherited from AliHLTComponent : get list of OCDB objects |
46 | void GetOCDBObjectDescription( TMap* const targetMap); | |
47 | ||
48 | protected: | |
49 | // inherited from AliHLTComponent: initialization | |
50 | int DoInit(int argc, const char** argv); | |
51 | ||
52 | // inherited from AliHLTComponent: de-initialization | |
53 | int DoDeInit(); | |
54 | ||
55 | // inherited from AliHLTComponent: re-configuration | |
56 | int Reconfigure(const char* cdbEntry, const char* chainId); | |
57 | ||
58 | // inherited from AliHLTComponent: scan one argument and its parameters | |
59 | int ScanConfigurationArgument(int argc, const char** argv); | |
60 | ||
504b2f85 | 61 | // inherited from AliHLTTrigger: returns the output data types generated from this component |
62 | void GetOutputDataTypes(AliHLTComponentDataTypeList &list) const; | |
63 | ||
64 | // inherited from AliHLTTrigger: Get a ratio by how much the data volume is shrunken or enhanced. | |
7eefc52d | 65 | void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier); |
7634d323 | 66 | |
7634d323 | 67 | // inherited from AliHLTTrigger: calculate the trigger |
68 | Int_t DoTrigger(); | |
69 | ||
504b2f85 | 70 | // gets tpc tracks |
71 | TObjArray *GetTPCTracks(AliESDEvent *fESD); | |
72 | ||
7634d323 | 73 | // check if cluster fullfills criteria and if so trigger |
74 | template <class T> | |
75 | Bool_t TriggerOnJet(T Jet); | |
76 | ||
77 | // threshold jet energy to trigger on | |
78 | Float_t fEThreshold; | |
79 | ||
7eefc52d | 80 | // the detector string (PHOS or EMCAL) |
81 | const TString fDetector; | |
7634d323 | 82 | |
83 | // fast jet wrapper | |
84 | AliFJWrapper *fFastJetWrapper; | |
85 | ||
7634d323 | 86 | // the default configuration entry for this component |
87 | const char* fOCDBEntry; //!transient | |
7eefc52d | 88 | |
917b0861 | 89 | // track cuts to get tpc tracks |
90 | AliESDtrackCuts *EsdTrackCuts; | |
7634d323 | 91 | |
504b2f85 | 92 | // flag to make statistics for histograming using AliHLTScalars |
93 | Bool_t fMakeStats; | |
94 | ||
95 | // AliHLTScalars | |
cdac6043 | 96 | // AliHLTScalars scalars; |
504b2f85 | 97 | |
7eefc52d | 98 | // offset for calo tracks |
917b0861 | 99 | //Int_t fOffset; |
7634d323 | 100 | |
7eefc52d | 101 | private: |
102 | ||
103 | // copy constructor prohibited | |
104 | AliHLTTriggerFastJet(const AliHLTTriggerFastJet & ); | |
105 | ||
106 | // assignment operator prohibited | |
107 | AliHLTTriggerFastJet& operator=(const AliHLTTriggerFastJet &); | |
108 | ||
7634d323 | 109 | ClassDef(AliHLTTriggerFastJet, 0) |
110 | }; | |
111 | ||
112 | #endif //ALIHLTTRIGGERFASTJET_H |