AliPhysics  32e057f (32e057f)
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 
18  TBinning(),
19  fBinEdges()
20 {
21 
22 }
23 
25  TBinning(),
26  fBinEdges()
27 {
28  Set(nbins, binedges);
29 }
30 
32  TBinning(),
33  fBinEdges(binedges)
34 {
35 
36 }
37 
39  if(!fBinEdges.GetSize()){
40  throw LimitsNotSetException();
41  }
42  binedges = fBinEdges;
43 }
44 
46  return new TVariableBinning(*this);
47 }
double Double_t
Definition: External.C:58
virtual TBinning * MakeCopy() const
Interface for binnings used by the histogram handler.
Definition: TBinning.h:21
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.