Service classes for jet production data.
[u/mrichter/AliRoot.git] / JETAN / AliJetProductionDataPDC2004.cxx
CommitLineData
16ca86a9 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16
17//---------------------------------------------------------------------
18// Service class for jet production data
19// Author: Andreas Morsch
20// andreas.morsch@cern.ch
21//---------------------------------------------------------------------
22
23
24#include "AliJetProductionDataPDC2004.h"
25ClassImp(AliJetProductionDataPDC2004)
26
27
28////////////////////////////////////////////////////////////////////////
29
30AliJetProductionDataPDC2004::AliJetProductionDataPDC2004()
31{
32 // Constructor
33 const Float_t kPthard[13] =
34 {20., 24., 29., 35., 42., 50., 60., 72., 86., 104., 125., 150., 180.};
35
36 const TString kRunTitle[12] =
37 {"20-24GeV", "24-29GeV", "29-35GeV", "35-42GeV", "42-50GeV", "50-60GeV", "60-72GeV", "72-86GeV"
38 "86-104GeV", "104-125GeV", "125-150GeV", "150-180GeV"};
39
40 const Float_t kXsection[12] =
41 {1.10e-1, 6.00e-2, 2.00e-2, 1.16e-2, 5.33e-3, 2.68e-3, 1.22e-3, 5.26e-4, 2.53e-4, 1.00e-4, 4.44e-5, 1.84e-5};
42
43 const Float_t kGeneratedOverSelected[12] =
44 {2.67, 2.68, 2.47, 2.5, 2.3, 2.2, 2.1, 2.0, 1.9, 1.90, 1.7, 1.61};
45
46
47 fNbins = 12;
48 fPtHardLimits = new Float_t[fNbins + 1];
49 fRunTitles = new TString[fNbins];
50 fWeights = new Float_t[fNbins];
51 Int_t i;
52
53 for (i = 0; i < fNbins +1; i++) {
54 fPtHardLimits[i] = kPthard[i];
55 }
56
57 for (i = 0; i < fNbins; i++) {
58 fRunTitles[i] = kRunTitle[i];
59 fWeights[i] = kXsection[i] / kGeneratedOverSelected[i];
60 }
61}
62
63////////////////////////////////////////////////////////////////////////
64
65AliJetProductionDataPDC2004::~AliJetProductionDataPDC2004()
66{
67 // Destructor
68}