Loading [MathJax]/extensions/tex2jax.js
ROOT
Version v6.22
master
v6.34
v6.32
v6.30
v6.28
v6.26
v6.24
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
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
RDirectory.hxx
TFile.h
gFile
#define gFile
Definition:
TFile.h:342
TH1.h
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:3942
TH1F
1-D histogram with a float per channel (see TH1 documentation)}
Definition:
TH1.h:571
ROOT::Experimental
Definition:
RDirectory.hxx:30
test
Definition:
test.py:1
tutorials
v7
fitpanel6.cxx
ROOT v6-22 - Reference Guide Generated on Fri Apr 1 2022 11:53:33 (GVA Time) using Doxygen 1.9.4