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
fdc8245b
Commit
fdc8245b
authored
Oct 02, 2020
by
Jihee Kim
Browse files
Merge branch 'master' into 'master'
z length of the crystal block See merge request
!13
parents
ea404f06
9ef05bb3
Changes
3
Hide whitespace changes
Inline
Side-by-side
JugReco/src/components/ClusterRecoCoG.cpp
View file @
fdc8245b
...
...
@@ -32,6 +32,7 @@ class ClusterRecoCoG : public GaudiAlgorithm
{
public:
Gaudi
::
Property
<
double
>
m_logWeightBase
{
this
,
"logWeightBase"
,
3.6
};
Gaudi
::
Property
<
std
::
string
>
m_moduleDimZName
{
this
,
"moduleDimZName"
,
"CrystalBox_z_length"
};
DataHandle
<
eic
::
ClusterCollection
>
m_clusterCollection
{
"clusterCollection"
,
Gaudi
::
DataHandle
::
Reader
,
this
};
// Pointer to the geometry service
...
...
@@ -110,8 +111,10 @@ private:
// depth
// @TODO, assume on the surface
auto
dim
=
m_geoSvc
->
cellIDPositionConverter
()
->
cellDimensions
(
centerID
);
double
depth
=
-
dim
[
2
]
/
2.
;
// info() << depth << " (" << dim[0] << ", " << dim[1] << ", " << dim[2] << ")" << endmsg;
// 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
()});
...
...
JugReco/src/components/CrystalEndcapsReco.cpp
View file @
fdc8245b
...
...
@@ -79,7 +79,7 @@ public:
id
,
energy
,
time
,
{
gpos
.
x
(),
gpos
.
y
(),
gpos
.
z
()},
{
pos
.
x
(),
pos
.
y
(),
pos
.
z
()},
{
dim
[
0
],
dim
[
1
],
dim
[
2
]
},
{
dim
[
0
],
dim
[
1
],
0.0
},
0
});
}
...
...
JugReco/tests/options/example_crystalendcapsreco.py
View file @
fdc8245b
...
...
@@ -19,7 +19,7 @@ emcalreco = CrystalEndcapsReco(inputHitCollection="RawDigiEcalHits", outputHitCo
minModuleEdep
=
1.0
*
units
.
MeV
)
emcalcluster
=
IslandCluster
(
inputHitCollection
=
"RecoEcalHits"
,
outputClusterCollection
=
"EcalClusters"
,
minClusterCenterEdep
=
30
*
units
.
MeV
,
groupRange
=
2.0
)
clusterreco
=
RecoCoG
(
clusterCollection
=
"EcalClusters"
,
logWeightBase
=
4.2
)
clusterreco
=
RecoCoG
(
clusterCollection
=
"EcalClusters"
,
logWeightBase
=
4.2
,
moduleDimZName
=
"CrystalBox_z_length"
)
out
=
PodioOutput
(
"out"
,
filename
=
"reco_emcal_electrons_npsim.root"
)
...
...
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