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
00e290f4
Commit
00e290f4
authored
Jan 06, 2021
by
Whitney Armstrong
Browse files
Fix for source linker
modified: TrackerSourcesLinker.cpp
parent
ca1268b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
JugReco/src/components/TrackerSourcesLinker.cpp
View file @
00e290f4
...
...
@@ -39,7 +39,8 @@ namespace Jug::Reco {
DataHandle
<
HitCol
>
m_OTrackerBarrelHits
{
"OTrackerBarrelHits"
,
Gaudi
::
DataHandle
::
Reader
,
this
};
DataHandle
<
HitCol
>
m_OTrackerEndcapHits
{
"OTrackerEndcapHits"
,
Gaudi
::
DataHandle
::
Reader
,
this
};
Gaudi
::
Property
<
std
::
vector
<
std
::
string
>>
m_trackerHitCollections
{
this
,
"trackerHitCollections"
};
std
::
vector
<
DataHandle
<
HitCol
>*>
m_trackerHitCollections
;
//Gaudi::Property<std::vector<std::string>> m_trackerHitCollections{this, "trackerHitCollections"};
DataHandle
<
SourceLinkContainer
>
m_outputSourceLinks
{
"outputSourceLinks"
,
Gaudi
::
DataHandle
::
Writer
,
this
};
/// Pointer to the geometry service
SmartIF
<
IGeoSvc
>
m_geoSvc
;
...
...
@@ -55,11 +56,18 @@ namespace Jug::Reco {
declareProperty
(
"OTrackerBarrelHits"
,
m_OTrackerBarrelHits
,
""
);
declareProperty
(
"OTrackerEndcapHits"
,
m_OTrackerEndcapHits
,
""
);
declareProperty
(
"outputSourceLinks"
,
m_outputSourceLinks
,
""
);
}
StatusCode
initialize
()
override
{
if
(
GaudiAlgorithm
::
initialize
().
isFailure
())
return
StatusCode
::
FAILURE
;
m_trackerHitCollections
.
push_back
(
&
m_ITrackerBarrelHits
);
m_trackerHitCollections
.
push_back
(
&
m_ITrackerEndcapHits
);
m_trackerHitCollections
.
push_back
(
&
m_OTrackerBarrelHits
);
m_trackerHitCollections
.
push_back
(
&
m_OTrackerEndcapHits
);
m_geoSvc
=
service
(
"GeoSvc"
);
if
(
!
m_geoSvc
)
{
error
()
<<
"Unable to locate Geometry Service. "
...
...
@@ -92,10 +100,10 @@ namespace Jug::Reco {
debug
()
<<
" m_trackerHitCollections size : "
<<
m_trackerHitCollections
.
size
()
<<
endmsg
;
for
(
const
auto
&
col
:
m_trackerHitCollections
)
{
for
(
const
auto
col
:
m_trackerHitCollections
)
{
// input collection
//
const eic::TrackerHitCollection* hits =
m_inputHitCollection.
get();
const
eic
::
TrackerHitCollection
*
hits
=
get
<
eic
::
TrackerHitCollection
>
(
"/Event/"
+
col
);
const
eic
::
TrackerHitCollection
*
hits
=
col
->
get
();
//
const eic::TrackerHitCollection* hits = get<eic::TrackerHitCollection>("/Event/"+ col);
debug
()
<<
(
*
hits
).
size
()
<<
" hits "
<<
endmsg
;
for
(
const
auto
&
ahit
:
*
hits
)
{
...
...
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