98 art::Handle<std::vector<simb::MCParticle> > mcpHandle;
100 if(!mcpHandle.isValid())
throw cet::exception(__FUNCTION__) <<
"Failed to retrieve simb::MCParticle";;
104 std::vector<simb::Origin_t> orig_array;
105 orig_array.reserve(mcpHandle->size());
106 for(
size_t i=0; i<mcpHandle->size(); ++i) {
107 const art::Ptr<simb::MCTruth> &mct = ass.at(i);
108 orig_array.push_back(mct->Origin());
111 const std::vector<simb::MCParticle>& mcp_array(*mcpHandle);
124 MakeMCEdep<sim::SimEnergyDeposit>(
evt);
128 MakeMCEdep<sim::SimEnergyDepositLite>(
evt);
131 MakeMCEdep<sim::SimChannel>(
evt);
void AddParticles(const std::vector< simb::MCParticle > &mcp_v, const std::vector< simb::Origin_t > &orig_v, const std::vector< sim::MCParticleLite > &mcmp_v={})
std::unique_ptr< std::vector< sim::MCShower > > Reconstruct(MCRecoPart &part_v, MCRecoEdep &edep_v)
::sim::MCShowerRecoAlg fMCSAlg
bool fIncludeDroppedParticles
art::InputTag fMCParticleLabel
bool fUseSimEnergyDepositLite
art::InputTag fMCParticleLiteLabel
bool fUseSimEnergyDeposit
::sim::MCTrackRecoAlg fMCTAlg
std::unique_ptr< std::vector< sim::MCTrack > > Reconstruct(MCRecoPart &part_v, MCRecoEdep &edep_v)