1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 //_________________________________________________________________________
17 // Class containing histogram settings:
19 // - Min and max of range
21 //-- Author: Gustavo Conesa (LPSC-Grenoble)
26 #include "AliHistogramRanges.h"
28 ClassImp(AliHistogramRanges)
31 //_______________________________________________
32 AliHistogramRanges::AliHistogramRanges() :
34 fHistoPtBins(0), fHistoPtMax(0.), fHistoPtMin(0.),
35 fHistoPhiBins(0), fHistoPhiMax(0.), fHistoPhiMin(0.),
36 fHistoEtaBins(0), fHistoEtaMax(0.), fHistoEtaMin(0.),
37 fHistoDeltaPhiBins(0), fHistoDeltaPhiMax(0.), fHistoDeltaPhiMin(0.),
38 fHistoDeltaEtaBins(0), fHistoDeltaEtaMax(0.), fHistoDeltaEtaMin(0.),
39 fHistoMassBins(0), fHistoMassMax(0.), fHistoMassMin(0.),
40 fHistoAsymBins(0), fHistoAsymMax(0.), fHistoAsymMin(0.),
41 fHistoV0SBins(0), fHistoV0SMax(0), fHistoV0SMin(0),
42 fHistoV0MBins(0), fHistoV0MMax(0), fHistoV0MMin(0),
43 fHistoTrMBins(0), fHistoTrMMax(0), fHistoTrMMin(0),
44 fHistoFinePtBins(1000), fHistoFinePtMax(5.), fHistoFinePtMin(0.),
45 fHistoPOverEBins(100), fHistoPOverEMax(100.), fHistoPOverEMin(0.),
46 fHistodEdxBins(100), fHistodEdxMax(100.), fHistodEdxMin(0.),
47 fHistodRBins(100), fHistodRMax(100.), fHistodRMin(0.),
48 fHistoTimeBins(100), fHistoTimeMax(100.), fHistoTimeMin(0.),
49 fHistoNClusCellBins(100), fHistoNClusCellMax(100), fHistoNClusCellMin(0),
50 fHistoNCellsBins(100), fHistoNCellsMax(100), fHistoNCellsMin(0),
51 fHistoNClustersBins(100), fHistoNClustersMax(100), fHistoNClustersMin(0),
52 fHistoRatioBins(100), fHistoRatioMax(100.), fHistoRatioMin(0.),
53 fHistoHBPBins(100), fHistoHBPMax(100.), fHistoHBPMin(0.),
54 fHistoVertexDistBins(100), fHistoVertexDistMax(100.), fHistoVertexDistMin(0.),
55 fHistoRBins(100), fHistoRMax(1000), fHistoRMin(-1000),
56 fHistoXBins(100), fHistoXMax(1000), fHistoXMin(-1000),
57 fHistoYBins(100), fHistoYMax(1000), fHistoYMin(-1000),
58 fHistoZBins(100), fHistoZMax(1000), fHistoZMin(-1000),
59 fHistoSSBins(0), fHistoSSMax(0), fHistoSSMin(0),
60 fHistoDiffTimeBins(0), fHistoDiffTimeMax(0), fHistoDiffTimeMin(0),
61 fHistoTrackResidualEtaBins(0),fHistoTrackResidualEtaMax(0),fHistoTrackResidualEtaMin(0),
62 fHistoTrackResidualPhiBins(0),fHistoTrackResidualPhiMax(0),fHistoTrackResidualPhiMin(0),
63 fHistoNPtSumBins(0), fHistoPtSumMax(0.), fHistoPtSumMin(0.),
64 fHistoNPtInConeBins(0), fHistoPtInConeMax(0.), fHistoPtInConeMin(0.)
68 //Initialize parameters
73 //_______________________________________
74 void AliHistogramRanges::InitParameters()
76 //Initialize histogram parameters
78 fHistoPtBins = 240 ; fHistoPtMax = 120 ; fHistoPtMin = 0. ;
79 fHistoPhiBins = 120 ; fHistoPhiMax = TMath::TwoPi(); fHistoPhiMin = 0. ;
80 fHistoEtaBins = 100 ; fHistoEtaMax = 1 ; fHistoEtaMin = -1 ;
81 fHistoDeltaPhiBins = 310 ; fHistoDeltaPhiMax = 4.8 ; fHistoDeltaPhiMin = -1.7;
82 fHistoDeltaEtaBins = 200 ; fHistoDeltaEtaMax = 2 ; fHistoDeltaEtaMin = -2 ;
83 fHistoMassBins = 200 ; fHistoMassMax = 1. ; fHistoMassMin = 0. ;
84 fHistoAsymBins = 10 ; fHistoAsymMax = 1. ; fHistoAsymMin = 0. ;
85 fHistoV0SBins = 100 ; fHistoV0SMax = 10000 ; fHistoV0SMin = 0 ;
86 fHistoV0MBins = 100; fHistoV0MMax = 10000 ; fHistoV0MMin = 0 ;
87 fHistoTrMBins = 200 ; fHistoTrMMax = 200 ; fHistoTrMMin = 0 ;
88 fHistoPOverEBins = 100 ; fHistoPOverEMax = 10. ; fHistoPOverEMin = 0. ;
89 fHistodEdxBins = 200 ; fHistodEdxMax = 400. ; fHistodEdxMin = 0. ;
90 fHistodRBins = 300 ; fHistodRMax = 3.15 ; fHistodRMin = 0. ;
91 fHistoTimeBins = 200; fHistoTimeMax = 200 ; fHistoTimeMin =-200.;//ns
92 fHistoNClusCellBins = 200 ; fHistoNClusCellMax = 200 ; fHistoNClusCellMin = 0 ;
93 fHistoNCellsBins = 300 ; fHistoNCellsMax = 300 ; fHistoNCellsMin = 0 ;
94 fHistoNClustersBins = 50 ; fHistoNClustersMax = 50 ; fHistoNClustersMin = 0 ;
95 fHistoRatioBins = 200 ; fHistoRatioMax = 2 ; fHistoRatioMin = 0. ;
96 fHistoHBPBins = 200 ; fHistoHBPMax = 10 ; fHistoHBPMin = 0. ;
97 fHistoVertexDistBins = 100 ; fHistoVertexDistMax = 500. ; fHistoVertexDistMin = 0. ;
98 fHistoRBins = 100 ; fHistoRMax = 500 ; fHistoRMin = -500;//cm
99 fHistoXBins = 100 ; fHistoXMax = 500 ; fHistoXMin = -500;//cm
100 fHistoYBins = 100 ; fHistoYMax = 500 ; fHistoYMin = -500;//cm
101 fHistoZBins = 100 ; fHistoZMax = 600 ; fHistoZMin = -500;//cm
102 fHistoSSBins = 500 ; fHistoSSMax = 5 ; fHistoSSMin = 0 ;
103 fHistoDiffTimeBins = 400 ; fHistoDiffTimeMax = 400 ; fHistoDiffTimeMin = -400;// ns
104 fHistoNPtSumBins = 100 ; fHistoPtSumMax = 50 ; fHistoPtSumMin = 0. ;
105 fHistoNPtInConeBins = 100 ; fHistoPtInConeMax = 50 ; fHistoPtInConeMin = 0. ;
107 fHistoTrackResidualEtaBins = 100 ; fHistoTrackResidualEtaMax = 0.15 ; fHistoTrackResidualEtaMin = -0.15;
108 fHistoTrackResidualPhiBins = 100 ; fHistoTrackResidualPhiMax = 0.15 ; fHistoTrackResidualPhiMin = -0.15;
112 //________________________________________________________
113 void AliHistogramRanges::Print(const Option_t * /*opt*/) const
115 //Print some relevant parameters set for the analysis
117 printf("Histograms: %3.1f < pT < %3.1f, Nbin = %d\n" , fHistoPtMin, fHistoPtMax, fHistoPtBins);
118 printf("Histograms: %3.1f < phi < %3.1f, Nbin = %d\n" , fHistoPhiMin, fHistoPhiMax, fHistoPhiBins);
119 printf("Histograms: %3.1f < eta < %3.1f, Nbin = %d\n" , fHistoEtaMin, fHistoEtaMax, fHistoEtaBins);
120 printf("Histograms: %3.1f < delta phi < %3.1f, Nbin = %d\n" , fHistoDeltaPhiMin, fHistoDeltaPhiMax, fHistoDeltaPhiBins);
121 printf("Histograms: %3.1f < delta eta < %3.1f, Nbin = %d\n" , fHistoDeltaEtaMin, fHistoDeltaEtaMax, fHistoDeltaEtaBins);
122 printf("Histograms: %3.1f < mass < %3.1f, Nbin = %d\n" , fHistoMassMin, fHistoMassMax, fHistoMassBins);
123 printf("Histograms: %3.1f < asymmetry < %3.1f, Nbin = %d\n" , fHistoAsymMin, fHistoAsymMax, fHistoAsymBins);
124 printf("Histograms: %d < V0 Signal < %d, Nbin = %d\n" , fHistoV0SMin, fHistoV0SMax, fHistoV0SBins);
125 printf("Histograms: %d < V0 Mult < %d, Nbin = %d\n" , fHistoV0MMin, fHistoV0MMax, fHistoV0MBins);
126 printf("Histograms: %d < Track Mult < %d, Nbin = %d\n" , fHistoTrMMin, fHistoTrMMax, fHistoTrMBins);
127 printf("Histograms: %3.1f < p/E < %3.1f, Nbin = %d\n" , fHistoPOverEMin, fHistoPOverEMax, fHistoPOverEBins);
128 printf("Histograms: %3.1f < dEdx < %3.1f, Nbin = %d\n" , fHistodEdxMin, fHistodEdxMax, fHistodEdxBins);
129 printf("Histograms: %3.1f < dR (track cluster)< %3.1f, Nbin = %d\n", fHistodRMin, fHistodRMax, fHistodRBins);
130 printf("Histograms: %3.1f < R=sqrt{x^2+y^2} < %3.1f, Nbin = %d\n", fHistoRMin, fHistoRMax, fHistoRBins);
131 printf("Histograms: %3.1f < X < %3.1f, Nbin = %d\n" , fHistoXMin, fHistoXMax, fHistoXBins);
132 printf("Histograms: %3.1f < Y < %3.1f, Nbin = %d\n" , fHistoYMin, fHistoYMax, fHistoYBins);
133 printf("Histograms: %3.1f < Z < %3.1f, Nbin = %d\n" , fHistoZMin, fHistoZMax, fHistoZBins);
134 printf("Histograms: %g < Time < %g, Nbin = %d\n" , fHistoTimeMin, fHistoTimeMax, fHistoTimeBins);
135 printf("Histograms: %d < N cells per cluster < %d, Nbin = %d\n" , fHistoNClusCellMin, fHistoNClusCellMax, fHistoNClusCellBins);
136 printf("Histograms: %d < N cells < %d, Nbin = %d\n" , fHistoNCellsMin, fHistoNCellsMax, fHistoNCellsBins);
137 printf("Histograms: %d < N clusters < %d, Nbin = %d\n" , fHistoNClustersMin, fHistoNClustersMax, fHistoNClustersBins);
138 printf("Histograms: %3.1f < Ratio< %3.1f, Nbin = %d\n" , fHistoRatioMin, fHistoRatioMax, fHistoRatioBins);
139 printf("Histograms: %3.1f < HBP< %3.1f, Nbin = %d\n" , fHistoHBPMin, fHistoHBPMax, fHistoHBPBins);
140 printf("Histograms: %3.1f < Vertex Distance < %3.1f, Nbin = %d\n", fHistoVertexDistMin, fHistoVertexDistMax, fHistoVertexDistBins);
141 printf("Histograms: %3.1f < pT sum < %3.1f, Nbin = %d\n" , fHistoPtSumMin, fHistoPtSumMax, fHistoNPtSumBins );
142 printf("Histograms: %3.1f < pT in cone < %3.1f, Nbin = %d\n" , fHistoPtInConeMin, fHistoPtInConeMax, fHistoNPtInConeBins);
143 printf("Histograms: %2.2f < Residual Eta(Z) < %2.2f, Nbin = %d\n", fHistoTrackResidualEtaMin, fHistoTrackResidualEtaMax,fHistoTrackResidualEtaBins);
144 printf("Histograms: %2.2f < Residual Phi(R,X) < %2.2f, Nbin = %d\n", fHistoTrackResidualPhiMin, fHistoTrackResidualPhiMax,fHistoTrackResidualPhiBins);