LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Public Types | |
using | ModuleType = EDAnalyzer |
Public Member Functions | |
NuShowerEff (fhicl::ParameterSet const &p) | |
NuShowerEff (NuShowerEff const &)=delete | |
NuShowerEff (NuShowerEff &&)=delete | |
NuShowerEff & | operator= (NuShowerEff const &)=delete |
NuShowerEff & | operator= (NuShowerEff &&)=delete |
void | doBeginJob (SharedResources const &resources) |
void | doEndJob () |
void | doRespondToOpenInputFile (FileBlock const &fb) |
void | doRespondToCloseInputFile (FileBlock const &fb) |
void | doRespondToOpenOutputFiles (FileBlock const &fb) |
void | doRespondToCloseOutputFiles (FileBlock const &fb) |
bool | doBeginRun (RunPrincipal &rp, ModuleContext const &mc) |
bool | doEndRun (RunPrincipal &rp, ModuleContext const &mc) |
bool | doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
bool | doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
bool | doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed) |
ModuleDescription const & | moduleDescription () const |
void | setModuleDescription (ModuleDescription const &) |
std::array< std::vector< ProductInfo >, NumBranchTypes > const & | getConsumables () const |
void | sortConsumables (std::string const ¤t_process_name) |
std::unique_ptr< Worker > | makeWorker (WorkerParams const &wp) |
template<typename T , BranchType BT> | |
ViewToken< T > | consumesView (InputTag const &tag) |
template<typename T , BranchType BT> | |
ViewToken< T > | mayConsumeView (InputTag const &tag) |
Protected Member Functions | |
std::string const & | processName () const |
bool | wantAllEvents () const noexcept |
bool | wantEvent (ScheduleID id, Event const &e) const |
Handle< TriggerResults > | getTriggerResults (Event const &e) const |
ConsumesCollector & | consumesCollector () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | consumes (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | consumesView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | consumesMany () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | mayConsume (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | mayConsumeView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | mayConsumeMany () |
Private Member Functions | |
void | analyze (art::Event const &e) override |
void | beginJob () override |
void | endJob () override |
void | beginRun (art::Run const &run) override |
void | doEfficiencies () |
bool | insideFV (double vertex[4]) |
void | reset () |
Definition at line 48 of file NuShowerEff_module.cc.
|
inherited |
Definition at line 22 of file EDAnalyzer.h.
|
explicit |
Definition at line 163 of file NuShowerEff_module.cc.
|
delete |
|
delete |
|
overrideprivatevirtual |
Implements art::EDAnalyzer.
Definition at line 277 of file NuShowerEff_module.cc.
References util::abs(), sim::ParticleList::begin(), simb::MCNeutrino::CCNC(), count_primary_e_in_Event, art::FindManyP< ProdB, Data >::data(), recob::Shower::Direction(), sim::ParticleList::end(), simb::MCParticle::EndMomentum(), simb::MCParticle::EndPosition(), energy, esh_1_completeness, esh_1_purity, esh_completeness, esh_each_completeness, esh_each_purity, esh_purity, art::EventID::event(), Event, fEventTree, fHitModuleLabel, fHitShowerThroughPFParticle, art::fill_ptr_vector(), fLeptonPDGcode, fMCTruthModuleLabel, fMinCompleteness, fMinPurity, fNeutrinoPDGcode, fSaveMCTree, fShowerModuleLabel, fTruthMatchDataModuleLabel, art::ProductRetriever::getByLabel(), simb::MCTruth::GetNeutrino(), h_Ee_den, h_Ee_num, h_Ev_den, h_Ev_num, hits(), art::Event::id(), insideFV(), recob::Hit::Integral(), simb::MCNeutrino::InteractionType(), simb::kBeamNeutrino, art::Ptr< T >::key(), recob::Shower::Length(), simb::MCNeutrino::Lepton(), MC_channel, MC_incoming_E, MC_incoming_P, MC_incoming_PDG, MC_isCC, MC_lepton_endMomentum, MC_lepton_endXYZT, MC_lepton_PDG, MC_lepton_startEnergy, MC_lepton_startMomentum, MC_lepton_startXYZT, MC_leptonID, MC_Q2, MC_target, MC_vertex, MC_W, simb::MCParticle::Momentum(), simb::MCParticle::Mother(), n_recoShowers, simb::MCTruth::NeutrinoSet(), simb::MCNeutrino::Nu(), cheat::ParticleInventoryService::ParticleList(), cheat::ParticleInventoryService::ParticleToMCTruth_P(), simb::MCParticle::PdgCode(), simb::MCParticle::Position(), simb::MCNeutrino::QSqr(), reset(), art::Event::run(), Run, sh_allhit_Q, sh_completeness, sh_direction_X, sh_direction_Y, sh_direction_Z, sh_ehit_Q, sh_hasPrimary_e, sh_length, sh_purity, sh_start_X, sh_start_Y, sh_start_Z, sh_TrackId, recob::Shower::ShowerStart(), art::Event::subRun(), SubRun, simb::MCNeutrino::Target(), simb::MCParticle::TrackId(), cheat::ParticleInventoryService::TrackIdToMotherParticle_P(), cheat::ParticleInventoryService::TrackIdToParticle_P(), and simb::MCNeutrino::W().
|
overrideprivatevirtual |
Reimplemented from art::EDAnalyzer.
Definition at line 181 of file NuShowerEff_module.cc.
References count_primary_e_in_Event, esh_1_completeness, esh_1_purity, esh_completeness, esh_each_completeness, esh_each_purity, esh_purity, Event, fEventTree, fFidVolCutX, fFidVolCutY, fFidVolCutZ, fFidVolXmax, fFidVolXmin, fFidVolYmax, fFidVolYmin, fFidVolZmax, fFidVolZmin, fSaveMCTree, h_Ee_den, h_Ee_num, h_Ev_den, h_Ev_num, MC_incoming_E, MC_lepton_startEnergy, n_recoShowers, Run, sh_hasPrimary_e, and SubRun.
|
overrideprivatevirtual |
Reimplemented from art::EDAnalyzer.
Definition at line 271 of file NuShowerEff_module.cc.
|
protectedinherited |
Definition at line 61 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::consumes().
|
protectedinherited |
|
protectedinherited |
Definition at line 75 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::consumesMany().
|
protectedinherited |
|
inherited |
Definition at line 68 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::consumesView().
|
inherited |
Definition at line 25 of file Analyzer.cc.
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 68 of file Analyzer.cc.
References art::ModuleContext::scheduleID().
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 84 of file Analyzer.cc.
References art::ModuleContext::scheduleID().
Referenced by art::detail::Analyzer::Analyzer().
|
private |
|
inherited |
Definition at line 33 of file Analyzer.cc.
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 76 of file Analyzer.cc.
References art::ModuleContext::scheduleID().
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 92 of file Analyzer.cc.
References art::ModuleContext::scheduleID().
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 100 of file Analyzer.cc.
References e, and art::ModuleContext::scheduleID().
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 47 of file Analyzer.cc.
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 61 of file Analyzer.cc.
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 40 of file Analyzer.cc.
Referenced by art::detail::Analyzer::Analyzer().
|
inherited |
Definition at line 54 of file Analyzer.cc.
Referenced by art::detail::Analyzer::Analyzer().
|
overrideprivatevirtual |
Reimplemented from art::EDAnalyzer.
Definition at line 265 of file NuShowerEff_module.cc.
References doEfficiencies().
|
inherited |
Definition at line 43 of file ModuleBase.cc.
References art::ModuleBase::collector_, and art::ConsumesCollector::getConsumables().
|
protectedinherited |
Definition at line 75 of file Observer.cc.
References art::ProductRetriever::get(), and art::Observer::selectors_.
Referenced by art::OutputModule::doWriteEvent(), and art::Observer::wantAllEvents().
|
private |
Definition at line 604 of file NuShowerEff_module.cc.
References fFidVolXmin, fFidVolYmin, fFidVolZmax, fFidVolZmin, x, y, and z.
Referenced by analyze().
|
inherited |
Definition at line 37 of file ModuleBase.cc.
References art::ModuleBase::doMakeWorker(), and art::NumBranchTypes.
|
protectedinherited |
Definition at line 82 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsume().
|
protectedinherited |
Definition at line 96 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsumeMany().
|
protectedinherited |
|
inherited |
Definition at line 89 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsumeView().
|
inherited |
Definition at line 13 of file ModuleBase.cc.
References art::errors::LogicError.
Referenced by art::OutputModule::doRespondToOpenInputFile(), art::OutputModule::doWriteEvent(), art::Modifier::fillProductDescriptions(), art::OutputModule::makePlugins_(), art::OutputWorker::OutputWorker(), reco::shower::LArPandoraModularShowerCreation::produce(), art::Modifier::registerProducts(), and art::OutputModule::registerProducts().
|
delete |
|
delete |
|
protectedinherited |
Definition at line 57 of file Observer.cc.
References art::Observer::process_name_.
Referenced by art::FileDumperOutput::printPrincipal().
|
private |
Definition at line 620 of file NuShowerEff_module.cc.
References DEFINE_ART_MODULE, MAX_SHOWERS, MC_channel, MC_incoming_PDG, MC_isCC, MC_lepton_PDG, MC_lepton_theta, MC_leptonID, MC_LeptonTrack, MC_Q2, MC_target, MC_W, sh_allhit_Q, sh_completeness, sh_direction_X, sh_direction_Y, sh_direction_Z, sh_ehit_Q, sh_hasPrimary_e, sh_length, sh_purity, sh_start_X, sh_start_Y, and sh_start_Z.
Referenced by analyze().
|
inherited |
|
inherited |
Definition at line 49 of file ModuleBase.cc.
References art::ModuleBase::collector_, and art::ConsumesCollector::sortConsumables().
|
inlineprotectednoexceptinherited |
Definition at line 31 of file Observer.h.
References e, art::Observer::getTriggerResults(), art::Observer::wantAllEvents_, and art::Observer::wantEvent().
|
protectedinherited |
Definition at line 63 of file Observer.cc.
References art::Observer::rejectors_, art::Observer::selectors_, and art::Observer::wantAllEvents_.
Referenced by art::OutputModule::doEvent(), art::OutputModule::doWriteEvent(), and art::Observer::wantAllEvents().
|
private |
Definition at line 147 of file NuShowerEff_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 141 of file NuShowerEff_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 140 of file NuShowerEff_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 146 of file NuShowerEff_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 144 of file NuShowerEff_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 143 of file NuShowerEff_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 145 of file NuShowerEff_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 100 of file NuShowerEff_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 150 of file NuShowerEff_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 87 of file NuShowerEff_module.cc.
Referenced by beginJob().
|
private |
Definition at line 88 of file NuShowerEff_module.cc.
Referenced by beginJob().
|
private |
Definition at line 89 of file NuShowerEff_module.cc.
Referenced by beginJob().
|
private |
Definition at line 93 of file NuShowerEff_module.cc.
Referenced by beginJob().
|
private |
Definition at line 92 of file NuShowerEff_module.cc.
Referenced by beginJob(), and insideFV().
|
private |
Definition at line 95 of file NuShowerEff_module.cc.
Referenced by beginJob().
|
private |
Definition at line 94 of file NuShowerEff_module.cc.
Referenced by beginJob(), and insideFV().
|
private |
Definition at line 97 of file NuShowerEff_module.cc.
Referenced by beginJob(), and insideFV().
|
private |
Definition at line 96 of file NuShowerEff_module.cc.
Referenced by beginJob(), and insideFV().
|
private |
Definition at line 76 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 84 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 82 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 75 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 86 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 85 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 81 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 83 of file NuShowerEff_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 77 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 78 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 155 of file NuShowerEff_module.cc.
Referenced by analyze(), beginJob(), and doEfficiencies().
|
private |
Definition at line 156 of file NuShowerEff_module.cc.
Referenced by analyze(), beginJob(), and doEfficiencies().
|
private |
Definition at line 159 of file NuShowerEff_module.cc.
Referenced by doEfficiencies().
|
private |
Definition at line 158 of file NuShowerEff_module.cc.
Referenced by doEfficiencies().
|
private |
Definition at line 152 of file NuShowerEff_module.cc.
Referenced by analyze(), beginJob(), and doEfficiencies().
|
private |
Definition at line 153 of file NuShowerEff_module.cc.
Referenced by analyze(), beginJob(), and doEfficiencies().
|
private |
Definition at line 108 of file NuShowerEff_module.cc.
|
private |
Definition at line 122 of file NuShowerEff_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 113 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 105 of file NuShowerEff_module.cc.
|
private |
Definition at line 107 of file NuShowerEff_module.cc.
|
private |
Definition at line 115 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 117 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 106 of file NuShowerEff_module.cc.
|
private |
Definition at line 123 of file NuShowerEff_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 114 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 116 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 118 of file NuShowerEff_module.cc.
Referenced by reset().
|
private |
Definition at line 119 of file NuShowerEff_module.cc.
|
private |
Definition at line 120 of file NuShowerEff_module.cc.
Referenced by reset().
|
private |
Definition at line 110 of file NuShowerEff_module.cc.
|
private |
Definition at line 109 of file NuShowerEff_module.cc.
|
private |
Definition at line 112 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 111 of file NuShowerEff_module.cc.
|
private |
Definition at line 126 of file NuShowerEff_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 101 of file NuShowerEff_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 137 of file NuShowerEff_module.cc.
|
private |
Definition at line 139 of file NuShowerEff_module.cc.
|
private |
Definition at line 127 of file NuShowerEff_module.cc.
|
private |
Definition at line 128 of file NuShowerEff_module.cc.
|
private |
Definition at line 129 of file NuShowerEff_module.cc.
|
private |
Definition at line 134 of file NuShowerEff_module.cc.
|
private |
Definition at line 136 of file NuShowerEff_module.cc.
Referenced by analyze(), beginJob(), and reset().
|
private |
Definition at line 133 of file NuShowerEff_module.cc.
|
private |
Definition at line 138 of file NuShowerEff_module.cc.
|
private |
Definition at line 130 of file NuShowerEff_module.cc.
|
private |
Definition at line 131 of file NuShowerEff_module.cc.
|
private |
Definition at line 132 of file NuShowerEff_module.cc.
|
private |
Definition at line 135 of file NuShowerEff_module.cc.
Referenced by analyze().
|
private |
Definition at line 102 of file NuShowerEff_module.cc.
Referenced by analyze(), and beginJob().