]>
Commit | Line | Data |
---|---|---|
be94a07d | 1 | #ifndef ALIEMCALPHYSICSSELECTIONTASK_H |
2 | #define ALIEMCALPHYSICSSELECTIONTASK_H | |
3 | ||
4 | // $Id$ | |
5 | ||
6 | #include "AliPhysicsSelectionTask.h" | |
7 | ||
8 | class AliPhysicsSelection; | |
9 | class TH1; | |
10 | ||
11 | class AliEmcalPhysicsSelectionTask : public AliPhysicsSelectionTask { | |
12 | public: | |
13 | AliEmcalPhysicsSelectionTask(); | |
14 | AliEmcalPhysicsSelectionTask(const char* opt); | |
15 | virtual ~AliEmcalPhysicsSelectionTask() {}; | |
16 | ||
17 | virtual void UserExec(const Option_t *opt); | |
18 | virtual void UserCreateOutputObjects(); | |
19 | virtual void Terminate(Option_t*); | |
20 | ||
21 | void SetDoWriteHistos(Bool_t b) { fDoWriteHistos = b; } | |
22 | Int_t GetNCalled() const { return fNCalled; } | |
23 | Int_t GetNAccepted() const { return fNAccepted; } | |
24 | ||
25 | protected: | |
26 | Bool_t fDoWriteHistos; //=true then write output | |
27 | Int_t fNCalled; //!how often was the PS called | |
28 | Int_t fNAccepted; //!how often was the event accepted | |
29 | TH1 *fHAcc; //!acceptance histo | |
30 | ||
31 | private: | |
32 | AliEmcalPhysicsSelectionTask(const AliEmcalPhysicsSelectionTask&); | |
33 | AliEmcalPhysicsSelectionTask& operator=(const AliEmcalPhysicsSelectionTask&); | |
34 | ||
35 | ClassDef(AliEmcalPhysicsSelectionTask, 1); // Emcal physics selection task | |
36 | }; | |
37 | #endif |