]>
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 | ||
bc75eeb5 | 22 | /* |
23 | Class used for extracting the signal from an invariant mass spectrum. | |
24 | It implements the AliDielectronSignalBase class and uses the like-sign | |
25 | substraction method for estimating the signal and background. | |
26 | There is no fitting in this class, only bin counting. | |
27 | ||
28 | Example usage: | |
29 | AliDielectronSignalExt *signalProcess = new AliDielectronSignalExt(); | |
30 | TObjArray *histoArray = new TObjArray(); | |
31 | histoArray->Add(signalPP); // the order of putting the histograms in the array is important!! | |
32 | histoArray->Add(signalPM); | |
33 | histoArray->Add(signalMM); | |
34 | signalProcess->SetMethod(AliDielectronSignalBase::kLikeSign); // or kEventMixing | |
35 | signalProcess->SetIntegralRange(3.0,3.15); // J/Psi peak | |
36 | signalProcess->SetRebin(2); // rebin the histograms | |
37 | signalProcess->Process(histoArray); | |
38 | signalProcess->Draw("stat"); | |
39 | signalProcess->Print(); | |
40 | ||
41 | */ | |
42 | ||
572b0139 | 43 | #include <TVectorT.h> |
44 | #include <TString.h> | |
45 | #include <TH1.h> | |
46 | ||
47 | #include "AliDielectronSignalBase.h" | |
48 | ||
49 | class AliDielectronSignalExt : public AliDielectronSignalBase { | |
50 | ||
51 | public: | |
bc75eeb5 | 52 | |
572b0139 | 53 | AliDielectronSignalExt(); |
54 | AliDielectronSignalExt(const char*name, const char* title); | |
55 | ||
56 | virtual ~AliDielectronSignalExt(); | |
57 | ||
58 | virtual void Process(TObjArray* const arrhist); | |
59 | void ProcessLS(TObjArray* const arrhist); // like-sign method | |
60 | void ProcessEM(TObjArray* const arrhist); // event mixing method | |
61 | ||
572b0139 | 62 | virtual void Draw(const Option_t* option = ""); |
63 | ||
572b0139 | 64 | private: |
572b0139 | 65 | |
66 | AliDielectronSignalExt(const AliDielectronSignalExt &c); | |
67 | AliDielectronSignalExt &operator=(const AliDielectronSignalExt &c); | |
68 | ||
bc75eeb5 | 69 | ClassDef(AliDielectronSignalExt,2) // Dielectron SignalFunc |
572b0139 | 70 | }; |
71 | ||
572b0139 | 72 | #endif |