LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Public Types | |
using | ModuleType = EDProducer |
template<typename UserConfig , typename KeysToIgnore = void> | |
using | Table = Modifier::Table< UserConfig, KeysToIgnore > |
Public Member Functions | |
Track3DKalmanHit (fhicl::ParameterSet const &pset) | |
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) |
void | fillProductDescriptions () |
void | registerProducts (ProductDescriptions &productsToRegister) |
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 | |
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 | produce (art::Event &e) override |
void | beginJob () override |
Begin job method. More... | |
void | endJob () override |
End job method. More... | |
void | prepareForInput () |
KalmanInputs | getInput (const art::Event &evt) const |
Hits | getClusteredHits (const art::Event &evt) const |
Fill a collection using clustered hits. More... | |
KalmanInputs | getPFParticleStuff (const art::Event &evt) const |
If UsePFParticles is true use this method to fill in hits. More... | |
Hits | getAllHits (const art::Event &evt) const |
If both UseClusteredHits and UsePFParticles is false use this method to fill in hits. More... | |
void | createOutputs (const art::Event &evt, detinfo::DetectorPropertiesData const &detProp, const std::vector< KalmanOutput > &outputs, const KalmanInputs &inputs, std::vector< recob::Track > &tracks, std::vector< recob::SpacePoint > &spts, art::Assns< recob::Track, recob::Hit > &th_assn, art::Assns< recob::Track, recob::Hit, recob::TrackHitMeta > &thm_assn, art::Assns< recob::Track, recob::SpacePoint > &tsp_assn, art::Assns< recob::SpacePoint, recob::Hit > &sph_assn, art::Assns< recob::PFParticle, recob::Track > &pfPartTrack_assns) |
void | fillHistograms (std::vector< KalmanOutput > &outputs) |
Fill Histograms method. More... | |
Private Attributes | |
bool | fHist |
Make histograms. More... | |
bool | fUseClusterHits |
Use clustered hits as input. More... | |
bool | fUsePFParticleHits |
Use PFParticle hits as input. More... | |
bool | fUsePFParticleSeeds |
Use PFParticle seeds. More... | |
std::string | fHitModuleLabel |
Unclustered Hits. More... | |
std::string | fClusterModuleLabel |
Clustered Hits. More... | |
std::string | fPFParticleModuleLabel |
PFParticle label. More... | |
Track3DKalmanHitAlg | fTKHAlg |
Track3DKalmanHit algorithm. More... | |
SpacePointAlg | fSpacePointAlg |
Space point algorithm. More... | |
TH1F * | fHIncChisq |
Incremental chisquare. More... | |
TH1F * | fHPull |
Hit pull. More... | |
int | fNumEvent |
Number of events seen. More... | |
Definition at line 73 of file Track3DKalmanHit_module.cc.
|
inherited |
Definition at line 17 of file EDProducer.h.
|
inherited |
Definition at line 26 of file Producer.h.
|
explicit |
Constructor.
Arguments:
p - Fcl parameters.
Definition at line 131 of file Track3DKalmanHit_module.cc.
References fClusterModuleLabel, fHIncChisq, fHist, fHitModuleLabel, fHPull, fNumEvent, fPFParticleModuleLabel, fSpacePointAlg, fTKHAlg, fUseClusterHits, fUsePFParticleHits, fUsePFParticleSeeds, and art::ProductRegistryHelper::produces().
|
overrideprivatevirtual |
Begin job method.
Reimplemented from art::EDProducer.
Definition at line 174 of file Track3DKalmanHit_module.cc.
References dir, fHIncChisq, fHist, and fHPull.
|
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 371 of file Track3DKalmanHit_module.cc.
References art::Assns< L, R, D >::addSingle(), trkf::SpacePointAlg::fillSpacePoints(), fSpacePointAlg, fUsePFParticleHits, trkf::SpacePointAlg::getAssociatedHits(), art::ProductRetriever::getProductID(), recob::Track::NumberTrajectoryPoints(), art::ProductRetriever::productGetter(), art::PtrVector< T >::size(), and track.
Referenced by produce().
|
inherited |
Definition at line 22 of file Producer.cc.
References art::detail::Producer::beginJobWithFrame(), and art::detail::Producer::setupQueues().
|
inherited |
Definition at line 65 of file Producer.cc.
References art::detail::Producer::beginRunWithFrame(), art::RangeSet::forRun(), art::RunPrincipal::makeRun(), r, art::RunPrincipal::runID(), and art::ModuleContext::scheduleID().
|
inherited |
Definition at line 85 of file Producer.cc.
References art::detail::Producer::beginSubRunWithFrame(), art::RangeSet::forSubRun(), art::SubRunPrincipal::makeSubRun(), art::ModuleContext::scheduleID(), and art::SubRunPrincipal::subRunID().
|
inherited |
Definition at line 30 of file Producer.cc.
References art::detail::Producer::endJobWithFrame().
|
inherited |
Definition at line 75 of file Producer.cc.
References art::detail::Producer::endRunWithFrame(), art::RunPrincipal::makeRun(), r, art::ModuleContext::scheduleID(), and art::Principal::seenRanges().
|
inherited |
Definition at line 95 of file Producer.cc.
References art::detail::Producer::endSubRunWithFrame(), art::SubRunPrincipal::makeSubRun(), art::ModuleContext::scheduleID(), and art::Principal::seenRanges().
|
inherited |
Definition at line 105 of file Producer.cc.
References art::detail::Producer::checkPutProducts_, e, art::EventPrincipal::makeEvent(), art::detail::Producer::produceWithFrame(), and art::ModuleContext::scheduleID().
|
inherited |
Definition at line 44 of file Producer.cc.
References art::detail::Producer::respondToCloseInputFileWithFrame().
|
inherited |
Definition at line 58 of file Producer.cc.
References art::detail::Producer::respondToCloseOutputFilesWithFrame().
|
inherited |
Definition at line 37 of file Producer.cc.
References art::detail::Producer::respondToOpenInputFileWithFrame().
|
inherited |
Definition at line 51 of file Producer.cc.
References art::detail::Producer::respondToOpenOutputFilesWithFrame().
|
overrideprivatevirtual |
End job method.
Reimplemented from art::EDProducer.
Definition at line 235 of file Track3DKalmanHit_module.cc.
References fNumEvent.
|
private |
Fill Histograms method.
Definition at line 461 of file Track3DKalmanHit_module.cc.
References fHIncChisq, fHPull, trkf::KHitTrack::getHit(), trkf::KHit< N >::getResError(), trkf::KHit< N >::getResVector(), and trkf::KGTrack::getTrackMap().
Referenced by produce().
|
inherited |
Definition at line 10 of file Modifier.cc.
References art::ProductRegistryHelper::fillDescriptions(), and art::ModuleBase::moduleDescription().
|
private |
If both UseClusteredHits and UsePFParticles is false use this method to fill in hits.
Definition at line 281 of file Track3DKalmanHit_module.cc.
References fHitModuleLabel, art::ProductRetriever::getByLabel(), hits(), art::Handle< T >::isValid(), art::PtrVector< T >::push_back(), and art::PtrVector< T >::reserve().
Referenced by getInput().
|
private |
Fill a collection using clustered hits.
Definition at line 262 of file Track3DKalmanHit_module.cc.
References art::PtrVector< T >::end(), fClusterModuleLabel, art::ProductRetriever::getByLabel(), hits(), art::PtrVector< T >::insert(), and art::Handle< T >::isValid().
Referenced by getInput().
|
inherited |
Definition at line 43 of file ModuleBase.cc.
References art::ModuleBase::collector_, and art::ConsumesCollector::getConsumables().
|
private |
Definition at line 254 of file Track3DKalmanHit_module.cc.
References fUseClusterHits, fUsePFParticleHits, getAllHits(), getClusteredHits(), and getPFParticleStuff().
Referenced by produce().
|
private |
If UsePFParticles is true use this method to fill in hits.
Definition at line 298 of file Track3DKalmanHit_module.cc.
References art::PtrVector< T >::end(), fClusterModuleLabel, fPFParticleModuleLabel, fUsePFParticleSeeds, art::ProductRetriever::getByLabel(), hits(), trkf::KalmanInput::hits, art::PtrVector< T >::insert(), art::Handle< T >::isValid(), trkf::KalmanInput::pfPartPtr, trkf::KalmanInput::seedhits, tca::seeds, and trkf::KalmanInput::seeds.
Referenced by getInput().
|
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().
|
private |
Definition at line 243 of file Track3DKalmanHit_module.cc.
References trkf::SpacePointAlg::clearHitMap(), and fSpacePointAlg.
Referenced by produce().
|
overrideprivatevirtual |
Produce method.
Implements art::EDProducer.
Definition at line 189 of file Track3DKalmanHit_module.cc.
References trkf::SpacePointAlg::clearHitMap(), createOutputs(), fHist, fillHistograms(), fNumEvent, fSpacePointAlg, fTKHAlg, getInput(), trkf::Track3DKalmanHitAlg::makeTracks(), prepareForInput(), and art::Event::put().
|
inherited |
Definition at line 16 of file Modifier.cc.
References art::ModuleBase::moduleDescription(), and art::ProductRegistryHelper::registerProducts().
|
inherited |
|
inherited |
Definition at line 49 of file ModuleBase.cc.
References art::ModuleBase::collector_, and art::ConsumesCollector::sortConsumables().
|
private |
Clustered Hits.
Definition at line 109 of file Track3DKalmanHit_module.cc.
Referenced by getClusteredHits(), getPFParticleStuff(), and Track3DKalmanHit().
|
private |
Incremental chisquare.
Definition at line 115 of file Track3DKalmanHit_module.cc.
Referenced by beginJob(), fillHistograms(), and Track3DKalmanHit().
|
private |
Make histograms.
Definition at line 104 of file Track3DKalmanHit_module.cc.
Referenced by beginJob(), produce(), and Track3DKalmanHit().
|
private |
Unclustered Hits.
Definition at line 108 of file Track3DKalmanHit_module.cc.
Referenced by getAllHits(), and Track3DKalmanHit().
|
private |
Hit pull.
Definition at line 116 of file Track3DKalmanHit_module.cc.
Referenced by beginJob(), fillHistograms(), and Track3DKalmanHit().
|
private |
Number of events seen.
Definition at line 119 of file Track3DKalmanHit_module.cc.
Referenced by endJob(), produce(), and Track3DKalmanHit().
|
private |
PFParticle label.
Definition at line 110 of file Track3DKalmanHit_module.cc.
Referenced by getPFParticleStuff(), and Track3DKalmanHit().
|
private |
Space point algorithm.
Definition at line 112 of file Track3DKalmanHit_module.cc.
Referenced by createOutputs(), prepareForInput(), produce(), and Track3DKalmanHit().
|
private |
Track3DKalmanHit algorithm.
Definition at line 111 of file Track3DKalmanHit_module.cc.
Referenced by produce(), and Track3DKalmanHit().
|
private |
Use clustered hits as input.
Definition at line 105 of file Track3DKalmanHit_module.cc.
Referenced by getInput(), and Track3DKalmanHit().
|
private |
Use PFParticle hits as input.
Definition at line 106 of file Track3DKalmanHit_module.cc.
Referenced by createOutputs(), getInput(), and Track3DKalmanHit().
|
private |
Use PFParticle seeds.
Definition at line 107 of file Track3DKalmanHit_module.cc.
Referenced by getPFParticleStuff(), and Track3DKalmanHit().