#include <GenAccessIO.h>
◆ GenAccessIO() [1/2]
TruthHelper::GenAccessIO::GenAccessIO |
( |
| ) |
|
|
inline |
◆ GenAccessIO() [2/2]
TruthHelper::GenAccessIO::GenAccessIO |
( |
| ) |
|
|
inline |
◆ getDH() [1/4]
◆ getDH() [2/4]
◆ getDH() [3/4]
◆ getDH() [4/4]
◆ getMC() [1/2]
StatusCode TruthHelper::GenAccessIO::getMC |
( |
MCParticleCollection & |
mcParticles, |
|
|
const bool |
ifgen = false , |
|
|
const std::string & |
key = "GEN_EVENT" |
|
) |
| const |
|
inline |
Definition at line 29 of file Generators/FlowAfterburner/FlowAfterburner/GenAccessIO.h.
35 if ( (
m_sgSvc->retrieve(firstMEC, lastMEC)).isFailure() ) {
36 log << MSG::ERROR <<
"Could not retrieve iterators for McEventCollections" <<
endmsg;
40 for ( ; firstMEC!= lastMEC; ++firstMEC) icount++;
53 for (itr = mcColl.
begin(); itr!=mcColl.
end(); ++itr) {
55 const HepMC::GenEvent* genEvt = (*itr);
56 if (genEvt == 0)
return StatusCode::FAILURE;
58 for (
auto it: *genEvt) {
62 for (
auto it: *genEvt) {
63 mcParticles.push_back(
it);
68 return StatusCode::SUCCESS;
◆ getMC() [2/2]
StatusCode TruthHelper::GenAccessIO::getMC |
( |
MCParticleCollection & |
mcParticles, |
|
|
const bool |
ifgen = false , |
|
|
const std::string & |
key = "GEN_EVENT" |
|
) |
| const |
|
inline |
Definition at line 32 of file PhysicsAnalysis/TruthParticleID/McParticleTools/src/GenAccessIO.h.
38 if ( (
m_sgSvc->retrieve(firstMEC, lastMEC)).isFailure() ) {
39 log << MSG::ERROR <<
"Could not retrieve iterators for McEventCollections" <<
endmsg;
43 for ( ; firstMEC!= lastMEC; ++firstMEC) icount++;
56 for (itr = mcColl.
begin(); itr!=mcColl.
end(); ++itr) {
58 const HepMC::GenEvent* genEvt = (*itr);
59 if (genEvt == 0)
return StatusCode::FAILURE;
61 for (
auto it: *genEvt) {
65 for (
auto it: *genEvt) {
66 mcParticles.push_back(
it);
71 return StatusCode::SUCCESS;
◆ store() [1/2]
◆ store() [2/2]
◆ m_sgSvc
The documentation for this class was generated from the following file: