Move AliTRDclusterError.h into macro
[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
32AliJetProductionData::AliJetProductionData()
33{
34 // Constructor
35 fNbins = 0;
36 fPtHardLimits = 0x0;
37 fRunTitles = 0x0;
38}
39
40////////////////////////////////////////////////////////////////////////
41
42AliJetProductionData::~AliJetProductionData()
43{
44 // Destructor
45 delete fPtHardLimits;
46 delete fRunTitles;
47
48}
49
50void AliJetProductionData::GetPtHardLimits(Int_t bin, Float_t& ptmin, Float_t& ptmax)
51{
52// Get pt_hard limits for given bin
53 if (bin >= 0 && bin < fNbins) {
54 ptmin = fPtHardLimits[bin];
55 ptmax = fPtHardLimits[bin + 1];
56 } else {
57 AliFatal("Bin out of range !");
58 }
59}
60
61TString AliJetProductionData::GetRunTitle(Int_t bin)
62{
63 // Get run title for given bin
64
65 if (bin < 0 || bin >= fNbins)
66 AliFatal("Bin out of range !");
67
68 return fRunTitles[bin];
69}
70
71Float_t AliJetProductionData::GetWeight(Int_t bin)
72{
73 // Get weight for given bin
74 if (bin < 0 || bin >= fNbins)
75 AliFatal("Bin out of range !");
76 return fWeights[bin];
77}