26 :
WriterT(cfg.inputClusters,
"CsvPlanarClusterWriter", lvl), m_cfg(cfg) {
29 throw std::invalid_argument(
"Missing simulated hits input collection");
41 std::string pathHits =
43 std::string pathCells =
45 std::string pathTruth =
50 m_cfg.outputPrecision);
52 m_cfg.outputPrecision);
60 for (
const auto& entry : clusters) {
70 globalFakeMom, globalPos);
88 cell.
ch0 =
c.channel0;
89 cell.
ch1 =
c.channel1;
101 auto it = simHits.nth(
idx);
102 if (
it == simHits.end()) {
103 ACTS_FATAL(
"Simulation hit with index " <<
idx <<
" does not exist");
104 return ProcessCode::ABORT;
107 const auto& simHit = *
it;
120 const auto delta4 = simHit.momentum4After() - simHit.momentum4Before();
126 truth.
index = simHit.index();
127 writerTruth.
append(truth);