LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
module to produce single or multiple specified particles in the detector More...
Public Types | |
using | ModuleType = EDProducer |
using | WorkerType = WorkerT< EDProducer > |
template<typename UserConfig , typename KeysToIgnore = void> | |
using | Table = ProducerBase::Table< UserConfig, KeysToIgnore > |
Public Member Functions | |
FileMuons (fhicl::ParameterSet const &pset) | |
virtual | ~FileMuons () |
void | produce (art::Event &evt) |
void | beginJob () |
void | beginRun (art::Run &run) |
void | endJob () |
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 Member Functions | |
void | ReadEvents (simb::MCTruth &mct) |
Private Attributes | |
int | fEventNumberOffset |
std::vector< int > | fPDG |
std::vector< double > | fXYZ_Off |
std::string | fFileName |
std::string | fMuonsFileType |
std::string | fTreeName |
std::vector< std::string > | fBranchNames |
std::ifstream * | fMuonFile |
TFile * | fMuonFileR |
TTree * | TNtuple |
unsigned int | countFile |
Float_t | xtmp |
Float_t | ytmp |
Float_t | ztmp |
Float_t | pxtmp |
Float_t | pytmp |
Float_t | pztmp |
Float_t | charge |
Float_t | E |
Float_t | costheta |
Float_t | phi |
Float_t | xdet |
Float_t | ydet |
Float_t | zdet |
TBranch * | b_x |
TBranch * | b_y |
TBranch * | b_z |
TBranch * | b_E |
TBranch * | b_costheta |
TBranch * | b_phi |
TBranch * | b_xdet |
TBranch * | b_ydet |
TBranch * | b_zdet |
TBranch * | b_px |
TBranch * | b_py |
TBranch * | b_pz |
TBranch * | b_charge |
module to produce single or multiple specified particles in the detector
Definition at line 53 of file FileMuons_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 115 of file FileMuons_module.cc.
|
virtual |
Definition at line 219 of file FileMuons_module.cc.
|
virtual |
Reimplemented from art::EDProducer.
Definition at line 131 of file FileMuons_module.cc.
References b_charge, b_costheta, b_E, b_phi, b_px, b_py, b_pz, b_x, b_xdet, b_y, b_ydet, b_z, b_zdet, evd::details::begin(), charge, costheta, countFile, E, evd::details::end(), fEventNumberOffset, fFileName, fMuonFile, fMuonFileR, fMuonsFileType, fTreeName, phi, pxtmp, pytmp, pztmp, TNtuple, xdet, xtmp, ydet, ytmp, zdet, and ztmp.
|
virtual |
Reimplemented from art::EDProducer.
Definition at line 206 of file FileMuons_module.cc.
References geo::GeometryCore::DetectorName(), and art::Run::put().
|
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 |
|
virtual |
Reimplemented from art::EDProducer.
Definition at line 197 of file FileMuons_module.cc.
References fMuonFile, fMuonFileR, and fMuonsFileType.
|
inherited |
Definition at line 49 of file EngineCreator.cc.
References fhicl::ParameterSet::get().
Referenced by art::MixFilter< T >::initEngine_().
|
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().
|
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_().
|
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().
|
virtual |
unique_ptr allows ownership to be transferred to the art::Event after the put statement
Implements art::EDProducer.
Definition at line 224 of file FileMuons_module.cc.
References simb::kSingleParticle, art::Event::put(), ReadEvents(), and simb::MCTruth::SetOrigin().
|
private |
every event will have one of each particle species in the fPDG array
Definition at line 244 of file FileMuons_module.cc.
References simb::MCTruth::Add(), simb::MCParticle::AddTrajectoryPoint(), charge, countFile, geo::GeometryCore::CryostatHalfHeight(), geo::GeometryCore::CryostatHalfWidth(), geo::GeometryCore::CryostatLength(), DEFINE_ART_MODULE, fFileName, fMuonFile, fMuonsFileType, fPDG, fXYZ_Off, LOG_DEBUG, part, pxtmp, pytmp, pztmp, TNtuple, x, xdet, ydet, and zdet.
Referenced by produce().
|
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 104 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 96 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 95 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 97 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 101 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 102 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 103 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 92 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 98 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 93 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 99 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 94 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 100 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 84 of file FileMuons_module.cc.
Referenced by beginJob(), and ReadEvents().
|
private |
Definition at line 86 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 80 of file FileMuons_module.cc.
Referenced by beginJob(), and ReadEvents().
|
private |
Definition at line 85 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 75 of file FileMuons_module.cc.
|
private |
Definition at line 69 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 72 of file FileMuons_module.cc.
Referenced by beginJob(), and ReadEvents().
|
private |
Definition at line 77 of file FileMuons_module.cc.
Referenced by beginJob(), endJob(), and ReadEvents().
|
private |
Definition at line 78 of file FileMuons_module.cc.
Referenced by beginJob(), and endJob().
|
private |
Definition at line 73 of file FileMuons_module.cc.
Referenced by beginJob(), endJob(), and ReadEvents().
|
private |
Definition at line 70 of file FileMuons_module.cc.
Referenced by ReadEvents().
|
private |
Definition at line 74 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 71 of file FileMuons_module.cc.
Referenced by ReadEvents().
|
private |
Definition at line 87 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 83 of file FileMuons_module.cc.
Referenced by beginJob(), and ReadEvents().
|
private |
Definition at line 83 of file FileMuons_module.cc.
Referenced by beginJob(), and ReadEvents().
|
private |
Definition at line 83 of file FileMuons_module.cc.
Referenced by beginJob(), and ReadEvents().
|
private |
Definition at line 79 of file FileMuons_module.cc.
Referenced by beginJob(), and ReadEvents().
|
private |
Definition at line 88 of file FileMuons_module.cc.
Referenced by beginJob(), and ReadEvents().
|
private |
Definition at line 82 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 89 of file FileMuons_module.cc.
Referenced by beginJob(), and ReadEvents().
|
private |
Definition at line 82 of file FileMuons_module.cc.
Referenced by beginJob().
|
private |
Definition at line 90 of file FileMuons_module.cc.
Referenced by beginJob(), and ReadEvents().
|
private |
Definition at line 82 of file FileMuons_module.cc.
Referenced by beginJob().