|
29 | 29 | #include <podio/Frame.h>
|
30 | 30 | #include <edm4hep/SimTrackerHit.h>
|
31 | 31 | #include <edm4hep/MCParticleCollection.h>
|
32 |
| -#include <edm4hep/TrackerHitCollection.h> |
33 | 32 | #include <edm4hep/EventHeaderCollection.h>
|
34 | 33 | #include <edm4hep/CalorimeterHitCollection.h>
|
35 | 34 | #include <edm4hep/CaloHitContributionCollection.h>
|
@@ -64,7 +63,7 @@ namespace dd4hep {
|
64 | 63 | /// MC particle collection
|
65 | 64 | particlecollection_t m_particles { };
|
66 | 65 | /// Collection of all edm4hep tracker object collections
|
67 |
| - std::map<std::string, std::unique_ptr<edm4hep::TrackerHitCollection> > m_tracker_collections; |
| 66 | + std::map<std::string, std::unique_ptr<edm4hep::TrackerHit3DCollection> > m_tracker_collections; |
68 | 67 | /// Collection of all edm4hep calorimeter object collections
|
69 | 68 | std::map<std::string, std::unique_ptr<edm4hep::CalorimeterHitCollection> > m_calo_collections;
|
70 | 69 | /// Output section name
|
@@ -122,7 +121,7 @@ namespace dd4hep {
|
122 | 121 | m_particles = std::make_pair(nam, std::make_unique<edm4hep::MCParticleCollection>());
|
123 | 122 | }
|
124 | 123 | else if ( typ == "TrackerHits" ) {
|
125 |
| - m_tracker_collections.emplace(nam, std::make_unique<edm4hep::TrackerHitCollection>()); |
| 124 | + m_tracker_collections.emplace(nam, std::make_unique<edm4hep::TrackerHit3DCollection>()); |
126 | 125 | }
|
127 | 126 | else if ( typ == "CalorimeterHits" ) {
|
128 | 127 | m_calo_collections.emplace(nam, std::make_unique<edm4hep::CalorimeterHitCollection>());
|
@@ -286,7 +285,7 @@ namespace dd4hep {
|
286 | 285 | template <typename T> void
|
287 | 286 | DigiEdm4hepOutputProcessor::convert_depos(const T& cont,
|
288 | 287 | const predicate_t& predicate,
|
289 |
| - edm4hep::TrackerHitCollection* collection) const |
| 288 | + edm4hep::TrackerHit3DCollection* collection) const |
290 | 289 | {
|
291 | 290 | std::array<float,6> covMat = {0., 0., m_pointResoutionRPhi*m_pointResoutionRPhi,
|
292 | 291 | 0., 0., m_pointResoutionZ*m_pointResoutionZ
|
@@ -320,7 +319,7 @@ namespace dd4hep {
|
320 | 319 | if ( !cont.empty() ) {
|
321 | 320 | switch(cont.data_type) {
|
322 | 321 | case SegmentEntry::TRACKER_HITS:
|
323 |
| - convert_depos(cont, predicate, static_cast<edm4hep::TrackerHitCollection*>(coll)); |
| 322 | + convert_depos(cont, predicate, static_cast<edm4hep::TrackerHit3DCollection*>(coll)); |
324 | 323 | break;
|
325 | 324 | case SegmentEntry::CALORIMETER_HITS:
|
326 | 325 | convert_depos(cont, predicate, static_cast<edm4hep::CalorimeterHitCollection*>(coll));
|
|
0 commit comments