]>
Commit | Line | Data |
---|---|---|
d03e5de4 | 1 | /************************************************************************** |
2 | * Author: Panos Christakoglou. * | |
3 | * Contributors are mentioned in the code where appropriate. * | |
4 | * * | |
5 | * Permission to use, copy, modify and distribute this software and its * | |
6 | * documentation strictly for non-commercial purposes is hereby granted * | |
7 | * without fee, provided that the above copyright notice appears in all * | |
8 | * copies and that both the copyright notice and this permission notice * | |
9 | * appear in the supporting documentation. The authors make no claims * | |
10 | * about the suitability of this software for any purpose. It is * | |
11 | * provided "as is" without express or implied warranty. * | |
12 | **************************************************************************/ | |
13 | //------------------------------------------------------------------------- | |
14 | // Description: | |
15 | // This class include into LRC library for Long-Range Correlation analysis | |
16 | // it is the PtN class | |
17 | // calculates PtN correlations for abs and rel var | |
18 | // Origin: Petr Naumenko, SPbSU-CERN, Petr.Naoumenko@cern.ch | |
19 | //------------------------------------------------------------------------- | |
20 | ||
21 | /* $Id$ */ | |
22 | ||
23 | //------------------------------------------------------------------------- | |
24 | // LRC library for Long-Range Correlation analysis | |
25 | // | |
26 | // Origin: Petr Naumenko, SPbSU-CERN, Petr.Naoumenko@cern.ch | |
27 | //------------------------------------------------------------------------- | |
28 | ||
29 | #include "AliLRCPtN.h" | |
30 | ||
31 | ClassImp(AliLRCPtN) | |
32 | ||
33 | /****************************************************** | |
34 | * AliLRCPtN class | |
35 | ******************************************************/ | |
36 | ||
37 | ||
38 | ||
39 | AliLRCPtN::AliLRCPtN():AliLRCAnalysis() { | |
40 | //Empty constructor | |
41 | } | |
42 | ||
43 | AliLRCPtN::~AliLRCPtN() { | |
44 | //Destructor | |
45 | } | |
46 | ||
47 | AliLRCPtN::AliLRCPtN(char *name, TH2D* sourceHist, double ptd, TH2D* nb):AliLRCAnalysis() { | |
48 | //Make PtN form 2d histogram | |
49 | SetGraphics(); | |
50 | CreateHist(name, (char*)"PtN_abs", (char*)"PtN_rel", (char*)"n_{F}", (char*)"Pt_{B}", (char*)"#frac{n_{F}}{<n_{F}>}", (char*)"#frac{<Pt_{B}>_{n_{F}}}{<Pt_{B}>}", sourceHist); | |
51 | SetErrors(sourceHist, name, ptd, nb); | |
52 | } | |
53 | ||
54 | AliLRCPtN::AliLRCPtN(char *fileHistname, char *histname, char *profname, double ptd, char *errhistname):AliLRCAnalysis() { | |
55 | //Make PtN form 2d histogram from root file | |
56 | SetGraphics(); | |
57 | fileHist = new TFile(fileHistname); | |
58 | TH2D* sourceHist = (TH2D*) fileHist->Get(histname); | |
59 | TH2D* nb = (TH2D*) fileHist->Get(errhistname); | |
60 | CreateHist(profname, (char*)"PtN_abs", (char*)"PtN_rel", (char*)"n_{F}", (char*)"Pt_{B}", (char*)"#frac{n_{F}}{<n_{F}>}", (char*)"#frac{<Pt_{B}>_{n_{F}}}{<Pt_{B}>}", sourceHist); | |
61 | SetErrors(sourceHist, profname, ptd, nb); | |
62 | ||
63 | } | |
64 | ||
65 | void AliLRCPtN::MakeHistogramm(char *name, TH2D* sourceHist, double ptd, TH2D* nb) { | |
66 | //Make PtN form 2d histogram | |
67 | SetGraphics(); | |
68 | CreateHist(name, (char*)"PtN_abs", (char*)"PtN_rel", (char*)"n_{F}", (char*)"Pt_{B}", (char*)"#frac{n_{F}}{<n_{F}>}", (char*)"#frac{<Pt_{B}>_{n_{F}}}{<Pt_{B}>}", sourceHist); | |
69 | SetErrors(sourceHist, name, ptd, nb); | |
70 | } | |
71 | ||
72 | void AliLRCPtN::MakeHistogramm(char *fileHistname, char *histname, char *profname, double ptd, char *errhistname) { | |
73 | //Make PtN form 2d histogram from root file | |
74 | SetGraphics(); | |
75 | fileHist = new TFile(fileHistname); | |
76 | TH2D* sourceHist = (TH2D*) fileHist->Get(histname); | |
77 | TH2D* nb = (TH2D*) fileHist->Get(errhistname); | |
78 | CreateHist(profname, (char*)"PtN_abs", (char*)"PtN_rel", (char*)"n_{F}", (char*)"Pt_{B}", (char*)"#frac{n_{F}}{<n_{F}>}", (char*)"#frac{<Pt_{B}>_{n_{F}}}{<Pt_{B}>}", sourceHist); | |
79 | SetErrors(sourceHist, profname, ptd, nb); | |
80 | } |