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
ea404f06
Commit
ea404f06
authored
Sep 28, 2020
by
Whitney Armstrong
Browse files
Merge branch 'cellid' into 'master'
Fix to use single CellID in data model See merge request
!12
parents
544e9ea5
e07b7ff2
Changes
3
Hide whitespace changes
Inline
Side-by-side
JugDigi/src/components/ExampleCaloDigi.cpp
View file @
ea404f06
...
...
@@ -111,7 +111,7 @@ namespace Jug {
eic
::
RawCalorimeterHitCollection
*
rawHitCollection
=
new
eic
::
RawCalorimeterHitCollection
();
for
(
const
auto
&
ahit
:
*
simhits
)
{
//std::cout << ahit << "\n";
eic
::
RawCalorimeterHit
rawhit
((
long
long
)
ahit
.
cellID
(),
eic
::
RawCalorimeterHit
rawhit
((
long
long
)
ahit
.
cellID
(),
(
long
long
)
ahit
.
energyDeposit
()
*
100
,
0
);
rawhits
->
push_back
(
rawhit
);
}
...
...
JugReco/src/components/TrackerHitReconstruction.cpp
View file @
ea404f06
...
...
@@ -78,7 +78,7 @@ namespace Jug {
//std::array<double,3> posarr; pos.GetCoordinates(posarr);
//std::array<double,3> dimarr; dim.GetCoordinates(posarr);
//eic::TrackerHit hit;
eic
::
TrackerHit
hit
((
long
long
)
ahit
.
cellID
(),
(
long
long
)
ahit
.
cellID
(),
(
long
long
)
ahit
.
time
(),
eic
::
TrackerHit
hit
((
long
long
)
ahit
.
cellID
(),
(
long
long
)
ahit
.
time
(),
(
float
)
ahit
.
charge
()
/
10000.0
,
(
float
)
0.0
,
{{
pos
.
x
(),
pos
.
y
(),
pos
.
z
()}},{{
dim
[
0
],
dim
[
1
],
0.0
}});
rec_hits
->
push_back
(
hit
);
}
...
...
JugReco/src/components/TrackerSourceLinker.cpp
View file @
ea404f06
...
...
@@ -101,8 +101,8 @@ namespace Jug::Reco {
cov
(
Acts
::
eBoundLoc0
,
Acts
::
eBoundLoc0
)
=
ahit
.
covMatrix
(
0
)
*
Acts
::
UnitConstants
::
mm
;
//*ahit.covMatrix(0);
cov
(
Acts
::
eBoundLoc1
,
Acts
::
eBoundLoc1
)
=
ahit
.
covMatrix
(
1
)
*
Acts
::
UnitConstants
::
mm
;
//*ahit.covMatrix(1);
debug
()
<<
"cell ID : "
<<
ahit
.
cellID
0
()
<<
endmsg
;
auto
vol_ctx
=
m_geoSvc
->
cellIDPositionConverter
()
->
findContext
(
ahit
.
cellID
0
());
debug
()
<<
"cell ID : "
<<
ahit
.
cellID
()
<<
endmsg
;
auto
vol_ctx
=
m_geoSvc
->
cellIDPositionConverter
()
->
findContext
(
ahit
.
cellID
());
auto
vol_id
=
vol_ctx
->
identifier
;
debug
()
<<
" vol_id : "
<<
vol_id
<<
endmsg
;
debug
()
<<
" hit : "
<<
ahit
<<
endmsg
;
...
...
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