]>
Commit | Line | Data |
---|---|---|
afb6a98f | 1 | #ifndef ALIJETTRIGGERSELECTIONTASK_H |
2 | #define ALIJETTRIGGERSELECTIONTASK_H | |
3 | ||
4 | // $Id$ | |
5 | ||
6 | class AliEmcalJet; | |
7 | ||
9239b066 | 8 | #include "AliAnalysisTaskEmcalJet.h" |
afb6a98f | 9 | |
9239b066 | 10 | class AliJetTriggerSelectionTask : public AliAnalysisTaskEmcalJet { |
afb6a98f | 11 | public: |
12 | ||
13 | AliJetTriggerSelectionTask(); | |
14 | AliJetTriggerSelectionTask(const char *name); | |
15 | virtual ~AliJetTriggerSelectionTask() {;} | |
16 | ||
17 | void SetMaxDistance(Double_t d) { fMaxDistance2 = d*d ; } | |
18 | void SetEnergyThreshold(TF1 *f) { fEnergyThreshold = f ; } | |
19 | void SetTriggerBits(UInt_t d) { fTriggerBits = d ; } | |
20 | ||
21 | protected: | |
22 | Bool_t Run(); | |
23 | void ExecOnce(); | |
24 | Bool_t RetrieveEventObjects(); | |
25 | void FindTriggers(); | |
26 | void SelectJets(); | |
27 | Bool_t IsTriggerJet(AliEmcalJet *jet); | |
28 | ||
29 | TF1 *fEnergyThreshold; // energy threshold vs. centrality | |
30 | Double_t fMaxDistance2; // max distance square between trigger patch and jet | |
31 | UInt_t fTriggerBits; // trigger bit to be set | |
32 | ||
33 | Bool_t fTaskSettingsOk; //!if false, don't execute task | |
34 | Int_t fNTriggers; //!number of triggers in the current event | |
35 | Double_t fTrigPos[999][2]; //!(eta,phi) trigger positions in the current event | |
36 | AliVVZERO *fVZERO; //!Event V0 object | |
37 | Double_t fV0ATotMult; //!Event V0A total multiplicity | |
38 | Double_t fV0CTotMult; //!Event V0C total multiplicity | |
39 | ||
40 | private: | |
41 | AliJetTriggerSelectionTask(const AliJetTriggerSelectionTask&); // not implemented | |
42 | AliJetTriggerSelectionTask &operator=(const AliJetTriggerSelectionTask&); // not implemented | |
43 | ||
44 | ClassDef(AliJetTriggerSelectionTask, 1) // jet trigger selection task | |
45 | }; | |
46 | #endif |