48 :
fPart (pset.get<
fhicl::ParameterSet >(
"MCRecoPart"))
49 ,
fEdep (pset.get<
fhicl::ParameterSet >(
"MCRecoEdep"))
50 ,
fMCSAlg (pset.get<
fhicl::ParameterSet >(
"MCShowerRecoAlg"))
51 ,
fMCTAlg (pset.get<
fhicl::ParameterSet >(
"MCTrackRecoAlg"))
58 mf::LogWarning(
"MCReco_module") <<
"USING DEPRECATED G4ModName CONFIG IN MCRECO_MODULE" 59 <<
"\nUse 'MCParticleLabel' and 'SimChannelLabel' instead.";
65 produces< std::vector< sim::MCShower> >();
66 produces< std::vector< sim::MCTrack> >();
82 if(!mcpHandle.
isValid())
throw cet::exception(__FUNCTION__) <<
"Failed to retrieve simb::MCParticle";;
86 std::vector<simb::Origin_t> orig_array;
87 orig_array.reserve(mcpHandle->size());
88 for(
size_t i=0; i<mcpHandle->size(); ++i) {
90 orig_array.push_back(mct->
Origin());
98 const std::vector<simb::MCParticle>& mcp_array(*mcpHandle);
101 const std::vector<sim::SimChannel>& sch_array(*schHandle);
void MakeMCEdep(const std::vector< sim::SimChannel > &schArray)
simb::Origin_t Origin() const
std::unique_ptr< std::vector< sim::MCShower > > Reconstruct(MCRecoPart &part_v, MCRecoEdep &edep_v)
::sim::MCShowerRecoAlg fMCSAlg
ProductID put(std::unique_ptr< PROD > &&product)
art::InputTag fMCParticleLabel
#define DEFINE_ART_MODULE(klass)
void AddParticles(const std::vector< simb::MCParticle > &mcp_v, const std::vector< simb::Origin_t > &orig_v)
T get(std::string const &key) const
bool get_if_present(std::string const &key, T &value) const
art::InputTag fSimChannelLabel
MCReco(fhicl::ParameterSet const &p)
::sim::MCTrackRecoAlg fMCTAlg
void produce(art::Event &e) override
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
std::unique_ptr< std::vector< sim::MCTrack > > Reconstruct(MCRecoPart &part_v, MCRecoEdep &edep_v)
cet::coded_exception< error, detail::translate > exception