Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
f64e7a75
Commit
f64e7a75
authored
7 years ago
by
Danilo Piparo
Browse files
Options
Downloads
Patches
Plain Diff
Formatting
parent
e5b4630c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tree/treeplayer/src/TDFHistoModels.cxx
+5
-8
5 additions, 8 deletions
tree/treeplayer/src/TDFHistoModels.cxx
tutorials/dataframe/tdf003_profiles.C
+4
-4
4 additions, 4 deletions
tutorials/dataframe/tdf003_profiles.C
with
9 additions
and
12 deletions
tree/treeplayer/src/TDFHistoModels.cxx
+
5
−
8
View file @
f64e7a75
...
...
@@ -91,8 +91,7 @@ TH3DModel::~TH3DModel()
TProfile1DModel
::
TProfile1DModel
(
const
::
TProfile
&
h
)
:
fName
(
h
.
GetName
()),
fTitle
(
h
.
GetTitle
()),
fNbinsX
(
h
.
GetNbinsX
()),
fXLow
(
h
.
GetXaxis
()
->
GetXmin
()),
fXUp
(
h
.
GetXaxis
()
->
GetXmax
()),
fYLow
(
h
.
GetYmin
()),
fYUp
(
h
.
GetYmax
()),
fOption
(
h
.
GetErrorOption
())
fXUp
(
h
.
GetXaxis
()
->
GetXmax
()),
fYLow
(
h
.
GetYmin
()),
fYUp
(
h
.
GetYmax
()),
fOption
(
h
.
GetErrorOption
())
{
}
TProfile1DModel
::
TProfile1DModel
(
const
char
*
name
,
const
char
*
title
,
int
nbinsx
,
double
xlow
,
double
xup
,
...
...
@@ -101,10 +100,9 @@ TProfile1DModel::TProfile1DModel(const char *name, const char *title, int nbinsx
{
}
TProfile1DModel
::
TProfile1DModel
(
const
char
*
name
,
const
char
*
title
,
int
nbinsx
,
double
xlow
,
double
xup
,
double
ylow
,
double
yup
,
const
char
*
option
)
:
fName
(
name
),
fTitle
(
title
),
fNbinsX
(
nbinsx
),
fXLow
(
xlow
),
fXUp
(
xup
),
fYLow
(
ylow
),
fYUp
(
yup
),
fOption
(
option
)
TProfile1DModel
::
TProfile1DModel
(
const
char
*
name
,
const
char
*
title
,
int
nbinsx
,
double
xlow
,
double
xup
,
double
ylow
,
double
yup
,
const
char
*
option
)
:
fName
(
name
),
fTitle
(
title
),
fNbinsX
(
nbinsx
),
fXLow
(
xlow
),
fXUp
(
xup
),
fYLow
(
ylow
),
fYUp
(
yup
),
fOption
(
option
)
{
}
...
...
@@ -115,8 +113,7 @@ TProfile1DModel::~TProfile1DModel()
TProfile2DModel
::
TProfile2DModel
(
const
::
TProfile2D
&
h
)
:
fName
(
h
.
GetName
()),
fTitle
(
h
.
GetTitle
()),
fNbinsX
(
h
.
GetNbinsX
()),
fXLow
(
h
.
GetXaxis
()
->
GetXmin
()),
fXUp
(
h
.
GetXaxis
()
->
GetXmax
()),
fNbinsY
(
h
.
GetNbinsY
()),
fYLow
(
h
.
GetYaxis
()
->
GetXmin
()),
fYUp
(
h
.
GetYaxis
()
->
GetXmax
()),
fZLow
(
h
.
GetZmin
()),
fZUp
(
h
.
GetZmax
()),
fOption
(
h
.
GetErrorOption
())
fYUp
(
h
.
GetYaxis
()
->
GetXmax
()),
fZLow
(
h
.
GetZmin
()),
fZUp
(
h
.
GetZmax
()),
fOption
(
h
.
GetErrorOption
())
{
}
TProfile2DModel
::
TProfile2DModel
(
const
char
*
name
,
const
char
*
title
,
int
nbinsx
,
double
xlow
,
double
xup
,
int
nbinsy
,
...
...
This diff is collapsed.
Click to expand it.
tutorials/dataframe/tdf003_profiles.C
+
4
−
4
View file @
f64e7a75
...
...
@@ -15,10 +15,10 @@
void
fill_tree
(
const
char
*
treeName
,
const
char
*
fileName
)
{
ROOT
::
Experimental
::
TDataFrame
d
(
25000
);
d
.
Define
(
"px"
,
[]()
{
return
gRandom
->
Gaus
();})
.
Define
(
"py"
,
[]()
{
return
gRandom
->
Gaus
();})
.
Define
(
"pz"
,
[](
double
px
,
double
py
)
{
return
sqrt
(
px
*
px
+
py
*
py
);},
{
"px"
,
"py"
})
.
Snapshot
(
treeName
,
fileName
);
d
.
Define
(
"px"
,
[]()
{
return
gRandom
->
Gaus
();
})
.
Define
(
"py"
,
[]()
{
return
gRandom
->
Gaus
();
})
.
Define
(
"pz"
,
[](
double
px
,
double
py
)
{
return
sqrt
(
px
*
px
+
py
*
py
);
},
{
"px"
,
"py"
})
.
Snapshot
(
treeName
,
fileName
);
}
void
tdf003_profiles
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment