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
4a2cc574
Commit
4a2cc574
authored
3 years ago
by
Adrien Matta
Browse files
Options
Downloads
Patches
Plain Diff
* Improving CheckMinos macro
parent
6a353f7f
No related branches found
No related tags found
No related merge requests found
Pipeline
#120191
passed
3 years ago
Stage: build-NPLib
Stage: build-NPSimulation
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Projects/S034/macro/CheckMinos.cxx
+11
-3
11 additions, 3 deletions
Projects/S034/macro/CheckMinos.cxx
Projects/S034/macro/CheckMinos.sh
+7
-4
7 additions, 4 deletions
Projects/S034/macro/CheckMinos.sh
with
18 additions
and
7 deletions
Projects/S034/macro/CheckMinos.cxx
+
11
−
3
View file @
4a2cc574
...
@@ -4,17 +4,25 @@ void CheckMinos(){
...
@@ -4,17 +4,25 @@ void CheckMinos(){
auto
tree1
=
(
TTree
*
)
f1
->
FindObjectAny
(
"PhysicsTree"
);
auto
tree1
=
(
TTree
*
)
f1
->
FindObjectAny
(
"PhysicsTree"
);
auto
f2
=
new
TFile
(
"root/analysis/run824CheckMinos.root"
,
"READ"
);
auto
f2
=
new
TFile
(
"root/analysis/run824CheckMinos.root"
,
"READ"
);
auto
tree2
=
(
TTree
*
)
f2
->
FindObjectAny
(
"PhysicsTree"
);
auto
tree2
=
(
TTree
*
)
f2
->
FindObjectAny
(
"PhysicsTree"
);
auto
f3
=
new
TFile
(
"root/analysis/run570CheckMinos.root"
,
"READ"
);
auto
tree3
=
(
TTree
*
)
f3
->
FindObjectAny
(
"PhysicsTree"
);
auto
c
=
new
TCanvas
();
auto
c
=
new
TCanvas
();
c
->
Divide
(
2
,
2
);
c
->
Divide
(
2
,
3
);
c
->
cd
(
1
);
c
->
cd
(
1
);
tree1
->
Draw
(
"Minos.Z_Vertex>>h1(500,-150,250)"
,
"sqrt(X_Vertex*X_Vertex+Y_Vertex*Y_Vertex)<15"
);
tree1
->
Draw
(
"Minos.Z_Vertex>>h1(500,-150,250)"
,
"sqrt(X_Vertex*X_Vertex+Y_Vertex*Y_Vertex)<15"
);
c
->
cd
(
2
);
c
->
cd
(
2
);
tree1
->
Draw
(
"Minos.Delta_Vertex>>h2(100,0,
10)
"
);
tree1
->
Draw
(
"Minos.Delta_Vertex>>h2(100,0,
30)"
,
"Minos.Delta_Vertex>-1000
"
);
c
->
cd
(
3
);
c
->
cd
(
3
);
tree2
->
Draw
(
"Minos.Z_Vertex>>h3(500,-150,250)"
,
"sqrt(X_Vertex*X_Vertex+Y_Vertex*Y_Vertex)<15"
);
tree2
->
Draw
(
"Minos.Z_Vertex>>h3(500,-150,250)"
,
"sqrt(X_Vertex*X_Vertex+Y_Vertex*Y_Vertex)<15"
);
c
->
cd
(
4
);
c
->
cd
(
4
);
tree2
->
Draw
(
"Minos.Delta_Vertex>>h4(100,0,10)"
);
tree2
->
Draw
(
"Minos.Delta_Vertex>>h4(100,0,30)"
,
"Minos.Delta_Vertex>-1000"
);
c
->
cd
(
5
);
tree3
->
Draw
(
"Minos.Z_Vertex>>h5(500,-150,250)"
,
"sqrt(X_Vertex*X_Vertex+Y_Vertex*Y_Vertex)<15"
);
c
->
cd
(
6
);
tree3
->
Draw
(
"Minos.Delta_Vertex>>h6(100,0,30)"
,
"Minos.Delta_Vertex>-1000"
);
...
...
This diff is collapsed.
Click to expand it.
Projects/S034/macro/CheckMinos.sh
+
7
−
4
View file @
4a2cc574
# convert physics run
# convert physics run
ridf2nptool raw/run0582.ridf.gz root/mrdc/run582.root db/s034_list.txt
ridf2nptool
-l
raw/run0582.ridf.gz root/mrdc/run582.root db/s034_list.txt
# convert an empty target run
# convert an empty target run
ridf2nptool raw/run0824.ridf.gz root/mrdc/run824.root db/s034_list.txt
ridf2nptool
-l
raw/run0824.ridf.gz root/mrdc/run824.root db/s034_list.txt
# convert another physics run
ridf2nptool
-l
raw/run0570.ridf.gz root/mrdc/run570.root db/s034_list.txt
# analysis of both run
# analysis of both run
npcompilation
-l
&&
npanalysis
-D
s034.detector
-C
calibration.txt
-T
root/mrdc/run582.root RawTree
-O
run582CheckMinos
-L
100000
npcompilation
-l
&&
npanalysis
-D
s034.detector
-C
calibration.txt
-T
root/mrdc/run582.root RawTree
-O
run582CheckMinos
npcompilation
-l
&&
npanalysis
-D
s034.detector
-C
calibration.txt
-T
root/mrdc/run824.root RawTree
-O
run824CheckMinos
-L
100000
npcompilation
-l
&&
npanalysis
-D
s034.detector
-C
calibration.txt
-T
root/mrdc/run824.root RawTree
-O
run824CheckMinos
npcompilation
-l
&&
npanalysis
-D
s034.detector
-C
calibration.txt
-T
root/mrdc/run570.root RawTree
-O
run570CheckMinos
# Plot the results
# Plot the results
root macro/CheckMinos.cxx
root macro/CheckMinos.cxx
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