Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Project Juggler
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
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
EIC
Project Juggler
Merge requests
!11
The source project of this merge request has been removed.
Use local positions for clustering, and convert to global position in reconstruction
Merged
Use local positions for clustering, and convert to global position in reconstruction
(removed):master
into
master
Overview
0
Commits
5
Pipelines
0
Changes
6
Merged
Chao Peng
requested to merge
(removed):master
into
master
4 years ago
Overview
0
Pipelines
0
Changes
6
Expand
Wait to adapt the update of eicd
Edited
4 years ago
by
Chao Peng
0
0
Merge request reports
Compare
master
version 3
9a0dd1eb
4 years ago
version 2
4a98181e
4 years ago
version 1
1a24a7e7
4 years ago
master (base)
and
latest version
latest version
a803b500
5 commits,
4 years ago
version 3
9a0dd1eb
4 commits,
4 years ago
version 2
4a98181e
2 commits,
4 years ago
version 1
1a24a7e7
1 commit,
4 years ago
6 files
+
107
−
76
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
JugDigi/src/components/CrystalEndcapsDigi.cpp
+
8
−
7
Options
@@ -16,14 +16,14 @@
namespace
Jug
{
namespace
Digi
{
/** Crystal Endcaps Calorimeter detector digitization.
*
*
*/
class
CrystalEndcapsDigi
:
public
GaudiAlgorithm
{
public:
Gaudi
::
Property
<
double
>
m_energyResolution
{
this
,
"energyResolution"
,
0.02
};
// 2%sqrt(E)
Rndm
::
Numbers
m_gaussDist
;
DataHandle
<
dd4pod
::
CalorimeterHitCollection
>
m_inputHitCollection
{
"inputHitCollection"
,
Gaudi
::
DataHandle
::
Reader
,
this
};
@@ -51,11 +51,12 @@ namespace Jug {
// Create output collections
auto
rawhits
=
m_outputHitCollection
.
createAndPut
();
eic
::
RawCalorimeterHitCollection
*
rawHitCollection
=
new
eic
::
RawCalorimeterHitCollection
();
for
(
const
auto
&
ahit
:
*
simhits
){
eic
::
RawCalorimeterHit
rawhit
((
long
long
)
ahit
.
cellID
(),
(
long
long
)
ahit
.
cellID
(),
(
long
long
)(
ahit
.
energyDeposit
()
+
m_gaussDist
*
sqrt
(
ahit
.
energyDeposit
()))
/
Gaudi
::
Units
::
MeV
*
100.0
,
(
double
)
ahit
.
truth
().
time
);
rawhits
->
push_back
(
rawhit
);
for
(
const
auto
&
ahit
:
*
simhits
)
{
eic
::
RawCalorimeterHit
rawhit
(
(
long
long
)
ahit
.
cellID
(),
(
long
long
)
(
ahit
.
energyDeposit
()
+
m_gaussDist
*
sqrt
(
ahit
.
energyDeposit
()))
/
Gaudi
::
Units
::
MeV
*
100.0
,
(
double
)
ahit
.
truth
().
time
/
Gaudi
::
Units
::
ns
);
rawhits
->
push_back
(
rawhit
);
}
return
StatusCode
::
SUCCESS
;
}
Loading