Obsolete code removed.
[u/mrichter/AliRoot.git] / JETAN / AliJetProductionData.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 "AliJetProductionData.h"
25#include "AliLog.h"
26
27ClassImp(AliJetProductionData)
28
29
30////////////////////////////////////////////////////////////////////////
31
1b7d5d7e 32AliJetProductionData::AliJetProductionData():
33 fNbins(0),
34 fPtHardLimits(0x0),
35 fWeights(0x0),
36 fRunTitles(0x0)
16ca86a9 37{
1b7d5d7e 38 // Default constructor
39
16ca86a9 40}
41
42////////////////////////////////////////////////////////////////////////
43
44AliJetProductionData::~AliJetProductionData()
45{
46 // Destructor
47 delete fPtHardLimits;
48 delete fRunTitles;
49
50}
51
52void AliJetProductionData::GetPtHardLimits(Int_t bin, Float_t& ptmin, Float_t& ptmax)
53{
54// Get pt_hard limits for given bin
55 if (bin >= 0 && bin < fNbins) {
56 ptmin = fPtHardLimits[bin];
57 ptmax = fPtHardLimits[bin + 1];
58 } else {
59 AliFatal("Bin out of range !");
60 }
61}
62
63TString AliJetProductionData::GetRunTitle(Int_t bin)
64{
65 // Get run title for given bin
66
67 if (bin < 0 || bin >= fNbins)
68 AliFatal("Bin out of range !");
69
70 return fRunTitles[bin];
71}
72
73Float_t AliJetProductionData::GetWeight(Int_t bin)
74{
75 // Get weight for given bin
76 if (bin < 0 || bin >= fNbins)
77 AliFatal("Bin out of range !");
78 return fWeights[bin];
79}