Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Show more breadcrumbs
np
nptool
Commits
51ec1519
Commit
51ec1519
authored
9 years ago
by
de Séréville Nicolas
Browse files
Options
Downloads
Patches
Plain Diff
+ Update README file
parent
c6922545
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Benchmarks/cats/README.txt
+2
-4
2 additions, 4 deletions
Benchmarks/cats/README.txt
Benchmarks/cats/ShowResult.C
+38
-0
38 additions, 0 deletions
Benchmarks/cats/ShowResult.C
Benchmarks/cats/ShowResult.cxx
+0
-30
0 additions, 30 deletions
Benchmarks/cats/ShowResult.cxx
with
40 additions
and
34 deletions
Benchmarks/cats/README.txt
+
2
−
4
View file @
51ec1519
1. Type the following command line to execute the benchmark:
1. Type the following command line to execute the benchmark:
npanalysis -D benchmark_cats.detector -R RunToTreat.txt -
C calibration.txt
npanalysis -D benchmark_cats.detector
-C calibration.txt
-R RunToTreat.txt -
O benchmark_cats
2. To see the results of the analysis
, launch root and execute the macro ShowResult.C
2. To see the results of the analysis
and a comparison with a reference, do:
.x ShowResult.C
.x ShowResult.C
3. You can compare the results of the benchmark with the reference figure ResultBenchmark.png
This diff is collapsed.
Click to expand it.
Benchmarks/cats/ShowResult.C
0 → 100644
+
38
−
0
View file @
51ec1519
TChain
*
chain
=
NULL
;
////////////////////////////////////////////////////////////////////////////////
void
ShowResult
()
{
// load chain from resul
LoadChain
();
// draw canvas
TCanvas
*
c1
=
new
TCanvas
(
"Mask CATS E644 experiment"
,
"Mask CATS E644 experiment"
,
1200
,
600
);
c1
->
Divide
(
2
,
1
);
c1
->
Draw
();
// draw results from benchmark
c1
->
cd
(
1
);
chain
->
Draw
(
"PositionY[0]:PositionX[0]>>h(600,-30,30,600,-30,30)"
,
""
,
"colz"
);
TLatex
*
texO
=
new
TLatex
(
-
17
.
5
,
22
,
"Obtained"
);
texO
->
Draw
();
// draw results from reference result
c1
->
cd
(
2
);
TFile
*
ref
=
new
TFile
(
"reference.root"
,
"READ"
);
TH2
*
href
=
(
TH2
*
)
ref
->
FindObjectAny
(
"href"
);
href
->
Draw
(
"colz"
);
TLatex
*
texR
=
new
TLatex
(
-
17
.
5
,
22
,
"Reference"
);
texR
->
Draw
();
}
////////////////////////////////////////////////////////////////////////////////
void
LoadChain
()
{
chain
=
new
TChain
(
"PhysicsTree"
);
chain
->
Add
(
"../../Outputs/Analysis/benchmark_cats.root"
);
}
This diff is collapsed.
Click to expand it.
Benchmarks/cats/ShowResult.cxx
deleted
100644 → 0
+
0
−
30
View file @
c6922545
TChain
*
chain
=
NULL
;
TCanvas
*
c1
=
NULL
;
void
LoadChain
();
void
ShowResult
()
{
LoadChain
();
c1
=
new
TCanvas
(
"Mask CATS E644 experiment"
,
"Mask CATS E644 experiment"
,
1200
,
600
);
c1
->
Divide
(
2
,
1
);
c1
->
cd
(
1
);
// Y versus X for CATS1 detector
chain
->
Draw
(
"PositionY[0]:PositionX[0]>>h(600,-30,30,600,-30,30)"
,
""
,
"colz"
);
TLatex
*
texO
=
new
TLatex
(
-
17.5
,
22
,
"Obtained"
);
texO
->
Draw
();
c1
->
cd
(
2
);
TFile
*
ref
=
new
TFile
(
"reference.root"
,
"READ"
);
TH2
*
href
=
(
TH2
*
)
ref
->
FindObjectAny
(
"href"
);
href
->
Draw
(
"colz"
);
TLatex
*
texR
=
new
TLatex
(
-
17.5
,
22
,
"Reference"
);
texR
->
Draw
();
}
////////////////////////////////////////////////////////////////////////////////
void
LoadChain
(){
chain
=
new
TChain
(
"PhysicsTree"
);
chain
->
Add
(
"../../Outputs/Analysis/benchmark_cats.root"
);
}
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