LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
PFParticleHitDumper class. More...
Public Types | |
using | WorkerType = WorkerT< EDAnalyzer > |
using | ModuleType = EDAnalyzer |
Public Member Functions | |
PFParticleHitDumper (fhicl::ParameterSet const &pset) | |
Constructor. More... | |
virtual | ~PFParticleHitDumper () |
Destructor. More... | |
void | beginJob () |
void | endJob () |
void | analyze (const art::Event &evt) |
void | reconfigure (fhicl::ParameterSet const &pset) |
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 | FillRecoTracks (const PFParticlesToTracks &particlesToTracks) |
Store 3D track hits. More... | |
void | FillReco3D (const PFParticleVector &particleVector, const PFParticlesToSpacePoints &particlesToSpacePoints, const SpacePointsToHits &spacePointsToHits) |
Store 3D hits. More... | |
void | FillReco2D (const HitVector &hitVector, const HitsToPFParticles &hitsToParticles) |
Store 2D hits. More... | |
void | FillAssociated2DHits (const art::Event &evt, const PFParticleVector &particleVector, const PFParticlesToHits &particlesToHits, const PFParticlesToHits &particlesToHitsClusters, const PFParticlesToTracks &particlesToTracks, const TracksToHits &tracksToHits, const PFParticlesToShowers &particlesToShowers, const ShowersToHits &showersToHits) |
Store number of 2D hits associated to PFParticle in different ways. More... | |
void | FillRecoWires (const WireVector &wireVector) |
Store raw data. More... | |
double | GetUVW (const geo::WireID &wireID) const |
Conversion from wire ID to U/V/W coordinate. More... | |
double | YZtoU (const unsigned int cstat, const unsigned int tpc, const double y, const double z) const |
Convert from (Y,Z) to U coordinate. More... | |
double | YZtoV (const unsigned int cstat, const unsigned int tpc, const double y, const double z) const |
Convert from (Y,Z) to V coordinate. More... | |
Private Attributes | |
TTree * | m_pRecoTracks |
TTree * | m_pReco3D |
TTree * | m_pReco2D |
TTree * | m_pRecoComparison |
TTree * | m_pRecoWire |
int | m_run |
int | m_event |
int | m_particle |
int | m_primary |
int | m_pdgcode |
int | m_cstat |
int | m_tpc |
int | m_plane |
int | m_wire |
double | m_u |
double | m_v |
double | m_w |
double | m_x |
double | m_y |
double | m_z |
double | m_q |
int | m_hitsFromSpacePoints |
int | m_hitsFromClusters |
int | m_hitsFromTrackOrShower |
std::string | m_calwireLabel |
std::string | m_hitfinderLabel |
std::string | m_clusterLabel |
std::string | m_spacepointLabel |
std::string | m_particleLabel |
std::string | m_trackLabel |
std::string | m_showerLabel |
bool | m_storeWires |
bool | m_printDebug |
switch for print statements (TODO: use message service!) More... | |
PFParticleHitDumper class.
Definition at line 25 of file PFParticleHitDumper_module.cc.
|
inherited |
Definition at line 39 of file EDAnalyzer.h.
|
inherited |
Definition at line 38 of file EDAnalyzer.h.
lar_pandora::PFParticleHitDumper::PFParticleHitDumper | ( | fhicl::ParameterSet const & | pset | ) |
Constructor.
pset |
Definition at line 196 of file PFParticleHitDumper_module.cc.
References reconfigure().
|
virtual |
void lar_pandora::PFParticleHitDumper::analyze | ( | const art::Event & | evt | ) |
Definition at line 296 of file PFParticleHitDumper_module.cc.
References lar_pandora::LArPandoraHelper::BuildPFParticleHitMaps(), lar_pandora::LArPandoraHelper::CollectHits(), lar_pandora::LArPandoraHelper::CollectPFParticles(), lar_pandora::LArPandoraHelper::CollectShowers(), lar_pandora::LArPandoraHelper::CollectSpacePoints(), lar_pandora::LArPandoraHelper::CollectTracks(), lar_pandora::LArPandoraHelper::CollectWires(), art::EventID::event(), FillAssociated2DHits(), FillReco2D(), FillReco3D(), FillRecoTracks(), FillRecoWires(), art::Event::id(), m_calwireLabel, m_clusterLabel, m_cstat, m_event, m_hitfinderLabel, m_particle, m_particleLabel, m_pdgcode, m_plane, m_primary, m_printDebug, m_q, m_run, m_showerLabel, m_spacepointLabel, m_storeWires, m_tpc, m_trackLabel, m_u, m_v, m_w, m_wire, m_x, m_y, m_z, and art::Event::run().
|
virtual |
Reimplemented from art::EDAnalyzer.
Definition at line 224 of file PFParticleHitDumper_module.cc.
References m_cstat, m_event, m_hitsFromClusters, m_hitsFromSpacePoints, m_hitsFromTrackOrShower, m_particle, m_pdgcode, m_plane, m_pReco2D, m_pReco3D, m_pRecoComparison, m_pRecoTracks, m_pRecoWire, m_primary, m_q, m_run, m_tpc, m_u, m_v, m_w, m_wire, m_x, m_y, m_z, 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().
|
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().
|
virtual |
Reimplemented from art::EDAnalyzer.
Definition at line 290 of file PFParticleHitDumper_module.cc.
|
private |
Store number of 2D hits associated to PFParticle in different ways.
particleVector | the input vector of PFParticles |
particlesToHits | mapping between PFParticles and 2D hits through space points |
particlesToHitsClusters | mapping between PFParticles and 2D hits through clusters |
particlesToTracks | mapping between PFParticles and tracks |
particlesToShowers | mapping between PFParticles and showers |
Definition at line 537 of file PFParticleHitDumper_module.cc.
References m_hitsFromClusters, m_hitsFromSpacePoints, m_hitsFromTrackOrShower, m_particle, m_pdgcode, m_pRecoComparison, m_printDebug, recob::PFParticle::PdgCode(), recob::PFParticle::Self(), and track.
Referenced by analyze().
|
private |
Store 2D hits.
hitVector | the input vector of 2D hits |
hitsToParticles | mapping between 2D hits and PFParticles |
Definition at line 601 of file PFParticleHitDumper_module.cc.
References GetUVW(), recob::Hit::Integral(), m_cstat, m_particle, m_pdgcode, m_plane, m_pReco2D, m_q, m_tpc, m_w, m_wire, m_x, recob::PFParticle::PdgCode(), recob::Hit::PeakTime(), recob::PFParticle::Self(), and recob::Hit::WireID().
Referenced by analyze().
|
private |
Store 3D hits.
particleVector | the input vector of PFParticles |
particlesToSpacePoints | mapping between 3D hits and PFParticles |
spacePointsToHits | mapping between 3D hits and 2D hits |
Definition at line 447 of file PFParticleHitDumper_module.cc.
References lar_pandora::LArPandoraHelper::IsNeutrino(), recob::PFParticle::IsPrimary(), m_cstat, m_particle, m_pdgcode, m_plane, m_pReco3D, m_primary, m_printDebug, m_tpc, m_u, m_v, m_x, m_y, m_z, recob::PFParticle::Parent(), recob::PFParticle::PdgCode(), recob::PFParticle::Self(), recob::Hit::WireID(), recob::SpacePoint::XYZ(), YZtoU(), and YZtoV().
Referenced by analyze().
|
private |
Store 3D track hits.
particlesToTracks | mapping between 3D track hits and PFParticles |
Definition at line 400 of file PFParticleHitDumper_module.cc.
References recob::Track::LocationAtPoint(), m_particle, m_pRecoTracks, m_printDebug, m_x, m_y, m_z, recob::Track::NumberTrajectoryPoints(), recob::PFParticle::Self(), and track.
Referenced by analyze().
|
private |
Store raw data.
wireVector | the input vector of reconstructed wires |
Definition at line 655 of file PFParticleHitDumper_module.cc.
References recob::Wire::Channel(), geo::GeometryCore::ChannelToWire(), geo::CryostatID::Cryostat, GetUVW(), m_cstat, m_plane, m_pRecoWire, m_printDebug, m_q, m_tpc, m_w, m_wire, m_x, geo::PlaneID::Plane, recob::Wire::Signal(), geo::TPCID::TPC, and geo::WireID::Wire.
Referenced by analyze().
|
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 |
Conversion from wire ID to U/V/W coordinate.
wireID | the input wire ID |
Definition at line 714 of file PFParticleHitDumper_module.cc.
References geo::CryostatID::Cryostat, geo::GeometryCore::Cryostat(), geo::WireGeo::GetEnd(), geo::WireGeo::GetStart(), geo::TPCGeo::Plane(), geo::PlaneID::Plane, pmtana::sign(), geo::CryostatGeo::TPC(), geo::TPCID::TPC, geo::PlaneGeo::Wire(), and geo::WireID::Wire.
Referenced by FillReco2D(), and FillRecoWires().
|
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().
void lar_pandora::PFParticleHitDumper::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 209 of file PFParticleHitDumper_module.cc.
References fhicl::ParameterSet::get(), m_calwireLabel, m_clusterLabel, m_hitfinderLabel, m_particleLabel, m_printDebug, m_showerLabel, m_spacepointLabel, m_storeWires, and m_trackLabel.
Referenced by PFParticleHitDumper().
|
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().
|
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 |
Convert from (Y,Z) to U coordinate.
cstat | the cryostat |
tpc | the tpc |
y | the y coordinate |
z | the z coordinate |
Definition at line 742 of file PFParticleHitDumper_module.cc.
References geo::kU, and geo::GeometryCore::WireAngleToVertical().
Referenced by FillReco3D().
|
private |
Convert from (Y,Z) to V coordinate.
cstat | the crystat |
tpc | the tpc |
y | the y coordinate |
z | the z coordinate |
Definition at line 752 of file PFParticleHitDumper_module.cc.
References geo::kV, and geo::GeometryCore::WireAngleToVertical().
Referenced by FillReco3D().
|
private |
Definition at line 147 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 149 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 130 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco2D(), FillReco3D(), and FillRecoWires().
|
private |
Definition at line 125 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 148 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 144 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillAssociated2DHits().
|
private |
Definition at line 143 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillAssociated2DHits().
|
private |
Definition at line 145 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillAssociated2DHits().
|
private |
Definition at line 126 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillAssociated2DHits(), FillReco2D(), FillReco3D(), and FillRecoTracks().
|
private |
Definition at line 151 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 128 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillAssociated2DHits(), FillReco2D(), and FillReco3D().
|
private |
Definition at line 132 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco2D(), FillReco3D(), and FillRecoWires().
|
private |
Definition at line 120 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillReco2D().
|
private |
Definition at line 119 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillReco3D().
|
private |
Definition at line 121 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillAssociated2DHits().
|
private |
Definition at line 118 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillRecoTracks().
|
private |
Definition at line 122 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillRecoWires().
|
private |
Definition at line 127 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), and FillReco3D().
|
private |
switch for print statements (TODO: use message service!)
Definition at line 156 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), FillAssociated2DHits(), FillReco3D(), FillRecoTracks(), FillRecoWires(), and reconfigure().
|
private |
Definition at line 141 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco2D(), and FillRecoWires().
|
private |
Definition at line 124 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 153 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 150 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 155 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 131 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco2D(), FillReco3D(), and FillRecoWires().
|
private |
Definition at line 152 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 135 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), and FillReco3D().
|
private |
Definition at line 136 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), and FillReco3D().
|
private |
Definition at line 137 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco2D(), and FillRecoWires().
|
private |
Definition at line 133 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco2D(), and FillRecoWires().
|
private |
Definition at line 138 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco2D(), FillReco3D(), FillRecoTracks(), and FillRecoWires().
|
private |
Definition at line 139 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco3D(), and FillRecoTracks().
|
private |
Definition at line 140 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco3D(), and FillRecoTracks().