Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EIC
Project Juggler
Commits
85cad72c
Commit
85cad72c
authored
Oct 02, 2020
by
Jihee Kim
Browse files
Defined depthCorr
parent
3cd37b24
Changes
1
Show whitespace changes
Inline
Side-by-side
JugReco/src/components/ClusterRecoCoG.cpp
View file @
85cad72c
...
...
@@ -37,6 +37,7 @@ public:
m_clusterCollection
{
"clusterCollection"
,
Gaudi
::
DataHandle
::
Reader
,
this
};
// Pointer to the geometry service
SmartIF
<
IGeoSvc
>
m_geoSvc
;
double
m_depthCorr
;
// ill-formed: using GaudiAlgorithm::GaudiAlgorithm;
ClusterRecoCoG
(
const
std
::
string
&
name
,
ISvcLocator
*
svcLoc
)
...
...
@@ -57,7 +58,7 @@ public:
return
StatusCode
::
FAILURE
;
}
// depth: z length of the crystal block
double
depth
=
m_geoSvc
->
detector
()
->
constantAsDouble
(
m_moduleDimZName
);
m_
depth
Corr
=
m_geoSvc
->
detector
()
->
constantAsDouble
(
m_moduleDimZName
);
//info() << "z_length " << depth << endmsg;
return
StatusCode
::
SUCCESS
;
}
...
...
@@ -111,7 +112,7 @@ 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
();
auto
gpos
=
alignment
.
localToWorld
(
dd4hep
::
Position
(
x
/
tw
,
y
/
tw
,
z
/
tw
+
depth
));
auto
gpos
=
alignment
.
localToWorld
(
dd4hep
::
Position
(
x
/
tw
,
y
/
tw
,
z
/
tw
+
m_
depth
Corr
));
cl
.
position
({
gpos
.
x
(),
gpos
.
y
(),
gpos
.
z
()});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment