LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
PFParticleHitDumper class. More...
Public Types | |
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) |
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 | 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 art::Event &event, 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 art::Event &event, 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 26 of file PFParticleHitDumper_module.cc.
|
inherited |
Definition at line 22 of file EDAnalyzer.h.
lar_pandora::PFParticleHitDumper::PFParticleHitDumper | ( | fhicl::ParameterSet const & | pset | ) |
Constructor.
pset |
Definition at line 209 of file PFParticleHitDumper_module.cc.
References reconfigure().
|
virtual |
void lar_pandora::PFParticleHitDumper::analyze | ( | const art::Event & | evt | ) |
Definition at line 307 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 235 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, and m_z.
|
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().
|
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().
|
virtual |
Reimplemented from art::EDAnalyzer.
Definition at line 303 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 546 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 608 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 461 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 416 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 659 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 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 |
Conversion from wire ID to U/V/W coordinate.
wireID | the input wire ID |
Definition at line 718 of file PFParticleHitDumper_module.cc.
References geo::WireGeo::GetEnd(), geo::WireGeo::GetStart(), pmtana::sign(), and geo::GeometryCore::Wire().
Referenced by FillReco2D(), and FillRecoWires().
|
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().
|
protectedinherited |
Definition at line 57 of file Observer.cc.
References art::Observer::process_name_.
Referenced by art::FileDumperOutput::printPrincipal().
void lar_pandora::PFParticleHitDumper::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 220 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().
|
inherited |
|
inherited |
Definition at line 49 of file ModuleBase.cc.
References art::ModuleBase::collector_, and art::ConsumesCollector::sortConsumables().
|
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 |
Convert from (Y,Z) to U coordinate.
cstat | the cryostat |
tpc | the tpc |
y | the y coordinate |
z | the z coordinate |
Definition at line 744 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 757 of file PFParticleHitDumper_module.cc.
References geo::kV, and geo::GeometryCore::WireAngleToVertical().
Referenced by FillReco3D().
|
private |
Definition at line 161 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 163 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 144 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco2D(), FillReco3D(), and FillRecoWires().
|
private |
Definition at line 139 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 162 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 158 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillAssociated2DHits().
|
private |
Definition at line 157 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillAssociated2DHits().
|
private |
Definition at line 159 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillAssociated2DHits().
|
private |
Definition at line 140 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillAssociated2DHits(), FillReco2D(), FillReco3D(), and FillRecoTracks().
|
private |
Definition at line 165 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 142 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillAssociated2DHits(), FillReco2D(), and FillReco3D().
|
private |
Definition at line 146 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco2D(), FillReco3D(), and FillRecoWires().
|
private |
Definition at line 134 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillReco2D().
|
private |
Definition at line 133 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillReco3D().
|
private |
Definition at line 135 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillAssociated2DHits().
|
private |
Definition at line 132 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillRecoTracks().
|
private |
Definition at line 136 of file PFParticleHitDumper_module.cc.
Referenced by beginJob(), and FillRecoWires().
|
private |
Definition at line 141 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), and FillReco3D().
|
private |
switch for print statements (TODO: use message service!)
Definition at line 170 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), FillAssociated2DHits(), FillReco3D(), FillRecoTracks(), FillRecoWires(), and reconfigure().
|
private |
Definition at line 155 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(), and beginJob().
|
private |
Definition at line 167 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 164 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 169 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 145 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco2D(), FillReco3D(), and FillRecoWires().
|
private |
Definition at line 166 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Definition at line 149 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), and FillReco3D().
|
private |
Definition at line 150 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), and FillReco3D().
|
private |
Definition at line 151 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco2D(), and FillRecoWires().
|
private |
Definition at line 147 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco2D(), and FillRecoWires().
|
private |
Definition at line 152 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco2D(), FillReco3D(), FillRecoTracks(), and FillRecoWires().
|
private |
Definition at line 153 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco3D(), and FillRecoTracks().
|
private |
Definition at line 154 of file PFParticleHitDumper_module.cc.
Referenced by analyze(), beginJob(), FillReco3D(), and FillRecoTracks().