Simulation algorithm creating MC Hits from a set of tracks.
More...
Simulation algorithm creating MC Hits from a set of tracks.
Definition at line 29 of file SimulationAlg.cpp.
◆ SimulationAlg()
Gaudi::Example::TinyExperiment::SimulationAlg::SimulationAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
|
inline |
Definition at line 31 of file SimulationAlg.cpp.
32 :
Transformer(
name, pSvcLocator, { {
"MCTracksLocation",
"/Event/MCTracks" } },
33 {
"MCHitsLocation",
"/Event/MCHits" } ) {}
◆ operator()()
MCHits Gaudi::Example::TinyExperiment::SimulationAlg::operator() |
( |
MCTracks const & |
tracks | ) |
const |
|
inlineoverride |
Definition at line 35 of file SimulationAlg.cpp.
38 for (
auto const& track : tracks ) {
39 auto [
s,
c] = sincos( track.theta );
41 hits.emplace_back( i *
c, i *
s );
◆ m_nbHitsPerTrack
Gaudi::Property<unsigned int> Gaudi::Example::TinyExperiment::SimulationAlg::m_nbHitsPerTrack { this, "NbHitsPerTrack", 10 } |
|
private |
◆ n_hits
The documentation for this class was generated from the following file: