]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG3/dielectron/AliDielectronSignalExt.h
Updates and additions: Classes for signal and spectrum extraction; saving of
[u/mrichter/AliRoot.git] / PWG3 / dielectron / AliDielectronSignalExt.h
1 #ifndef ALIDIELECTRONSIGNALEXT_H
2 #define ALIDIELECTRONSIGNALEXT_H
3
4 /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 //#############################################################
8 //#                                                           # 
9 //#           Class AliDielectronSignalExt                    #
10 //#                                                           #
11 //#  Authors:                                                 #
12 //#   Anton     Andronic, GSI / A.Andronic@gsi.de             #
13 //#   Ionut C.  Arsene,   GSI / I.C.Arsene@gsi.de             #
14 //#   Julian    Book,     Uni Ffm / Julian.Book@cern.ch       #
15 //#   Frederick Kramer,   Uni Ffm, / Frederick.Kramer@cern.ch #
16 //#   Magnus    Mager,    CERN / Magnus.Mager@cern.ch         #
17 //#   WooJin J. Park,     GSI / W.J.Park@gsi.de               #
18 //#   Jens      Wiechula, Uni HD / Jens.Wiechula@cern.ch      #
19 //#                                                           #
20 //#############################################################
21
22 #include <TVectorT.h>
23 #include <TString.h>
24 #include <TH1.h>
25
26 #include "AliDielectronSignalBase.h"
27
28 class AliDielectronSignalExt : public AliDielectronSignalBase {
29
30 public:
31   AliDielectronSignalExt();
32   AliDielectronSignalExt(const char*name, const char* title);
33
34   virtual ~AliDielectronSignalExt();
35
36   virtual void Process(TObjArray* const arrhist);
37   void ProcessLS(TObjArray* const arrhist);  // like-sign method
38   void ProcessEM(TObjArray* const arrhist);  // event mixing method
39   
40   void SetMethod(Int_t method){ fMethod=method; }
41   void SetHistograms(TH1F* const unlike, TH1F* const backg, TH1F* const signal);
42   void SetRebin(Int_t rebin) {fRebin = rebin;}
43   void SetDrawRange(Double_t min, Double_t max){fDrawMin=min; fDrawMax=max;}
44   void SetFitRange(Double_t min, Double_t max) {fFitMin=min;fFitMax=max;}
45
46   Double_t GetFitMin()      const { return fFitMin; }
47   Double_t GetFitMax()      const { return fFitMax; }
48   void Rebin(Int_t rebin);
49   
50   virtual void Draw(const Option_t* option = "");
51
52
53 private:
54   
55   TH1F *fSignPM;              // histogram of unlike sign (plus-minus)
56   TH1F *fSignPP;              // histogram of like sign (plus-plus)
57   TH1F *fSignMM;              // histogram of like sign (minus-minus)
58   TH1F *fBackground;          // histogram of like-sign background
59   TH1F *fSignal;              // histogram of subtracted signal
60   
61   Int_t    fMethod;           // subtraction method. 1(like-sign), 2(event mixing)
62   Int_t    fRebin;            // number of histogram rebin iteration
63   Int_t    fBins;             // number of bins in X axis
64   Double_t fDrawMin;          // minimum X when drawing 
65   Double_t fDrawMax;          // maximum X when drawing
66   Double_t fFitMin;           // fit range min
67   Double_t fFitMax;           // fit range max
68
69   AliDielectronSignalExt(const AliDielectronSignalExt &c);
70   AliDielectronSignalExt &operator=(const AliDielectronSignalExt &c);
71
72   ClassDef(AliDielectronSignalExt,1)         // Dielectron SignalFunc
73 };
74
75
76
77 #endif