1 #ifndef ALIEMCALPHYSICSSELECTIONTASK_H
2 #define ALIEMCALPHYSICSSELECTIONTASK_H
6 #include "AliPhysicsSelectionTask.h"
8 class AliPhysicsSelection;
11 class AliEmcalPhysicsSelectionTask : public AliPhysicsSelectionTask {
13 AliEmcalPhysicsSelectionTask();
14 AliEmcalPhysicsSelectionTask(const char* opt);
15 virtual ~AliEmcalPhysicsSelectionTask() {};
17 virtual void UserExec(const Option_t *opt);
18 virtual void UserCreateOutputObjects();
19 virtual void Terminate(Option_t*);
21 void SetDoWriteHistos(Bool_t b) { fDoWriteHistos = b; }
22 Int_t GetNCalled() const { return fNCalled; }
23 Int_t GetNAccepted() const { return fNAccepted; }
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 TH1 *fHEvtTypes; //!event types histo
33 AliEmcalPhysicsSelectionTask(const AliEmcalPhysicsSelectionTask&);
34 AliEmcalPhysicsSelectionTask& operator=(const AliEmcalPhysicsSelectionTask&);
36 ClassDef(AliEmcalPhysicsSelectionTask, 2); // Emcal physics selection task