12 const std::string& name,
13 const IInterface* parent) :
14 base_class(
type, name, parent)
16 declareProperty(
"HistPath",
m_path=
"/truth/");
17 declareProperty(
"McEventKey",
m_key=
"TruthEvent");
23 if (evtStore()->retrieve(mcCollection,
m_key).isSuccess()) {
25 for (e=mcCollection->
begin();e!=mcCollection->
end(); ++e) {
26 for (
auto p : (**e)) {
DataModel_detail::const_iterator< DataVector > const_iterator
Standard const_iterator.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
bool is_simulation_particle(const T &p)
Method to establish if a particle (or barcode) was created during the simulation (TODO update to be s...
const GenParticle * ConstGenParticlePtr