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 **************************************************************************/
17 //---------------------------------------------------------------------
18 // Service class for jet production data
19 // Author: Andreas Morsch
20 // andreas.morsch@cern.ch
21 //---------------------------------------------------------------------
24 #include "AliJetProductionData.h"
27 ClassImp(AliJetProductionData)
30 ////////////////////////////////////////////////////////////////////////
32 AliJetProductionData::AliJetProductionData():
38 // Default constructor
42 ////////////////////////////////////////////////////////////////////////
44 AliJetProductionData::~AliJetProductionData()
52 void AliJetProductionData::GetPtHardLimits(Int_t bin, Float_t& ptmin, Float_t& ptmax)
54 // Get pt_hard limits for given bin
55 if (bin >= 0 && bin < fNbins) {
56 ptmin = fPtHardLimits[bin];
57 ptmax = fPtHardLimits[bin + 1];
59 AliFatal("Bin out of range !");
63 TString AliJetProductionData::GetRunTitle(Int_t bin)
65 // Get run title for given bin
67 if (bin < 0 || bin >= fNbins)
68 AliFatal("Bin out of range !");
70 return fRunTitles[bin];
73 Float_t AliJetProductionData::GetWeight(Int_t bin)
75 // Get weight for given bin
76 if (bin < 0 || bin >= fNbins)
77 AliFatal("Bin out of range !");