LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Public Types | |
using | ModuleType = EDProducer |
using | WorkerType = WorkerT< EDProducer > |
template<typename UserConfig , typename KeysToIgnore = void> | |
using | Table = ProducerBase::Table< UserConfig, KeysToIgnore > |
Public Member Functions | |
MergeEMShower3D (fhicl::ParameterSet const &p) | |
MergeEMShower3D (MergeEMShower3D const &)=delete | |
MergeEMShower3D (MergeEMShower3D &&)=delete | |
MergeEMShower3D & | operator= (MergeEMShower3D const &)=delete |
MergeEMShower3D & | operator= (MergeEMShower3D &&)=delete |
void | beginJob () override |
void | produce (art::Event &e) override |
void | reconfigure (fhicl::ParameterSet const &p) |
void | mcinfo (art::Event &evt) |
int | getClusterBestId (const std::vector< art::Ptr< recob::Hit > > &v) |
int | getGammaId (art::Event &evt, const size_t t) |
double | getCos3D (const TVector3 &p0, const recob::Track &trk) |
double | getClusterAdcSum (const std::vector< art::Ptr< recob::Hit > > &v) |
std::vector< ems::ShowersCollection > | collectshowers (art::Event &evt, std::vector< ems::ShowerInfo > &showers, bool refpoint) |
TVector3 | getBestPoint (const std::vector< recob::Track > &tracks, const std::vector< ShowerInfo > &showers, const TVector3 &p0, const TVector3 &p1, double step) |
template<typename PROD , BranchType B = InEvent> | |
ProductID | getProductID (std::string const &instanceName={}) const |
template<typename PROD , BranchType B> | |
ProductID | getProductID (ModuleDescription const &moduleDescription, std::string const &instanceName) const |
bool | modifiesEvent () 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 |
void | validateConsumedProduct (BranchType const bt, ProductInfo const &pi) |
void | prepareForJob (fhicl::ParameterSet const &pset) |
void | showMissingConsumes () const |
Private Attributes | |
TTree * | fEvTree |
int | fVtxIndex |
int | fNParts [2] |
int | fNPMA |
int | fNConv |
int | fNTot |
int | fWhat |
int | fEvWhat |
int | fNMerged |
int | fNCleanMerged |
double | fDistvtxmcreco |
double | fMcMom |
int | fEvNumber |
TVector3 | fPi0vtx |
TVector3 | fRefPoint |
std::string | fHitsModuleLabel |
std::string | fCluModuleLabel |
std::string | fTrk3DModuleLabel |
std::string | fVtxModuleLabel |
double | fNarrowConeAngle |
double | fWideConeAngle |
shower::ShowerEnergyAlg | fShowerEnergyAlg |
Definition at line 337 of file MergeEMShower3D_module.cc.
|
inherited |
Definition at line 34 of file EDProducer.h.
|
inherited |
Definition at line 43 of file EDProducer.h.
|
inherited |
Definition at line 35 of file EDProducer.h.
|
explicit |
Definition at line 402 of file MergeEMShower3D_module.cc.
References reconfigure().
|
delete |
|
delete |
|
overridevirtual |
Reimplemented from art::EDProducer.
Definition at line 415 of file MergeEMShower3D_module.cc.
References fDistvtxmcreco, fEvNumber, fEvTree, fEvWhat, fMcMom, fNCleanMerged, fNConv, fNMerged, fNParts, fNPMA, fNTot, and art::TFileDirectory::make().
std::vector< ems::ShowersCollection > ems::MergeEMShower3D::collectshowers | ( | art::Event & | evt, |
std::vector< ems::ShowerInfo > & | showers, | ||
bool | refpoint | ||
) |
Definition at line 629 of file MergeEMShower3D_module.cc.
References geo::GeometryCore::CryostatBoundaries(), pma::Dist2(), fNarrowConeAngle, fNConv, fRefPoint, fTrk3DModuleLabel, getBestPoint(), art::DataViewImpl::getByLabel(), pma::GetProjectionToSegment(), and pma::SolveLeastSquares3D().
Referenced by produce().
|
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 |
|
inherited |
Definition at line 49 of file EngineCreator.cc.
References fhicl::ParameterSet::get().
Referenced by art::MixFilter< T >::initEngine_().
TVector3 ems::MergeEMShower3D::getBestPoint | ( | const std::vector< recob::Track > & | tracks, |
const std::vector< ShowerInfo > & | showers, | ||
const TVector3 & | p0, | ||
const TVector3 & | p1, | ||
double | step | ||
) |
Definition at line 819 of file MergeEMShower3D_module.cc.
References pma::Dist2(), f, and getCos3D().
Referenced by collectshowers().
double ems::MergeEMShower3D::getClusterAdcSum | ( | const std::vector< art::Ptr< recob::Hit > > & | v | ) |
Definition at line 903 of file MergeEMShower3D_module.cc.
References DEFINE_ART_MODULE.
Referenced by produce().
int ems::MergeEMShower3D::getClusterBestId | ( | const std::vector< art::Ptr< recob::Hit > > & | v | ) |
Definition at line 736 of file MergeEMShower3D_module.cc.
References cheat::BackTrackerService::HitToTrackIDEs(), and max.
Referenced by getGammaId().
double ems::MergeEMShower3D::getCos3D | ( | const TVector3 & | p0, |
const recob::Track & | trk | ||
) |
Definition at line 882 of file MergeEMShower3D_module.cc.
References dir, pma::Dist2(), recob::Track::End(), recob::Track::Vertex(), and recob::Track::VertexDirection().
Referenced by getBestPoint().
int ems::MergeEMShower3D::getGammaId | ( | art::Event & | evt, |
const size_t | t | ||
) |
Definition at line 786 of file MergeEMShower3D_module.cc.
References fCluModuleLabel, fHitsModuleLabel, fTrk3DModuleLabel, fVtxModuleLabel, fWhat, art::DataViewImpl::getByLabel(), and getClusterBestId().
Referenced by produce().
|
inlineinherited |
|
inherited |
Definition at line 56 of file ProducerBase.h.
References B, and art::ModuleDescription::moduleLabel().
Referenced by art::ProducerBase::modifiesEvent().
|
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().
void ems::MergeEMShower3D::mcinfo | ( | art::Event & | evt | ) |
Definition at line 760 of file MergeEMShower3D_module.cc.
References art::fill_ptr_vector(), fMcMom, fPi0vtx, art::DataViewImpl::getByLabel(), simb::MCParticle::P(), simb::MCParticle::Vx(), simb::MCParticle::Vy(), and simb::MCParticle::Vz().
Referenced by produce().
|
inlineinherited |
Definition at line 40 of file ProducerBase.h.
References art::ProducerBase::getProductID().
|
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_().
|
delete |
|
delete |
|
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().
|
overridevirtual |
Implements art::EDProducer.
Definition at line 447 of file MergeEMShower3D_module.cc.
References collectshowers(), util::CreateAssn(), dir, pma::Dist2(), art::EventID::event(), fCluModuleLabel, fDistvtxmcreco, fEvNumber, fEvTree, fHitsModuleLabel, fMcMom, fNCleanMerged, fNConv, fNMerged, fNParts, fNPMA, fNTot, fPi0vtx, fRefPoint, fShowerEnergyAlg, fTrk3DModuleLabel, fVtxIndex, fVtxModuleLabel, fWhat, fWideConeAngle, art::DataViewImpl::getByLabel(), getClusterAdcSum(), getGammaId(), hits(), art::Event::id(), geo::kU, geo::kV, geo::kZ, mcinfo(), art::Event::put(), recob::Shower::set_total_energy(), recob::Shower::set_total_energy_err(), and shower::ShowerEnergyAlg::ShowerEnergy().
void ems::MergeEMShower3D::reconfigure | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 434 of file MergeEMShower3D_module.cc.
References fCluModuleLabel, fHitsModuleLabel, fNarrowConeAngle, fTrk3DModuleLabel, fVtxModuleLabel, fWideConeAngle, and fhicl::ParameterSet::get().
Referenced by MergeEMShower3D().
|
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.
|
private |
Definition at line 391 of file MergeEMShower3D_module.cc.
Referenced by getGammaId(), produce(), and reconfigure().
|
private |
Definition at line 383 of file MergeEMShower3D_module.cc.
Referenced by beginJob(), and produce().
|
private |
Definition at line 385 of file MergeEMShower3D_module.cc.
Referenced by beginJob(), and produce().
|
private |
Definition at line 372 of file MergeEMShower3D_module.cc.
Referenced by beginJob(), and produce().
|
private |
Definition at line 380 of file MergeEMShower3D_module.cc.
Referenced by beginJob().
|
private |
Definition at line 390 of file MergeEMShower3D_module.cc.
Referenced by getGammaId(), produce(), and reconfigure().
|
private |
Definition at line 384 of file MergeEMShower3D_module.cc.
Referenced by beginJob(), mcinfo(), and produce().
|
private |
Definition at line 395 of file MergeEMShower3D_module.cc.
Referenced by collectshowers(), and reconfigure().
|
private |
Definition at line 381 of file MergeEMShower3D_module.cc.
Referenced by beginJob(), and produce().
|
private |
Definition at line 378 of file MergeEMShower3D_module.cc.
Referenced by beginJob(), collectshowers(), and produce().
|
private |
Definition at line 381 of file MergeEMShower3D_module.cc.
Referenced by beginJob(), and produce().
|
private |
Definition at line 377 of file MergeEMShower3D_module.cc.
Referenced by beginJob(), and produce().
|
private |
Definition at line 378 of file MergeEMShower3D_module.cc.
Referenced by beginJob(), and produce().
|
private |
Definition at line 378 of file MergeEMShower3D_module.cc.
Referenced by beginJob(), and produce().
|
private |
Definition at line 387 of file MergeEMShower3D_module.cc.
|
private |
Definition at line 388 of file MergeEMShower3D_module.cc.
Referenced by collectshowers(), and produce().
|
private |
Definition at line 398 of file MergeEMShower3D_module.cc.
Referenced by produce().
|
private |
Definition at line 392 of file MergeEMShower3D_module.cc.
Referenced by collectshowers(), getGammaId(), produce(), and reconfigure().
|
private |
Definition at line 375 of file MergeEMShower3D_module.cc.
Referenced by produce().
|
private |
Definition at line 393 of file MergeEMShower3D_module.cc.
Referenced by getGammaId(), produce(), and reconfigure().
|
private |
Definition at line 380 of file MergeEMShower3D_module.cc.
Referenced by getGammaId(), and produce().
|
private |
Definition at line 396 of file MergeEMShower3D_module.cc.
Referenced by produce(), and reconfigure().