]>
Commit | Line | Data |
---|---|---|
572b0139 | 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 | ||
8df8e382 | 40 | // getters |
41 | TH1F* GetHistogramSignal() const { return fSignal; } | |
42 | TH1F* GetHistogramBackground() const { return fBackground; } | |
43 | ||
44 | // setters | |
572b0139 | 45 | void SetMethod(Int_t method){ fMethod=method; } |
46 | void SetHistograms(TH1F* const unlike, TH1F* const backg, TH1F* const signal); | |
47 | void SetRebin(Int_t rebin) {fRebin = rebin;} | |
48 | void SetDrawRange(Double_t min, Double_t max){fDrawMin=min; fDrawMax=max;} | |
49 | void SetFitRange(Double_t min, Double_t max) {fFitMin=min;fFitMax=max;} | |
50 | ||
51 | Double_t GetFitMin() const { return fFitMin; } | |
52 | Double_t GetFitMax() const { return fFitMax; } | |
53 | void Rebin(Int_t rebin); | |
54 | ||
55 | virtual void Draw(const Option_t* option = ""); | |
56 | ||
57 | ||
58 | private: | |
59 | ||
60 | TH1F *fSignPM; // histogram of unlike sign (plus-minus) | |
61 | TH1F *fSignPP; // histogram of like sign (plus-plus) | |
62 | TH1F *fSignMM; // histogram of like sign (minus-minus) | |
63 | TH1F *fBackground; // histogram of like-sign background | |
64 | TH1F *fSignal; // histogram of subtracted signal | |
65 | ||
66 | Int_t fMethod; // subtraction method. 1(like-sign), 2(event mixing) | |
67 | Int_t fRebin; // number of histogram rebin iteration | |
68 | Int_t fBins; // number of bins in X axis | |
69 | Double_t fDrawMin; // minimum X when drawing | |
70 | Double_t fDrawMax; // maximum X when drawing | |
71 | Double_t fFitMin; // fit range min | |
72 | Double_t fFitMax; // fit range max | |
73 | ||
74 | AliDielectronSignalExt(const AliDielectronSignalExt &c); | |
75 | AliDielectronSignalExt &operator=(const AliDielectronSignalExt &c); | |
76 | ||
77 | ClassDef(AliDielectronSignalExt,1) // Dielectron SignalFunc | |
78 | }; | |
79 | ||
80 | ||
81 | ||
82 | #endif |