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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
Project Juggler
Commits
3cd37b24
Commit
3cd37b24
authored
Oct 3, 2020
by
Jihee Kim
Browse files
Options
Downloads
Patches
Plain Diff
Removed unnecessary line and moved defined z_length into initialize()
parent
fdc8245b
No related branches found
No related tags found
1 merge request
!14
minor fixes
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
JugReco/src/components/ClusterRecoCoG.cpp
+3
-7
3 additions, 7 deletions
JugReco/src/components/ClusterRecoCoG.cpp
with
3 additions
and
7 deletions
JugReco/src/components/ClusterRecoCoG.cpp
+
3
−
7
View file @
3cd37b24
...
...
@@ -56,6 +56,9 @@ public:
<<
"Make sure you have GeoSvc and SimSvc in the right order in the configuration."
<<
endmsg
;
return
StatusCode
::
FAILURE
;
}
// depth: z length of the crystal block
double
depth
=
m_geoSvc
->
detector
()
->
constantAsDouble
(
m_moduleDimZName
);
//info() << "z_length " << depth << endmsg;
return
StatusCode
::
SUCCESS
;
}
...
...
@@ -108,13 +111,6 @@ private:
// convert local position to global position, use the cell with max edep as a reference
auto
volman
=
m_geoSvc
->
detector
()
->
volumeManager
();
auto
alignment
=
volman
.
lookupDetector
(
centerID
).
nominal
();
// depth
// @TODO, assume on the surface
auto
dim
=
m_geoSvc
->
cellIDPositionConverter
()
->
cellDimensions
(
centerID
);
// z length of the crystal block
double
depth
=
m_geoSvc
->
detector
()
->
constantAsDouble
(
m_moduleDimZName
);
//info() << "z_length " << depth << endmsg;
// info() << depth << " (" << dim[0] << ", " << dim[1] << ", " << dim[2] << ")" << endmsg;
auto
gpos
=
alignment
.
localToWorld
(
dd4hep
::
Position
(
x
/
tw
,
y
/
tw
,
z
/
tw
+
depth
));
cl
.
position
({
gpos
.
x
(),
gpos
.
y
(),
gpos
.
z
()});
...
...
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