AliPhysics
fceccc5 (fceccc5)
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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
TVariableBinning::TVariableBinning
():
18
TBinning
(),
19
fBinEdges()
20
{
21
22
}
23
24
TVariableBinning::TVariableBinning
(
Int_t
nbins
,
const
Double_t
*binedges):
25
TBinning
(),
26
fBinEdges()
27
{
28
Set
(nbins, binedges);
29
}
30
31
TVariableBinning::TVariableBinning
(
const
TArrayD
&binedges):
32
TBinning
(),
33
fBinEdges(binedges)
34
{
35
36
}
37
38
void
TVariableBinning::CreateBinEdges
(
TArrayD
&binedges)
const
{
39
if
(!
fBinEdges
.GetSize()){
40
throw
LimitsNotSetException
();
41
}
42
binedges =
fBinEdges
;
43
}
44
45
TBinning
*
TVariableBinning::MakeCopy
()
const
{
46
return
new
TVariableBinning
(*
this
);
47
}
TArrayD
Definition:
External.C:132
Double_t
double Double_t
Definition:
External.C:58
TVariableBinning::MakeCopy
virtual TBinning * MakeCopy() const
Definition:
TVariableBinning.cxx:45
TVariableBinning::fBinEdges
TArrayD fBinEdges
Definition:
TVariableBinning.h:142
TBinning
Interface for binnings used by the histogram handler.
Definition:
TBinning.h:21
Int_t
int Int_t
Definition:
External.C:63
TVariableBinning::CreateBinEdges
virtual void CreateBinEdges(TArrayD &binedges) const
Definition:
TVariableBinning.cxx:38
nbins
const Int_t nbins
Definition:
AverageDmesonRaa.C:63
TVariableBinning.h
TVariableBinning::TVariableBinning
TVariableBinning()
Definition:
TVariableBinning.cxx:17
TVariableBinning::Set
void Set(Int_t nbins, const Double_t *binedges)
Definition:
TVariableBinning.h:145
TVariableBinning::LimitsNotSetException
Exception indicating that the limits are not set.
Definition:
TVariableBinning.h:72
PWG
Tools
TVariableBinning.cxx
Generated on Tue Apr 25 2017 16:51:17 for AliPhysics by
1.8.6