]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliBackgroundSelection.h
moving AliBackgroundSelection to ANALYSISalice (Michele)
[u/mrichter/AliRoot.git] / ANALYSIS / AliBackgroundSelection.h
similarity index 73%
rename from PWG0/AliBackgroundSelection.h
rename to ANALYSIS/AliBackgroundSelection.h
index c4c177e7abafc1526a42cf454750ca87b80c6ace..a92c91a278ad055e2170a8599d689cc768739035 100644 (file)
 
 class TList;
 class TH2F;
+class TH1F;
 class TCollection;
 
 class AliBackgroundSelection : public AliAnalysisCuts
 {
 public:
+  // Inherited methods
   AliBackgroundSelection();
   AliBackgroundSelection(const char* name, const char* title);
   AliBackgroundSelection(const AliBackgroundSelection& obj);  
@@ -26,23 +28,36 @@ public:
   virtual void   Init();
   virtual TList * GetOutput() {return fOutputHist;}
 
+  // Helper Methods
   void BookClusterVsTrackletsHisto(const char * trigger_name);
+  void BookDeltaPhiHisto(const char * trigger_name);
+
   TH2F * GetClusterVsTrackletsHisto(const char * trigger_name);
   TH2F * GetClusterVsTrackletsHistoAccepted(const char * trigger_name);
   const char *  GetClusterVsTrackletsHistoName(const char * trigger_name);
   const char *  GetClusterVsTrackletsHistoNameAccepted(const char * trigger_name);
+
+  TH1F * GetDeltaPhiHisto(const char * trigger_name);
+  TH1F * GetDeltaPhiHistoAccepted(const char * trigger_name);
+  const char *  GetDeltaPhiHistoName(const char * trigger_name);
+  const char *  GetDeltaPhiHistoNameAccepted(const char * trigger_name);
+
   Long64_t Merge(TCollection* list);
+  // Cuts Setters & Getters
   void SetCutParameters(Float_t a,Float_t b) {fACut = a; fBCut =b;}
+  void SetDeltaPhiCut(Float_t cut) { fDeltaPhiCut = cut;}
   Float_t GetCutParameterA(){return fACut;}
   Float_t GetCutParameterB(){return fBCut;}
+  Float_t GetDeltaPhiCut()  {return fDeltaPhiCut;}
 
   // TODO: implement cut on global vertex DCA?
 
 private:
-  TList * fOutputHist; // contains 2 histo Cluster vs Tracklets per trigger type (all and accepted)
+  TList * fOutputHist; // contains 2 histo Cluster vs Tracklets and delta phiper trigger type (all and accepted)
   Float_t fACut; // Cut on y = ax + b in the Cluster Vs Tracklets correlation. This is the "a" parameter of the cut
   Float_t fBCut; // Cut on y = ax + b in the Cluster Vs Tracklets correlation. This is the "b" parameter of the cut
-    
+  Float_t fDeltaPhiCut; // events with vertex from vertexer Z and DeltaPhi>fDeltaPhiCut are rejected
+
   AliBackgroundSelection& operator=(const AliBackgroundSelection&);
 
   ClassDef(AliBackgroundSelection, 1);