LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Classes | |
struct | Config |
Public Types | |
enum | EId { kShower = 0, kTrack = 1, kMichel = 2 } |
using | Parameters = art::EDAnalyzer::Table< Config > |
using | ModuleType = EDAnalyzer |
Public Member Functions | |
PointIdEffTest (Parameters const &config) | |
PointIdEffTest (PointIdEffTest const &)=delete | |
PointIdEffTest (PointIdEffTest &&)=delete | |
PointIdEffTest & | operator= (PointIdEffTest const &)=delete |
PointIdEffTest & | operator= (PointIdEffTest &&)=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 | beginRun (const art::Run &run) override |
void | beginJob () override |
void | endJob () override |
void | analyze (art::Event const &e) override |
void | cleanup () |
void | countTruthDep (const std::vector< sim::SimChannel > &channels, float &emLike, float &trackLike) const |
void | countPfpDep (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const std::vector< recob::PFParticle > &pfparticles, const art::FindManyP< recob::Cluster > &pfpclus, const art::FindManyP< recob::Hit > &cluhits, float &emLike, float &trackLike) const |
bool | isMuonDecaying (const simb::MCParticle &particle, const std::unordered_map< int, const simb::MCParticle * > &particleMap) const |
int | testCNN (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const std::vector< sim::SimChannel > &channels, const std::vector< art::Ptr< recob::Hit >> &hits, const std::array< float, MVA_LENGTH > &cnn_out, const std::vector< anab::FeatureVector< MVA_LENGTH >> &hit_outs, size_t cidx) |
Definition at line 60 of file PointIdEffTest_module.cc.
|
inherited |
Definition at line 22 of file EDAnalyzer.h.
Definition at line 86 of file PointIdEffTest_module.cc.
|
explicit |
Definition at line 171 of file PointIdEffTest_module.cc.
|
delete |
|
delete |
|
overrideprivatevirtual |
Implements art::EDAnalyzer.
Definition at line 311 of file PointIdEffTest_module.cc.
References cleanup(), countPfpDep(), countTruthDep(), anab::MVAReader< T, N >::create(), e, art::EventID::event(), fCleanHit, fEmLikeIdx, fEvent, fEventTree, fHitEM_0p5, fHitEM_0p85, fHitMcFractionEM, fHitRecoEM, fHitRecoFractionEM, fHitsEM_OK_0p5, fHitsEM_OK_0p85, fHitsTrack_OK_0p5, fHitsTrack_OK_0p85, fHitTrack_0p5, fHitTrack_0p85, fMcDepEM, fMcDepTrack, fMcFractionEM, fMichelLikeIdx, fNNetModuleLabel, fNoneIdx, fParticleMap, fPfpDepEM, fPfpDepTrack, fPfpModuleLabel, fRun, fSimulationProducerLabel, fTotHit, fTrkLikeIdx, fView, art::ProductRetriever::getByLabel(), anab::FVectorReader< T, N >::getIndex(), art::ProductRetriever::getValidHandle(), hits(), art::Event::id(), anab::MVAReader< T, N >::outputs(), geo::PlaneID::Plane, recob::Cluster::Plane(), art::Event::run(), and testCNN().
|
overrideprivatevirtual |
Reimplemented from art::EDAnalyzer.
Definition at line 193 of file PointIdEffTest_module.cc.
References fCleanHit, fClSize, fClusterTree, fEvent, fEventTree, fHitEM_0p5, fHitEM_0p85, fHitEM_mc, fHitMcFractionEM, fHitMichel_0p5, fHitMichel_mc, fHitRecoEM, fHitRecoFractionEM, fHitsEM_OK_0p5, fHitsEM_OK_0p85, fHitsMichel_False_0p5, fHitsMichel_OK_0p5, fHitsOutFile, fHitsTrack_OK_0p5, fHitsTrack_OK_0p85, fHitTrack_0p5, fHitTrack_0p85, fHitTree, fMcDepEM, fMcDepTrack, fMcFractionEM, fMcPid, fNone, fOutEM, fOutNone, fOutTrk, fpEM, fPfpDepEM, fPfpDepTrack, fPidValue, fpMichel_cl, fpMichel_hit, fRun, fSaveHitsFile, fShBad, fShOk, fTotal, fTrkBad, and fTrkOk.
|
overrideprivate |
Definition at line 187 of file PointIdEffTest_module.cc.
References fElectronsToGeV, and sim::LArG4Parameters::GeVToElectrons().
|
private |
Definition at line 276 of file PointIdEffTest_module.cc.
References fCleanHit, fEmLikeIdx, fHitEM_0p5, fHitEM_0p85, fHitMcFractionEM, fHitMichel_0p5, fHitRecoEM, fHitRecoFractionEM, fHitsEM_OK_0p5, fHitsEM_OK_0p85, fHitsMichel_False_0p5, fHitsMichel_OK_0p5, fHitsTrack_OK_0p5, fHitsTrack_OK_0p85, fHitTrack_0p5, fHitTrack_0p85, fMcDepEM, fMcDepTrack, fMcFractionEM, fMichelLikeIdx, fNoneIdx, fParticleMap, fPfpDepEM, fPfpDepTrack, fTotHit, and fTrkLikeIdx.
Referenced by analyze().
|
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().
|
private |
Definition at line 477 of file PointIdEffTest_module.cc.
References fCalorimetryAlg, fView, hits(), and calo::CalorimetryAlg::LifetimeCorrection().
Referenced by analyze().
|
private |
Definition at line 434 of file PointIdEffTest_module.cc.
References energy, fElectronsToGeV, fParticleMap, and simb::MCParticle::PdgCode().
Referenced by analyze().
|
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().
|
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 255 of file PointIdEffTest_module.cc.
References fHitsOutFile, fSaveHitsFile, fShBad, fShOk, fTrkBad, and fTrkOk.
|
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 510 of file PointIdEffTest_module.cc.
References util::abs(), d, simb::MCParticle::Daughter(), simb::MCParticle::EndProcess(), simb::MCParticle::NumberDaughters(), and simb::MCParticle::PdgCode().
Referenced by testCNN().
|
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().
|
inherited |
|
inherited |
Definition at line 49 of file ModuleBase.cc.
References art::ModuleBase::collector_, and art::ConsumesCollector::sortConsumables().
|
private |
Definition at line 539 of file PointIdEffTest_module.cc.
References util::abs(), DEFINE_ART_MODULE, energy, fCalorimetryAlg, fCleanHit, fClSize, fClusterTree, fElectronsToGeV, fEmLikeIdx, fEvent, fHitEM_0p5, fHitEM_0p85, fHitEM_mc, fHitMichel_0p5, fHitMichel_mc, fHitRecoEM, fHitsEM_OK_0p5, fHitsEM_OK_0p85, fHitsMichel_False_0p5, fHitsMichel_OK_0p5, fHitsOutFile, fHitsTrack_OK_0p5, fHitsTrack_OK_0p85, fHitTrack_0p5, fHitTrack_0p85, fHitTree, fMcPid, fMichelLikeIdx, fNone, fNoneIdx, fOutEM, fOutNone, fOutTrk, fParticleMap, fpEM, fPidValue, fpMichel_cl, fpMichel_hit, fRun, fSaveHitsFile, fShBad, fShOk, fTotal, fTotHit, fTrkBad, fTrkLikeIdx, fTrkOk, hits(), isMuonDecaying(), kShower, kTrack, calo::CalorimetryAlg::LifetimeCorrection(), simb::MCParticle::Mother(), and simb::MCParticle::PdgCode().
Referenced by analyze().
|
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 162 of file PointIdEffTest_module.cc.
Referenced by countPfpDep(), and testCNN().
|
private |
Definition at line 134 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), cleanup(), and testCNN().
|
private |
Definition at line 143 of file PointIdEffTest_module.cc.
Referenced by beginJob(), and testCNN().
|
private |
Definition at line 154 of file PointIdEffTest_module.cc.
Referenced by beginJob(), and testCNN().
|
private |
Definition at line 150 of file PointIdEffTest_module.cc.
Referenced by beginRun(), countTruthDep(), and testCNN().
|
private |
Definition at line 152 of file PointIdEffTest_module.cc.
|
private |
Definition at line 126 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), and testCNN().
|
private |
Definition at line 154 of file PointIdEffTest_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 129 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), cleanup(), and testCNN().
|
private |
Definition at line 133 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), cleanup(), and testCNN().
|
private |
Definition at line 130 of file PointIdEffTest_module.cc.
Referenced by beginJob(), and testCNN().
|
private |
Definition at line 129 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), and cleanup().
|
private |
Definition at line 129 of file PointIdEffTest_module.cc.
Referenced by beginJob(), cleanup(), and testCNN().
|
private |
Definition at line 131 of file PointIdEffTest_module.cc.
Referenced by beginJob(), and testCNN().
|
private |
Definition at line 140 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), cleanup(), and testCNN().
|
private |
Definition at line 140 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), and cleanup().
|
private |
Definition at line 137 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), cleanup(), and testCNN().
|
private |
Definition at line 139 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), cleanup(), and testCNN().
|
private |
Definition at line 138 of file PointIdEffTest_module.cc.
Referenced by beginJob(), cleanup(), and testCNN().
|
private |
Definition at line 138 of file PointIdEffTest_module.cc.
Referenced by beginJob(), cleanup(), and testCNN().
|
private |
Definition at line 156 of file PointIdEffTest_module.cc.
Referenced by beginJob(), endJob(), and testCNN().
|
private |
Definition at line 137 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), cleanup(), and testCNN().
|
private |
Definition at line 139 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), cleanup(), and testCNN().
|
private |
Definition at line 129 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), cleanup(), and testCNN().
|
private |
Definition at line 133 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), cleanup(), and testCNN().
|
private |
Definition at line 154 of file PointIdEffTest_module.cc.
Referenced by beginJob(), and testCNN().
|
private |
Definition at line 127 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), and cleanup().
|
private |
Definition at line 127 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), and cleanup().
|
private |
Definition at line 127 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), and cleanup().
|
private |
Definition at line 142 of file PointIdEffTest_module.cc.
Referenced by beginJob(), and testCNN().
|
private |
Definition at line 152 of file PointIdEffTest_module.cc.
|
private |
Definition at line 165 of file PointIdEffTest_module.cc.
Referenced by analyze().
|
private |
Definition at line 148 of file PointIdEffTest_module.cc.
Referenced by beginJob(), and testCNN().
|
private |
Definition at line 152 of file PointIdEffTest_module.cc.
|
private |
Definition at line 132 of file PointIdEffTest_module.cc.
Referenced by beginJob(), and testCNN().
|
private |
Definition at line 132 of file PointIdEffTest_module.cc.
Referenced by beginJob(), and testCNN().
|
private |
Definition at line 132 of file PointIdEffTest_module.cc.
Referenced by beginJob(), and testCNN().
|
private |
Definition at line 160 of file PointIdEffTest_module.cc.
Referenced by analyze(), cleanup(), countTruthDep(), and testCNN().
|
private |
Definition at line 130 of file PointIdEffTest_module.cc.
Referenced by beginJob(), and testCNN().
|
private |
Definition at line 128 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), and cleanup().
|
private |
Definition at line 128 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), and cleanup().
|
private |
Definition at line 164 of file PointIdEffTest_module.cc.
Referenced by analyze().
|
private |
Definition at line 144 of file PointIdEffTest_module.cc.
Referenced by beginJob(), and testCNN().
|
private |
Definition at line 131 of file PointIdEffTest_module.cc.
Referenced by beginJob(), and testCNN().
|
private |
Definition at line 131 of file PointIdEffTest_module.cc.
Referenced by beginJob(), and testCNN().
|
private |
Definition at line 126 of file PointIdEffTest_module.cc.
Referenced by analyze(), beginJob(), and testCNN().
|
private |
Definition at line 166 of file PointIdEffTest_module.cc.
Referenced by beginJob(), endJob(), and testCNN().
|
private |
Definition at line 147 of file PointIdEffTest_module.cc.
Referenced by beginJob(), endJob(), and testCNN().
|
private |
Definition at line 147 of file PointIdEffTest_module.cc.
Referenced by beginJob(), endJob(), and testCNN().
|
private |
Definition at line 163 of file PointIdEffTest_module.cc.
Referenced by analyze().
|
private |
Definition at line 148 of file PointIdEffTest_module.cc.
Referenced by beginJob(), and testCNN().
|
private |
Definition at line 134 of file PointIdEffTest_module.cc.
|
private |
Definition at line 146 of file PointIdEffTest_module.cc.
Referenced by beginJob(), endJob(), and testCNN().
|
private |
Definition at line 152 of file PointIdEffTest_module.cc.
|
private |
Definition at line 146 of file PointIdEffTest_module.cc.
Referenced by beginJob(), endJob(), and testCNN().
|
private |
Definition at line 158 of file PointIdEffTest_module.cc.
Referenced by analyze(), and countPfpDep().