ROOT
master
Reference Guide
Loading...
Searching...
No Matches
fitpanel6.cxx
Go to the documentation of this file.
1
/// \file
2
/// \ingroup tutorial_exp
3
///
4
/// \macro_code
5
///
6
/// \date 2019-04-11
7
/// \warning This is part of the experimental API, which might change in the future. Feedback is welcome!
8
/// \authors Sergey Linev <S.Linev@gsi.de>, Iliana Betsou <Iliana.Betsou@cern.ch>
9
10
/*************************************************************************
11
* Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
12
* All rights reserved. *
13
* *
14
* For the licensing terms see $ROOTSYS/LICENSE. *
15
* For the list of contributors see $ROOTSYS/README/CREDITS. *
16
*************************************************************************/
17
18
#include <
ROOT/RFitPanel.hxx
>
19
#include "
TH1.h
"
20
#include "
TFile.h
"
21
22
void
fitpanel6
()
23
{
24
TFile::Open
(
"hsimple.root"
);
25
if
(
gFile
) {
26
gFile
->Get(
"hpx"
);
27
gFile
->Get(
"hpxpy"
);
28
gFile
->Get(
"hprof"
);
29
}
30
31
// create panel
32
auto
panel
= std::make_shared<ROOT::Experimental::RFitPanel>(
"FitPanel"
);
33
34
TH1F
*
test
=
new
TH1F
(
"test"
,
"This is test histogram"
,100,-4,4);
35
test
->FillRandom(
"gaus"
, 10000);
36
37
panel
->AssignHistogram(
test
);
38
39
panel
->Show();
40
41
panel
->ClearOnClose(
panel
);
42
}
43
RFitPanel.hxx
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
TFile.h
gFile
#define gFile
Definition
TFile.h:347
TH1.h
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TFile::Open
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
Definition
TFile.cxx:4088
TH1F
1-D histogram with a float per channel (see TH1 documentation)
Definition
TH1.h:645
tutorials
experimental
fitpanel6.cxx
ROOT master - Reference Guide Generated on Fri Jan 24 2025 04:37:19 (GVA Time) using Doxygen 1.10.0