Validate Hough transform algorithms. More...
Public Types | |
using | WorkerType = WorkerT< EDAnalyzer > |
using | ModuleType = EDAnalyzer |
Public Member Functions | |
HoughValidate (fhicl::ParameterSet const &p) | |
virtual | ~HoughValidate () |
void | beginJob () |
void | analyze (const art::Event &e) |
void | reconfigure (const fhicl::ParameterSet &p) |
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 Member Functions | |
void | HoughLineToDetector (const rb::HoughResult *hr, unsigned int hrIdx, double *pz1, double *px1, double *pz2, double *px2) |
Private Attributes | |
TTree * | fNtTree |
HValidateNt * | fNt |
std::string | fMCLabel |
Label for process that made MCTruth. More... | |
std::string | fSliceLabel |
Label for process that made Cluster. More... | |
std::string | fHoughResultLabel |
Label for process that made HoughResult. More... | |
bool | fIsMC |
Flag for is MC or not. More... | |
std::string | fCAFLabel |
label for the process that made the standard records More... | |
bool | fApplyCAFCuts |
should we apply the caf level cuts? More... | |
int | fCutType |
what cuts to apply (see CAFCutter.h) More... | |
recovalid::CAFCutter | fCAFCutter |
the CAFCutter helper class More... | |
unsigned int | fMinHit |
Slices must have at least this many hits. More... | |
unsigned int | fMinHitX |
Minimum hits in x-view/slice. More... | |
unsigned int | fMinHitY |
Minumum hits in y-view/slice. More... | |
TH1I * | fNumHLX |
TH1I * | fNumHLY |
TH1F * | fThreshX |
TH1F * | fThreshY |
TH1I * | fOnlineX [4] |
TH1I * | fOnlineY [4] |
TH1F * | fRhoX [4] |
TH1F * | fRhoY [4] |
TH1F * | fThetaX [4] |
TH1F * | fThetaY [4] |
TH1F * | fPeakX [4] |
TH1F * | fPeakY [4] |
TH1F * | fPeakThreshX [4] |
TH1F * | fPeakThreshY [4] |
TH1F * | fPerpDX [4] |
TH1F * | fPerpDY [4] |
Validate Hough transform algorithms.
Definition at line 52 of file HoughValidate_module.cc.
|
inherited |
Definition at line 39 of file EDAnalyzer.h.
|
inherited |
Definition at line 38 of file EDAnalyzer.h.
|
explicit |
Definition at line 121 of file HoughValidate_module.cc.
References reconfigure().
|
virtual |
Definition at line 245 of file HoughValidate_module.cc.
void hough::HoughValidate::analyze | ( | const art::Event & | e | ) |
Require a minimum number of hits in each view
Definition at line 301 of file HoughValidate_module.cc.
References rb::Cluster::AllCells(), ana::assert(), simb::MCNeutrino::CCNC(), getBrightness::cell, geo::GeometryBase::CountCellsOnLineFast(), DEFINE_ART_MODULE(), geo::DsqrToLine(), simb::MCParticle::E(), art::EventID::event(), hough::HValidateNt::evt, fApplyCAFCuts, fCAFCutter, fCAFLabel, fCutType, fHoughResultLabel, fIsMC, fMCLabel, fMinHit, fMinHitX, fMinHitY, fNt, fNtTree, fNumHLX, fNumHLY, fOnlineX, fOnlineY, rb::HoughResult::fPeak, fPeakThreshX, fPeakThreshY, fPeakX, fPeakY, fPerpDX, fPerpDY, fRhoX, fRhoY, fSliceLabel, fThetaX, fThetaY, fThreshX, fThreshY, rb::HoughResult::fView, geom(), art::DataViewImpl::getByLabel(), HoughLineToDetector(), MECModelEnuComparisons::i, art::Event::id(), rb::IsFiltered(), rb::Cluster::IsNoise(), geo::kX, geo::kY, hough::HValidateNt::mcdp1x, hough::HValidateNt::mcdp1y, hough::HValidateNt::mcdp2x, hough::HValidateNt::mcdp2y, hough::HValidateNt::mcdp3x, hough::HValidateNt::mcdp3y, hough::HValidateNt::mcdp4x, hough::HValidateNt::mcdp4y, getGoodRuns4SAM::n, rb::Cluster::NCell(), simb::MCNeutrino::Nu(), hough::HValidateNt::nuCCNC, hough::HValidateNt::nuE, hough::HValidateNt::numHLX, hough::HValidateNt::numHLY, hough::HValidateNt::nupdg, hough::HValidateNt::nuX, hough::HValidateNt::nuY, hough::HValidateNt::nuZ, rb::Cluster::NXCell(), rb::Cluster::NYCell(), hough::HValidateNt::on1x, hough::HValidateNt::on1y, hough::HValidateNt::on2x, hough::HValidateNt::on2y, hough::HValidateNt::on3x, hough::HValidateNt::on3y, hough::HValidateNt::on4x, hough::HValidateNt::on4y, recovalid::CAFCutter::passCuts(), simb::MCParticle::PdgCode(), hough::HValidateNt::peak1x, hough::HValidateNt::peak1y, hough::HValidateNt::peak2x, hough::HValidateNt::peak2y, hough::HValidateNt::peak3x, hough::HValidateNt::peak3y, hough::HValidateNt::peak4x, hough::HValidateNt::peak4y, hough::HValidateNt::perpdist1x, hough::HValidateNt::perpdist1y, hough::HValidateNt::perpdist2x, hough::HValidateNt::perpdist2y, hough::HValidateNt::perpdist3x, hough::HValidateNt::perpdist3y, hough::HValidateNt::perpdist4x, hough::HValidateNt::perpdist4y, NDAPDHVSetting::plane, hough::HValidateNt::rho1x, hough::HValidateNt::rho1y, hough::HValidateNt::rho2x, hough::HValidateNt::rho2y, hough::HValidateNt::rho3x, hough::HValidateNt::rho3y, hough::HValidateNt::rho4x, hough::HValidateNt::rho4y, hough::HValidateNt::run, art::Event::run(), rb::HoughResult::SlopeIcept(), std::sqrt(), hough::HValidateNt::subrun, art::Event::subRun(), hough::HValidateNt::theta1x, hough::HValidateNt::theta1y, hough::HValidateNt::theta2x, hough::HValidateNt::theta2y, hough::HValidateNt::theta3x, hough::HValidateNt::theta3y, hough::HValidateNt::theta4x, hough::HValidateNt::theta4y, hough::HValidateNt::threshx, hough::HValidateNt::threshy, simb::MCParticle::Vx(), simb::MCParticle::Vy(), simb::MCParticle::Vz(), x1, and submit_syst::x2.
|
virtual |
Reimplemented from art::EDAnalyzer.
Definition at line 129 of file HoughValidate_module.cc.
References fNt, fNtTree, fNumHLX, fNumHLY, fOnlineX, fOnlineY, fPeakThreshX, fPeakThreshY, fPeakX, fPeakY, fPerpDX, fPerpDY, fRhoX, fRhoY, fThetaX, fThetaY, fThreshX, fThreshY, MECModelEnuComparisons::i, art::TFileDirectory::make(), plotROC::title, and febshutoff_auto::val.
|
inlineprotectedinherited |
Definition at line 79 of file EventObserverBase.h.
References art::EventObserverBase::selectors_.
|
inherited |
|
inherited |
Definition at line 146 of file Consumer.h.
References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.
|
inherited |
|
inherited |
|
inherited |
Definition at line 171 of file Consumer.h.
References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.
|
inherited |
Referenced by evgen::CosmicPionGen::CosmicPionGen(), evgen::CosmicsGen::CosmicsGen(), fuzz::FuzzyKVertex::FuzzyKVertex(), g4n::G4Gen::G4Gen(), photrans::ImprovedTransport::ImprovedTransport(), art::MixFilter< T >::initEngine_(), evgen::IsoGen::IsoGen(), rsim::MakeNoiseSpectrumFile::MakeNoiseSpectrumFile(), photrans::PhotonSystRewriter::PhotonSystRewriter(), photrans::PhotonTransport::PhotonTransport(), rsim::ReadoutSim::ReadoutSim(), evgen::SingleGen::SingleGen(), and evgen::SupernovaGen::SupernovaGen().
|
inherited |
|
inherited |
|
protectedinherited |
Referenced by art::EDAnalyzer::workerType().
|
inherited |
Referenced by art::MixFilter< T >::initEngine_().
|
inlineinherited |
Definition at line 61 of file EventObserverBase.h.
References art::detail::CachedProducts::getOneTriggerResults(), and art::EventObserverBase::selectors_.
|
private |
Definition at line 250 of file HoughValidate_module.cc.
References geo::GeometryBase::DetHalfHeight(), geo::GeometryBase::DetHalfWidth(), geo::GeometryBase::DetLength(), rb::HoughResult::fView, geom(), geo::kX, rb::HoughResult::SlopeIcept(), x1, and submit_syst::x2.
Referenced by analyze().
|
inherited |
|
inherited |
Definition at line 189 of file Consumer.h.
References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.
|
inherited |
|
inherited |
|
inherited |
Definition at line 214 of file Consumer.h.
References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.
|
inlineinherited |
Definition at line 25 of file EventObserverBase.h.
|
staticinherited |
Referenced by art::RootOutput::beginSubRun(), 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::EmptyEvent::readRun_(), and art::EmptyEvent::readSubRun_().
|
protectedinherited |
|
inlineinherited |
Definition at line 41 of file EventObserverBase.h.
References art::EventObserverBase::process_name_.
Referenced by art::FileDumperOutput::printPrincipal(), and art::RootOutput::RootOutput().
void hough::HoughValidate::reconfigure | ( | const fhicl::ParameterSet & | p | ) |
Definition at line 228 of file HoughValidate_module.cc.
References fApplyCAFCuts, fCAFLabel, fCutType, fHoughResultLabel, fIsMC, fMCLabel, fMinHit, fMinHitX, fMinHitY, fSliceLabel, fhicl::ParameterSet::get(), and string.
Referenced by HoughValidate().
|
inlineinherited |
|
inlineinherited |
Definition at line 56 of file EventObserverBase.h.
References art::EventObserverBase::selector_config_id_.
|
protectedinherited |
Referenced by art::RootOutput::endJob().
|
protectedinherited |
|
inlineinherited |
Definition at line 46 of file EventObserverBase.h.
References art::EventObserverBase::wantAllEvents_.
Referenced by art::RootOutput::RootOutput().
|
inlineinherited |
Definition at line 51 of file EventObserverBase.h.
References art::EventObserverBase::selectors_, and art::detail::CachedProducts::wantEvent().
|
inlineinherited |
Definition at line 109 of file EDAnalyzer.h.
References art::EDAnalyzer::currentContext().
|
private |
should we apply the caf level cuts?
Definition at line 80 of file HoughValidate_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
the CAFCutter helper class
Definition at line 83 of file HoughValidate_module.cc.
Referenced by analyze().
|
private |
label for the process that made the standard records
Definition at line 79 of file HoughValidate_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
what cuts to apply (see CAFCutter.h)
Definition at line 81 of file HoughValidate_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Label for process that made HoughResult.
Definition at line 76 of file HoughValidate_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Flag for is MC or not.
Definition at line 77 of file HoughValidate_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Label for process that made MCTruth.
Definition at line 74 of file HoughValidate_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Slices must have at least this many hits.
Definition at line 85 of file HoughValidate_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Minimum hits in x-view/slice.
Definition at line 86 of file HoughValidate_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Minumum hits in y-view/slice.
Definition at line 87 of file HoughValidate_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 72 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 71 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 90 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 91 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 96 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 97 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 108 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 109 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 105 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 106 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 111 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 112 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 99 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 100 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Label for process that made Cluster.
Definition at line 75 of file HoughValidate_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 102 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 103 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 93 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 94 of file HoughValidate_module.cc.
Referenced by analyze(), and beginJob().