]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/EMCALTasks/AliEmcalPhysicsSelectionTask.h
revert mistake
[u/mrichter/AliRoot.git] / PWGGA / EMCALTasks / AliEmcalPhysicsSelectionTask.h
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   TH1           *fHEvtTypes;     //!event types histo
31
32  private:
33   AliEmcalPhysicsSelectionTask(const AliEmcalPhysicsSelectionTask&);
34   AliEmcalPhysicsSelectionTask& operator=(const AliEmcalPhysicsSelectionTask&);
35
36   ClassDef(AliEmcalPhysicsSelectionTask, 2); // Emcal physics selection task
37 };
38 #endif