28 :
WriterT(cfg.inputClusters,
"CsvPlanarClusterWriter", lvl), m_cfg(cfg) {
31 throw std::invalid_argument(
"Missing simulated hits input collection");
44 std::string pathHits =
46 std::string pathCells =
48 std::string pathTruth =
53 m_cfg.outputPrecision);
55 m_cfg.outputPrecision);
63 for (
const auto& entry : clusters) {
89 cell.
ch0 =
c.channel0;
90 cell.
ch1 =
c.channel1;
101 for (
auto idx : cluster.
sourceLink().indices()) {
102 auto it = simHits.nth(idx);
103 if (
it == simHits.end()) {
104 ACTS_FATAL(
"Simulation hit with index " << idx <<
" does not exist");
105 return ProcessCode::ABORT;
108 const auto& simHit = *
it;
121 const auto delta4 = simHit.momentum4After() - simHit.momentum4Before();
127 truth.
index = simHit.index();
128 writerTruth.
append(truth);