]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/AliBackgroundSelection.h
bug fix using the v0 time offset
[u/mrichter/AliRoot.git] / PWG0 / AliBackgroundSelection.h
1 #ifndef ALIBACKGROUNDSELECTION_H
2 #define ALIBACKGROUNDSELECTION_H
3  
4
5 // Select events which are not flagged as backgroud
6 // Author Michele Floris
7 // michele.floris@cern.ch
8
9 #include <TNamed.h>
10 #include "AliAnalysisCuts.h"
11 #include "AliLog.h"
12
13 class TList;
14 class TH2F;
15 class TCollection;
16
17 class AliBackgroundSelection : public AliAnalysisCuts
18 {
19 public:
20   AliBackgroundSelection();
21   AliBackgroundSelection(const char* name, const char* title);
22   AliBackgroundSelection(const AliBackgroundSelection& obj);  
23   virtual ~AliBackgroundSelection();
24   virtual Bool_t IsSelected(TObject* obj);
25   virtual Bool_t IsSelected(TList*  ) {AliFatal("Not implemented");return 0;}
26   virtual void   Init();
27   virtual TList * GetOutput() {return fOutputHist;}
28
29   void BookClusterVsTrackletsHisto(const char * trigger_name);
30   TH2F * GetClusterVsTrackletsHisto(const char * trigger_name);
31   TH2F * GetClusterVsTrackletsHistoAccepted(const char * trigger_name);
32   const char *  GetClusterVsTrackletsHistoName(const char * trigger_name);
33   const char *  GetClusterVsTrackletsHistoNameAccepted(const char * trigger_name);
34   Long64_t Merge(TCollection* list);
35   void SetCutParameters(Float_t a,Float_t b) {fACut = a; fBCut =b;}
36   Float_t GetCutParameterA(){return fACut;}
37   Float_t GetCutParameterB(){return fBCut;}
38
39   // TODO: implement cut on global vertex DCA?
40
41 private:
42   TList * fOutputHist; // contains 2 histo Cluster vs Tracklets per trigger type (all and accepted)
43   Float_t fACut; // Cut on y = ax + b in the Cluster Vs Tracklets correlation. This is the "a" parameter of the cut
44   Float_t fBCut; // Cut on y = ax + b in the Cluster Vs Tracklets correlation. This is the "b" parameter of the cut
45     
46   AliBackgroundSelection& operator=(const AliBackgroundSelection&);
47
48   ClassDef(AliBackgroundSelection, 1); 
49 };
50  
51 #endif