ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
fitpanel6.cxx
Go to the documentation of this file.
1
/// \file
2
/// \ingroup tutorial_v7
3
///
4
/// \macro_code
5
///
6
/// \date 2019-04-11
7
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
8
/// \author Sergey Linev <S.Linev@gsi.de>
9
/// \author Iliana Betsou <Iliana.Betsou@cern.ch>
10
11
/*************************************************************************
12
* Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
13
* All rights reserved. *
14
* *
15
* For the licensing terms see $ROOTSYS/LICENSE. *
16
* For the list of contributors see $ROOTSYS/README/CREDITS. *
17
*************************************************************************/
18
19
#include <ROOT/RFitPanel.hxx>
20
#include "
ROOT/RDirectory.hxx
"
21
#include "
TH1.h
"
22
#include "
TFile.h
"
23
24
using namespace
ROOT::Experimental;
25
26
void
fitpanel6()
27
{
28
TFile::Open(
"hsimple.root"
);
29
if
(gFile) {
30
gFile->Get(
"hpx"
);
31
gFile->Get(
"hpxpy"
);
32
gFile->Get(
"hprof"
);
33
}
34
35
// create panel
36
auto
panel = std::make_shared<RFitPanel>(
"FitPanel"
);
37
RDirectory::Heap().Add(
"fitpanel"
, panel);
38
39
TH1F *test =
new
TH1F(
"test"
,
"This is test histogram"
,100,-4,4);
40
test->FillRandom(
"gaus"
, 10000);
41
42
panel->AssignHistogram(test);
43
44
panel->Show();
45
}
46
TFile.h
TH1.h
RDirectory.hxx
tutorials
v7
fitpanel6.cxx
Generated on Tue May 5 2020 14:03:52 for ROOT by
1.8.5