96 Warning(
"MakeScale",
"called with bmax>1.0 - calling MakeAbsoluteScale for absolute impact parameters");
114 Int_t last_bin = nbins;
118 Double_t delta_bin = 1.*(last_bin - first_bin) / (npoints - 1.);
120 for (
int i = 0; i < npoints; i++) {
121 bin = first_bin + i * delta_bin;
248 Error(
"GetIPDistribution",
"Call MakeScale first to calculate correspondance observable<->i.p.");
280 Error(
"GetIPEvolution",
"Call MakeScale first to calculate correspondance observable<->i.p.");
314 Error(
"GetXSecDistribution",
"Call MakeScale first to calculate correspondance observable<->i.p.");
346 Error(
"GetXSecEvolution",
"Call MakeScale first to calculate correspondance observable<->i.p.");
407 std::vector<Double_t> slices(nslices - 1);
408 for (
int i = 0; i < nslices - 1; ++i) {
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
double pow(double, double)
TGraph * ScaleGraph(TGraph *hh, TF1 *fx, TF1 *fy)
TGraphErrors * GetMomentEvolution(TH2 *hh, TString momentx, TString momenty, TString axis="Y", Double_t stat_min=0)
TH1 * ScaleHisto(TH1 *hh, TF1 *fx, TF1 *fy=NULL, Int_t nx=-1, Int_t ny=-1, Double_t xmin=-1., Double_t xmax=-1., Double_t ymin=-1., Double_t ymax=-1., Option_t *norm="")
TH1 * CumulatedHisto(TH1 *hh, TString direction="C", Int_t bmin=-1, Int_t bmax=-1, Option_t *norm="surf")
Impact parameter analysis tools.
TH1 * fData
histogram containing distribution of ip-related observable
static Double_t GetXSecFromIP(Double_t bmax)
Double_t XTransform(Double_t *, Double_t *)
Double_t BTransform(Double_t *, Double_t *)
TString fEvol
how the observable evolves with b
Double_t Smax
maximum of cross-section scale
std::vector< Double_t > SliceXSec(Int_t nslices, Double_t totXsec)
TF1 * fObsTransformXSec
function for transforming observable into cross-section
TGraph * GetIPEvolution(TH2 *obscor, TString moment, TString axis="Y")
TF1 * fObsTransform
function for transforming observable into impact parameter
void make_scale(Int_t npoints)
void MakeAbsoluteScale(Int_t npoints=100, Double_t bmax=1.0)
TH1 * GetIPDistribution(TH1 *obs, Int_t nbinx=100, Option_t *norm="")
Double_t Bmax
maximum of ip scale
TGraph * fIPScale
derived relation between observable and impact-parameter
Double_t GetObservableXSec(Double_t sigma)
TGraph * fXSecScale
derived relation between observable and cross-section
TGraph * GetXSecEvolution(TH2 *obscor, TString moment, TString axis="Y")
void MakeScale(Int_t npoints=100, Double_t bmax=1.0)
TH1 * GetXSecDistribution(TH1 *obs, Int_t nbinx=100, Option_t *norm="")
virtual ~KVImpactParameter()
Destructor.
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
virtual Double_t Eval(Double_t x, TSpline *spline=nullptr, Option_t *option="") const
virtual Double_t GetBinCenter(Int_t bin) const
virtual Int_t GetNbinsX() const
virtual Double_t GetBinContent(Int_t bin) const
virtual void Warning(const char *method, const char *msgfmt,...) const
virtual void Error(const char *method, const char *msgfmt,...) const
const char * Data() const
VecExpr< UnaryOp< Sqrt< T >, SVector< T, D >, T >, T, D > sqrt(const SVector< T, D > &rhs)
Double_t Min(Double_t a, Double_t b)