LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "OpticalRecoAna.h"
Public Types | |
using | WorkerType = WorkerT< EDAnalyzer > |
using | ModuleType = EDAnalyzer |
Public Member Functions | |
OpticalRecoAna (const fhicl::ParameterSet &) | |
virtual | ~OpticalRecoAna () |
void | beginJob () |
void | analyze (const art::Event &) |
std::string | workerType () const |
bool | modifiesEvent () const |
void | registerProducts (MasterProductRegistry &, ProductDescriptions &, ModuleDescription const &) |
std::string const & | processName () const |
bool | wantAllEvents () const |
bool | wantEvent (Event const &e) |
fhicl::ParameterSetID | selectorConfig () const |
art::Handle< art::TriggerResults > | getTriggerResults (Event const &e) const |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | consumes (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ProductToken< T > | consumes (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
void | consumesMany () |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | consumesView (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ViewToken< T > | consumesView (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | mayConsume (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ProductToken< T > | mayConsume (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
void | mayConsumeMany () |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | mayConsumeView (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ViewToken< T > | mayConsumeView (InputTag const &it) |
base_engine_t & | createEngine (seed_t seed) |
base_engine_t & | createEngine (seed_t seed, std::string const &kind_of_engine_to_make) |
base_engine_t & | createEngine (seed_t seed, std::string const &kind_of_engine_to_make, label_t const &engine_label) |
seed_t | get_seed_value (fhicl::ParameterSet const &pset, char const key[]="seed", seed_t const implicit_seed=-1) |
Static Public Member Functions | |
static cet::exempt_ptr< Consumer > | non_module_context () |
Protected Member Functions | |
CurrentProcessingContext const * | currentContext () const |
detail::CachedProducts & | cachedProducts () |
void | validateConsumedProduct (BranchType const bt, ProductInfo const &pi) |
void | prepareForJob (fhicl::ParameterSet const &pset) |
void | showMissingConsumes () const |
Private Attributes | |
std::string | fFlashModuleLabel |
std::string | fTrackModuleLabel |
float | fKineticEnergyMin |
float | fPEMin |
float | fTimeMatchMax |
std::vector< flash_match > | fFlash_match_vector |
std::vector< track_match > | fTrack_match_vector |
std::vector< particle_match > | fParticle_match_vector |
TH1F * | fTimeDiff |
TH1F * | fTimeDiff_fine |
TH1I * | fNBeamFlashes |
TTree * | fMatchTree_PF |
TTree * | fMatchTree_PF_NotNu |
int | fRun |
int | fEvent |
int | fParticleID |
int | fParticleMother |
int | fParticleTrackID |
float | fParticleTime |
float | fParticleVx |
float | fParticleVy |
float | fParticleVz |
int | fFlashID |
float | fFlashTime |
float | fFlashTimeWidth |
float | fFlashY |
float | fFlashZ |
float | fFlashYWidth |
float | fFlashZWidth |
float | fFlashPE |
int | fFlashOnBeamTime |
int | fMatchIndex |
int | fMatchIndex_NotNu |
Definition at line 42 of file OpticalRecoAna.h.
|
inherited |
Definition at line 39 of file EDAnalyzer.h.
|
inherited |
Definition at line 38 of file EDAnalyzer.h.
opreco::OpticalRecoAna::OpticalRecoAna | ( | const fhicl::ParameterSet & | ) |
Definition at line 28 of file OpticalRecoAna_module.cc.
References fFlash_match_vector, fFlashModuleLabel, fKineticEnergyMin, fParticle_match_vector, fPEMin, fTimeMatchMax, fTrack_match_vector, fTrackModuleLabel, and fhicl::ParameterSet::get().
|
virtual |
Definition at line 46 of file OpticalRecoAna_module.cc.
void opreco::OpticalRecoAna::analyze | ( | const art::Event & | evt | ) |
Definition at line 106 of file OpticalRecoAna_module.cc.
References art::EventID::event(), fEvent, fFlash_match_vector, fFlashModuleLabel, fNBeamFlashes, fParticle_match_vector, fRun, get_MC_particle_list(), art::DataViewImpl::getByLabel(), art::Event::id(), art::Event::isRealData(), LOG_INFO, match_flashes_to_particles(), cheat::ParticleInventoryService::ParticleList(), and art::EventID::run().
|
virtual |
Reimplemented from art::EDAnalyzer.
Definition at line 52 of file OpticalRecoAna_module.cc.
References fEvent, fFlashID, fFlashOnBeamTime, fFlashPE, fFlashTime, fFlashTimeWidth, fFlashY, fFlashYWidth, fFlashZ, fMatchIndex, fMatchIndex_NotNu, fMatchTree_PF, fMatchTree_PF_NotNu, fNBeamFlashes, fParticleID, fParticleMother, fParticleTime, fParticleTrackID, fParticleVx, fParticleVy, fParticleVz, fRun, fTimeDiff, fTimeDiff_fine, and art::TFileDirectory::make().
|
inlineprotectedinherited |
Definition at line 79 of file EventObserverBase.h.
References art::EventObserverBase::selectors_.
Referenced by art::EDAnalyzer::doEvent(), and art::OutputModule::doWriteEvent().
|
private |
Definition at line 399 of file OpticalRecoAna_module.cc.
|
private |
Definition at line 432 of file OpticalRecoAna_module.cc.
Referenced by match_flashes_to_particles().
|
private |
Definition at line 271 of file OpticalRecoAna_module.cc.
Referenced by match_flashes_to_tracks().
|
inherited |
|
inherited |
Definition at line 147 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 162 of file Consumer.h.
|
inherited |
|
inherited |
Definition at line 172 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 26 of file EngineCreator.cc.
References art::EngineCreator::rng().
Referenced by evgen::CosmicsGen::CosmicsGen(), rndm::NuRandomService::createEngine(), cluster::fuzzyCluster::fuzzyCluster(), cluster::HoughLineFinder::HoughLineFinder(), art::MixFilter< T >::initEngine_(), larg4::LArG4::LArG4(), evgen::LightSource::LightSource(), evgen::NeutronOsc::NeutronOsc(), evgen::NucleonDecay::NucleonDecay(), opdet::OpMCDigi::OpMCDigi(), opdet::OptDetDigitizer::OptDetDigitizer(), phot::PhotonLibraryPropagation::PhotonLibraryPropagation(), detsim::SimDriftElectrons::SimDriftElectrons(), evgen::SingleGen::SingleGen(), evgen::SNNueAr40CCGen::SNNueAr40CCGen(), ToyOneShowerGen::ToyOneShowerGen(), and trkf::Track3DKalman::Track3DKalman().
|
inherited |
Definition at line 32 of file EngineCreator.cc.
References art::EngineCreator::rng().
|
inherited |
Definition at line 40 of file EngineCreator.cc.
References art::EngineCreator::rng().
|
protectedinherited |
Definition at line 114 of file EDAnalyzer.cc.
References art::EDAnalyzer::current_context_.
Referenced by art::EDAnalyzer::workerType().
|
private |
Definition at line 357 of file OpticalRecoAna_module.cc.
References fFlash_match_vector, fFlashID, fFlashTime, fFlashY, fFlashYWidth, fFlashZ, fFlashZWidth, fMatchTree_PF, fParticleID, fParticleTime, fParticleVx, fParticleVy, fParticleVz, recob::OpFlash::Time(), and update_MC_particle_time().
|
private |
Definition at line 179 of file OpticalRecoAna_module.cc.
References sim::ParticleList::begin(), simb::MCParticle::E(), sim::ParticleList::end(), fKineticEnergyMin, ipart, simb::MCParticle::Mass(), and simb::MCParticle::PdgCode().
Referenced by analyze().
|
private |
Definition at line 174 of file OpticalRecoAna_module.cc.
References simb::MCParticle::TrackId(), and cheat::ParticleInventoryService::TrackIdToMCTruth_P().
Referenced by match_flashes_to_particles().
|
inherited |
Definition at line 49 of file EngineCreator.cc.
References fhicl::ParameterSet::get().
Referenced by art::MixFilter< T >::initEngine_().
|
inlineinherited |
Definition at line 61 of file EventObserverBase.h.
References art::detail::CachedProducts::getOneTriggerResults(), and art::EventObserverBase::selectors_.
Referenced by art::OutputModule::doWriteEvent().
|
private |
Definition at line 276 of file OpticalRecoAna_module.cc.
References fFlash_match_vector, fFlashID, fFlashOnBeamTime, fFlashPE, fFlashTime, fFlashTimeWidth, fFlashY, fFlashYWidth, fFlashZ, fFlashZWidth, fMatchIndex, fMatchIndex_NotNu, fMatchTree_PF, fMatchTree_PF_NotNu, fParticle_match_vector, fParticleID, fParticleMother, fParticleTime, fParticleTrackID, fParticleVx, fParticleVy, fParticleVz, fPEMin, fTimeDiff, fTimeDiff_fine, fTimeMatchMax, get_MC_particle_origin(), simb::kBeamNeutrino, recob::OpFlash::Time(), and update_MC_particle_time().
Referenced by analyze().
|
private |
Definition at line 406 of file OpticalRecoAna_module.cc.
References compare_particle_and_track(), fParticle_match_vector, and fTrack_match_vector.
|
private |
Definition at line 245 of file OpticalRecoAna_module.cc.
References compare_track_and_flash(), fFlash_match_vector, fPEMin, and fTrack_match_vector.
|
inherited |
|
inherited |
Definition at line 190 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 205 of file Consumer.h.
|
inherited |
|
inherited |
Definition at line 215 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inlineinherited |
Definition at line 25 of file EventObserverBase.h.
|
staticinherited |
Definition at line 76 of file Consumer.cc.
Referenced by art::RootOutput::beginSubRun(), art::OutputModule::doBeginRun(), art::OutputModule::doBeginSubRun(), art::OutputModule::doEndRun(), art::OutputModule::doEndSubRun(), art::ProducingService::doPostReadEvent(), art::ProducingService::doPostReadRun(), art::ProducingService::doPostReadSubRun(), art::OutputModule::doWriteEvent(), art::ProcessPackage< L >::postScheduleSignal(), art::BeginEndPackage< Level::Run >::Begin::postScheduleSignal(), art::BeginEndPackage< Level::Run >::End::postScheduleSignal(), art::BeginEndPackage< Level::SubRun >::Begin::postScheduleSignal(), art::BeginEndPackage< Level::SubRun >::End::postScheduleSignal(), art::ProcessPackage< L >::preScheduleSignal(), art::BeginEndPackage< Level::Run >::Begin::preScheduleSignal(), art::BeginEndPackage< Level::SubRun >::Begin::preScheduleSignal(), art::EventProcessor::readEvent(), art::EventProcessor::readRun(), art::EmptyEvent::readRun_(), art::EventProcessor::readSubRun(), and art::EmptyEvent::readSubRun_().
|
protectedinherited |
Definition at line 89 of file Consumer.cc.
References fhicl::ParameterSet::get_if_present().
Referenced by art::EDProducer::doBeginJob(), art::EDFilter::doBeginJob(), and art::EDAnalyzer::doBeginJob().
|
inlineinherited |
Definition at line 41 of file EventObserverBase.h.
References art::EventObserverBase::process_name_.
Referenced by art::FileDumperOutput::printPrincipal(), and art::RootOutput::RootOutput().
|
inlineinherited |
Definition at line 33 of file EventObserverBase.h.
|
inlineinherited |
Definition at line 56 of file EventObserverBase.h.
References art::EventObserverBase::selector_config_id_.
Referenced by art::RootOutputFile::writeOne().
|
protectedinherited |
Definition at line 125 of file Consumer.cc.
Referenced by art::EDProducer::doEndJob(), art::EDFilter::doEndJob(), art::EDAnalyzer::doEndJob(), and art::RootOutput::endJob().
|
private |
Definition at line 216 of file OpticalRecoAna_module.cc.
References e, simb::MCParticle::NumberTrajectoryPoints(), geo::GeometryCore::PositionToTPC(), simb::MCParticle::T(), simb::MCParticle::Vx(), simb::MCParticle::Vy(), and simb::MCParticle::Vz().
Referenced by FillMatchTree_PF(), and match_flashes_to_particles().
|
protectedinherited |
Definition at line 101 of file Consumer.cc.
References art::errors::ProductRegistrationFailure.
|
inlineinherited |
Definition at line 46 of file EventObserverBase.h.
References art::EventObserverBase::wantAllEvents_.
Referenced by art::EDAnalyzer::doEvent(), art::OutputModule::doEvent(), art::OutputModule::doWriteEvent(), art::RootOutput::RootOutput(), and art::OutputWorker::wantAllEvents().
|
inlineinherited |
Definition at line 51 of file EventObserverBase.h.
References art::EventObserverBase::selectors_, and art::detail::CachedProducts::wantEvent().
Referenced by art::EDAnalyzer::doEvent(), art::OutputModule::doEvent(), and art::OutputModule::doWriteEvent().
|
inlineinherited |
Definition at line 109 of file EDAnalyzer.h.
References art::EDAnalyzer::currentContext().
|
private |
Definition at line 106 of file OpticalRecoAna.h.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 60 of file OpticalRecoAna.h.
Referenced by analyze(), FillMatchTree_PF(), match_flashes_to_particles(), match_flashes_to_tracks(), and OpticalRecoAna().
|
private |
Definition at line 114 of file OpticalRecoAna.h.
Referenced by beginJob(), FillMatchTree_PF(), and match_flashes_to_particles().
|
private |
Definition at line 54 of file OpticalRecoAna.h.
Referenced by analyze(), and OpticalRecoAna().
|
private |
Definition at line 122 of file OpticalRecoAna.h.
Referenced by beginJob(), and match_flashes_to_particles().
|
private |
Definition at line 121 of file OpticalRecoAna.h.
Referenced by beginJob(), and match_flashes_to_particles().
|
private |
Definition at line 115 of file OpticalRecoAna.h.
Referenced by beginJob(), FillMatchTree_PF(), and match_flashes_to_particles().
|
private |
Definition at line 116 of file OpticalRecoAna.h.
Referenced by beginJob(), and match_flashes_to_particles().
|
private |
Definition at line 117 of file OpticalRecoAna.h.
Referenced by beginJob(), FillMatchTree_PF(), and match_flashes_to_particles().
|
private |
Definition at line 119 of file OpticalRecoAna.h.
Referenced by beginJob(), FillMatchTree_PF(), and match_flashes_to_particles().
|
private |
Definition at line 118 of file OpticalRecoAna.h.
Referenced by beginJob(), FillMatchTree_PF(), and match_flashes_to_particles().
|
private |
Definition at line 120 of file OpticalRecoAna.h.
Referenced by FillMatchTree_PF(), and match_flashes_to_particles().
|
private |
Definition at line 56 of file OpticalRecoAna.h.
Referenced by get_MC_particle_list(), and OpticalRecoAna().
|
private |
Definition at line 123 of file OpticalRecoAna.h.
Referenced by beginJob(), and match_flashes_to_particles().
|
private |
Definition at line 124 of file OpticalRecoAna.h.
Referenced by beginJob(), and match_flashes_to_particles().
|
private |
Definition at line 103 of file OpticalRecoAna.h.
Referenced by beginJob(), FillMatchTree_PF(), and match_flashes_to_particles().
|
private |
Definition at line 104 of file OpticalRecoAna.h.
Referenced by beginJob(), and match_flashes_to_particles().
|
private |
Definition at line 101 of file OpticalRecoAna.h.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 62 of file OpticalRecoAna.h.
Referenced by analyze(), match_flashes_to_particles(), and OpticalRecoAna().
|
private |
Definition at line 107 of file OpticalRecoAna.h.
Referenced by beginJob(), FillMatchTree_PF(), and match_flashes_to_particles().
|
private |
Definition at line 108 of file OpticalRecoAna.h.
Referenced by beginJob(), and match_flashes_to_particles().
|
private |
Definition at line 110 of file OpticalRecoAna.h.
Referenced by beginJob(), FillMatchTree_PF(), and match_flashes_to_particles().
|
private |
Definition at line 109 of file OpticalRecoAna.h.
Referenced by beginJob(), and match_flashes_to_particles().
|
private |
Definition at line 111 of file OpticalRecoAna.h.
Referenced by beginJob(), FillMatchTree_PF(), and match_flashes_to_particles().
|
private |
Definition at line 112 of file OpticalRecoAna.h.
Referenced by beginJob(), FillMatchTree_PF(), and match_flashes_to_particles().
|
private |
Definition at line 113 of file OpticalRecoAna.h.
Referenced by beginJob(), FillMatchTree_PF(), and match_flashes_to_particles().
|
private |
Definition at line 57 of file OpticalRecoAna.h.
Referenced by match_flashes_to_particles(), match_flashes_to_tracks(), and OpticalRecoAna().
|
private |
Definition at line 105 of file OpticalRecoAna.h.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 99 of file OpticalRecoAna.h.
Referenced by beginJob(), and match_flashes_to_particles().
|
private |
Definition at line 100 of file OpticalRecoAna.h.
Referenced by beginJob(), and match_flashes_to_particles().
|
private |
Definition at line 58 of file OpticalRecoAna.h.
Referenced by match_flashes_to_particles(), and OpticalRecoAna().
|
private |
Definition at line 61 of file OpticalRecoAna.h.
Referenced by match_flashes_to_particles(), match_flashes_to_tracks(), and OpticalRecoAna().
|
private |
Definition at line 55 of file OpticalRecoAna.h.
Referenced by OpticalRecoAna().