Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
physics_benchmarks
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
Container 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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
physics_benchmarks
Commits
472d19f6
Commit
472d19f6
authored
Jan 24, 2023
by
Zhoudunming Tu
Browse files
Options
Downloads
Patches
Plain Diff
try new files
parent
f93c8735
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/diffractive_vm/analysis/diffractive_vm_simple_analysis.cxx
+23
-8
23 additions, 8 deletions
...iffractive_vm/analysis/diffractive_vm_simple_analysis.cxx
with
23 additions
and
8 deletions
benchmarks/diffractive_vm/analysis/diffractive_vm_simple_analysis.cxx
+
23
−
8
View file @
472d19f6
...
...
@@ -19,9 +19,24 @@ auto giveme_t_method_L(TLorentzVector eIn,
}
int
diffractive_vm_simple_analysis
(
const
std
::
string
&
config_name
)
int
diffractive_vm_simple_analysis
(
const
std
::
string
&
config_name
,
const
int
vm_type
=
1
)
{
double
mass_daug
=
0.
;
double
mass_vm
=
0.
;
if
(
vm_type
==
1
){
cout
<<
"we are analyzing phi meson"
<<
endl
;
mass_daug
=
MASS_KAON
;
mass_vm
=
1.019461
;
}
else
if
(
vm_type
==
2
){
cout
<<
"we are analyzing phi meson"
<<
endl
;
mass_daug
=
MASS_ELECTRON
;
mass_vm
=
3.096916
;
}
else
{
cout
<<
"wrong VM species"
<<
endl
;
return
0
;}
// read our configuration
std
::
ifstream
config_file
{
config_name
};
nlohmann
::
json
config
;
...
...
@@ -142,9 +157,9 @@ while (tree_reader.Next()) {
scatMC
.
SetVectM
(
mctrk
,
mc_mass_array
[
imc
]);
}
if
(
mc_pdg_array
[
imc
]
==
321
&&
mc_genStatus_array
[
imc
]
==
1
)
kplusMC
.
SetVectM
(
mctrk
,
MASS_KAON
);
&&
mc_genStatus_array
[
imc
]
==
1
)
kplusMC
.
SetVectM
(
mctrk
,
mass_daug
);
if
(
mc_pdg_array
[
imc
]
==-
321
&&
mc_genStatus_array
[
imc
]
==
1
)
kminusMC
.
SetVectM
(
mctrk
,
MASS_KAON
);
&&
mc_genStatus_array
[
imc
]
==
1
)
kminusMC
.
SetVectM
(
mctrk
,
mass_daug
);
}
vmMC
=
kplusMC
+
kminusMC
;
...
...
@@ -281,8 +296,8 @@ while (tree_reader.Next()) {
//selecting phi->kk daughters;
h_eta
->
Fill
(
trk
.
Eta
());
if
(
fabs
(
trk
.
Eta
())
<
3.0
){
if
(
reco_charge_array
[
itrk
]
>
0
)
kplusREC
.
SetVectM
(
trk
,
MASS_KAON
);
if
(
reco_charge_array
[
itrk
]
<
0
)
kminusREC
.
SetVectM
(
trk
,
MASS_KAON
);
if
(
reco_charge_array
[
itrk
]
>
0
)
kplusREC
.
SetVectM
(
trk
,
mass_daug
);
if
(
reco_charge_array
[
itrk
]
<
0
)
kminusREC
.
SetVectM
(
trk
,
mass_daug
);
}
}
}
...
...
@@ -332,12 +347,12 @@ while (tree_reader.Next()) {
//VM rec
if
(
vmREC
.
E
()
==
0
)
continue
;
double
phi
_mass
=
vmREC
.
M
();
h_VM_mass_REC
->
Fill
(
phi
_mass
);
double
vm
_mass
=
vmREC
.
M
();
h_VM_mass_REC
->
Fill
(
vm
_mass
);
h_VM_pt_REC
->
Fill
(
vmREC
.
Pt
());
//select phi mass and rapidity window
if
(
fabs
(
phi
_mass
-
1.02
)
<
0.02
if
(
fabs
(
vm
_mass
-
1.02
)
<
0.02
&&
fabs
(
vmREC
.
Rapidity
())
<
3.5
){
//2 versions: track and energy cluster:
double
t_trk_REC
=
giveme_t_method_L
(
ebeam
,
scatMCmatchREC
,
pbeam
,
vmREC
);
...
...
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