AliPhysics  9b6b435 (9b6b435)
TVariableBinning.cxx
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright(c) 1998-2016, 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 #include <TVariableBinning.h>
16 
17 ClassImp(TVariableBinning)
18 
20  TBinning(),
21  fBinEdges()
22 {
23 
24 }
25 
27  TBinning(),
28  fBinEdges()
29 {
30  Set(nbins, binedges);
31 }
32 
34  TBinning(),
35  fBinEdges(binedges)
36 {
37 
38 }
39 
41  if(!fBinEdges.GetSize()){
42  throw LimitsNotSetException();
43  }
44  binedges = fBinEdges;
45 }
46 
48  return new TVariableBinning(*this);
49 }
double Double_t
Definition: External.C:58
Class creating a variable binning, used in the histogram manager.
virtual TBinning * MakeCopy() const
Interface for binnings used by the histogram handler.
Definition: TBinning.h:23
int Int_t
Definition: External.C:63
virtual void CreateBinEdges(TArrayD &binedges) const
const Int_t nbins
void Set(Int_t nbins, const Double_t *binedges)
Exception indicating that the limits are not set.