Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reconstruction_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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
reconstruction_benchmarks
Commits
7d42e28b
Commit
7d42e28b
authored
1 year ago
by
Chandradoy Chatterjee
Browse files
Options
Downloads
Patches
Plain Diff
Fixed refractive index for dRICH residuals
parent
d7a005a2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/rich/src/CherenkovPIDAnalysis.cc
+23
-3
23 additions, 3 deletions
benchmarks/rich/src/CherenkovPIDAnalysis.cc
with
23 additions
and
3 deletions
benchmarks/rich/src/CherenkovPIDAnalysis.cc
+
23
−
3
View file @
7d42e28b
...
@@ -231,7 +231,10 @@ namespace benchmarks {
...
@@ -231,7 +231,10 @@ namespace benchmarks {
// calculate expected Cherenkov angle `theta_exp` and residual `theta_resid`,
// calculate expected Cherenkov angle `theta_exp` and residual `theta_resid`,
// using refractive index from MC truth
// using refractive index from MC truth
auto
mc_rindex
=
cherenkov_pid
.
getRefractiveIndex
();
// average refractive index for photons used in this `cherenkov_pid`
float
mc_rindex
=
0
;
if
(
m_rad_name
==
"Aerogel"
)
mc_rindex
=
1.019
;
else
if
(
m_rad_name
==
"Gas"
)
mc_rindex
=
1.00076
;
else
mc_rindex
=
cherenkov_pid
.
getRefractiveIndex
();
// average
auto
theta_exp
=
TMath
::
ACos
(
auto
theta_exp
=
TMath
::
ACos
(
TMath
::
Hypot
(
charged_particle_momentum
,
charged_particle_mass
)
/
TMath
::
Hypot
(
charged_particle_momentum
,
charged_particle_mass
)
/
(
mc_rindex
*
charged_particle_momentum
)
(
mc_rindex
*
charged_particle_momentum
)
...
@@ -239,6 +242,20 @@ namespace benchmarks {
...
@@ -239,6 +242,20 @@ namespace benchmarks {
auto
theta_resid
=
theta_rec
-
theta_exp
;
auto
theta_resid
=
theta_rec
-
theta_exp
;
auto
theta_resid_mrad
=
theta_resid
*
1e3
;
// [rad] -> [mrad]
auto
theta_resid_mrad
=
theta_resid
*
1e3
;
// [rad] -> [mrad]
for
(
const
auto
&
[
theta
,
phi
]
:
cherenkov_pid
.
getThetaPhiPhotons
()){
m_photonTheta_vs_photonPhi
->
Fill
(
phi
,
theta
*
1e3
);
m_speTheta_dist
->
Fill
(
theta
*
1e3
);
m_speResid_dist
->
Fill
((
theta
-
theta_exp
)
*
1e3
);
m_spetheta_vs_p
->
Fill
(
charged_particle_momentum
,
theta
*
1e3
);
m_spethetaResid_vs_p
->
Fill
(
charged_particle_momentum
,(
theta
-
theta_exp
)
*
1e3
);
m_spetheta_vs_eta
->
Fill
(
charged_particle_eta
,
theta
*
1e3
);
m_spethetaResid_vs_eta
->
Fill
(
charged_particle_eta
,(
theta
-
theta_exp
)
*
1e3
);
m_speTheta_vs_mcWavelength
->
Fill
(
Tools
::
HC
/
cherenkov_pid
.
getPhotonEnergy
(),
theta
*
1e3
);
m_speResid_vs_mcWavelength
->
Fill
(
Tools
::
HC
/
cherenkov_pid
.
getPhotonEnergy
(),(
theta
-
theta_exp
)
*
1e3
);
}
// [rad] -> [mrad]
m_speTheta_dist
->
Fit
(
"gaus"
);
// fill PID histograms
// fill PID histograms
m_npe_dist
->
Fill
(
cherenkov_pid
.
getNpe
());
m_npe_dist
->
Fill
(
cherenkov_pid
.
getNpe
());
m_npe_vs_p
->
Fill
(
charged_particle_momentum
,
cherenkov_pid
.
getNpe
());
m_npe_vs_p
->
Fill
(
charged_particle_momentum
,
cherenkov_pid
.
getNpe
());
...
@@ -249,6 +266,7 @@ namespace benchmarks {
...
@@ -249,6 +266,7 @@ namespace benchmarks {
m_thetaResid_dist
->
Fill
(
theta_resid_mrad
);
m_thetaResid_dist
->
Fill
(
theta_resid_mrad
);
m_thetaResid_vs_p
->
Fill
(
charged_particle_momentum
,
theta_resid_mrad
);
m_thetaResid_vs_p
->
Fill
(
charged_particle_momentum
,
theta_resid_mrad
);
m_thetaResid_vs_eta
->
Fill
(
charged_particle_eta
,
theta_resid_mrad
);
m_thetaResid_vs_eta
->
Fill
(
charged_particle_eta
,
theta_resid_mrad
);
/*
for(const auto& [theta,phi] : cherenkov_pid.getThetaPhiPhotons()){
for(const auto& [theta,phi] : cherenkov_pid.getThetaPhiPhotons()){
m_photonTheta_vs_photonPhi->Fill( phi, theta*1e3);
m_photonTheta_vs_photonPhi->Fill( phi, theta*1e3);
m_speTheta_dist->Fill(theta*1e3);
m_speTheta_dist->Fill(theta*1e3);
...
@@ -257,9 +275,11 @@ namespace benchmarks {
...
@@ -257,9 +275,11 @@ namespace benchmarks {
m_spethetaResid_vs_p->Fill(charged_particle_momentum,(theta-theta_exp)*1e3);
m_spethetaResid_vs_p->Fill(charged_particle_momentum,(theta-theta_exp)*1e3);
m_spetheta_vs_eta->Fill(charged_particle_eta,theta*1e3);
m_spetheta_vs_eta->Fill(charged_particle_eta,theta*1e3);
m_spethetaResid_vs_eta->Fill(charged_particle_eta,(theta-theta_exp)*1e3);
m_spethetaResid_vs_eta->Fill(charged_particle_eta,(theta-theta_exp)*1e3);
m_speTheta_vs_mcWavelength
->
Fill
(
Tools
::
HC
/
cherenkov_pid
.
getPhotonEnergy
(),
theta
*
1e3
);
m_speTheta_vs_mcWavelength->Fill(Tools::HC/ cherenkov_pid.getPhotonEnergy(),theta*1e3 );
m_speResid_vs_mcWavelength
->
Fill
(
Tools
::
HC
/
cherenkov_pid
.
getPhotonEnergy
(),(
theta
-
theta_exp
)
*
1e3
);
m_speResid_vs_mcWavelength->Fill(Tools::HC/ cherenkov_pid.getPhotonEnergy(),(theta-theta_exp)*1e3 );
} // [rad] -> [mrad]
} // [rad] -> [mrad]
*/
m_mcWavelength_dist
->
Fill
(
Tools
::
HC
/
cherenkov_pid
.
getPhotonEnergy
()
);
// energy [GeV] -> wavelength [nm]
m_mcWavelength_dist
->
Fill
(
Tools
::
HC
/
cherenkov_pid
.
getPhotonEnergy
()
);
// energy [GeV] -> wavelength [nm]
m_mcRindex_dist
->
Fill
(
mc_rindex
);
m_mcRindex_dist
->
Fill
(
mc_rindex
);
// find the PDG hypothesis with the highest weight
// find the PDG hypothesis with the highest weight
...
...
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