Skip to content

Commit

Permalink
start writing AlgorithmProcess
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Dec 14, 2022
1 parent 5f72597 commit 0b192b7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/algorithms/pid/IrtParticleID.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,21 @@ std::vector<edm4hep::ParticleID*> eicrecon::IrtParticleID::AlgorithmProcess(
std::vector<edm4hep::ParticleID*> particle_id;
if(m_init_failed) return particle_id;

// loop over charged particles ********************************************
for(const auto& charged_particle : charged_particles) {
int charged_particle_pdg = 0; // FIXME: not known, maybe not needed
auto irt_particle = std::make_unique<ChargedParticle>(charged_particle_pdg);

// start radiator history
for(auto [name,rad] : m_irt_det->Radiators())
irt_particle->StartRadiatorHistory({ rad, new RadiatorHistory() });

// loop over `charged_particle`'s projected track points

// loop over raw hits ***************************************************
// for(const auto& raw_hit : raw_hits) {
}

m_log->trace("{:=^70}"," call IrtParticleID::AlgorithmProcess ");
m_log->trace("number of raw hits: {}", raw_hits.size());
m_log->trace("number of propagated tracks: {}", charged_particles.size());
Expand Down

0 comments on commit 0b192b7

Please sign in to comment.