Module: creates tracks from simulated particles. More...
Classes | |
struct | Config |
Module configuration data. More... | |
Public Types | |
using | Parameters = art::EDProducer::Table< Config > |
Standard art alias for module configuration table. More... | |
Public Types inherited from art::EDProducer | |
using | ModuleType = EDProducer |
using | WorkerType = WorkerT< EDProducer > |
Public Types inherited from art::detail::Producer | |
template<typename UserConfig , typename KeysToIgnore = void> | |
using | Table = Modifier::Table< UserConfig, KeysToIgnore > |
Public Types inherited from art::Modifier | |
template<typename UserConfig , typename UserKeysToIgnore = void> | |
using | Table = ProducerTable< UserConfig, detail::ModuleConfig, UserKeysToIgnore > |
Public Member Functions | |
TotallyCheatTracker (Parameters const &config) | |
Constructor; see the class documentation for the configuration. More... | |
virtual void | produce (art::Event &event) override |
bool | acceptParticle (simb::MCParticle const &particle) const |
Returns whether the particle satisfies the selection criteria. More... | |
Public Member Functions inherited from art::EDProducer | |
EDProducer (fhicl::ParameterSet const &pset) | |
template<typename Config > | |
EDProducer (Table< Config > const &config) | |
std::string | workerType () const |
Public Member Functions inherited from art::detail::Producer | |
virtual | ~Producer () noexcept |
Producer (fhicl::ParameterSet const &) | |
Producer (Producer const &)=delete | |
Producer (Producer &&)=delete | |
Producer & | operator= (Producer const &)=delete |
Producer & | operator= (Producer &&)=delete |
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) |
Public Member Functions inherited from art::Modifier | |
~Modifier () noexcept | |
Modifier () | |
Modifier (Modifier const &)=delete | |
Modifier (Modifier &&)=delete | |
Modifier & | operator= (Modifier const &)=delete |
Modifier & | operator= (Modifier &&)=delete |
Public Member Functions inherited from art::ModuleBase | |
virtual | ~ModuleBase () noexcept |
ModuleBase () | |
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) |
template<typename T , BranchType BT> | |
ViewToken< T > | consumesView (InputTag const &tag) |
template<typename T , BranchType BT> | |
ViewToken< T > | mayConsumeView (InputTag const &tag) |
Private Attributes | |
art::InputTag | particleTag |
Label of the input data product. More... | |
double | minLength |
Minimum particle length [cm]. More... | |
double | minEnergy |
Minimum energy [GeV]. More... | |
lar::example::TotallyCheatTrackingAlg | trackMaker |
Reconstruction algorithm. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from art::EDProducer | |
static void | commitEvent (EventPrincipal &ep, Event &e) |
Protected Member Functions inherited from art::ModuleBase | |
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 () |
Module: creates tracks from simulated particles.
This module creates one LArSoft reconstructed track (lar::example::CheatTrack
) for each input simulated particle (simb::MCParticle
) passing the selection criteria.
A collection of simb::MCParticle
is required.
A collection of lar::example::CheatTrack
is produced, a one-to-one association of each of them to its original simb::MCParticle
. Associations are inserted in the same order as the trajectories.
largeant
): label of the data product with input simulated particlesDefinition at line 73 of file TotallyCheatTracker_module.cc.
Standard art alias for module configuration table.
Definition at line 110 of file TotallyCheatTracker_module.cc.
|
explicit |
Constructor; see the class documentation for the configuration.
Definition at line 144 of file TotallyCheatTracker_module.cc.
bool lar::example::TotallyCheatTracker::acceptParticle | ( | simb::MCParticle const & | particle | ) | const |
Returns whether the particle
satisfies the selection criteria.
Definition at line 228 of file TotallyCheatTracker_module.cc.
|
overridevirtual |
Implements art::EDProducer.
Definition at line 161 of file TotallyCheatTracker_module.cc.
|
private |
Minimum energy [GeV].
Definition at line 127 of file TotallyCheatTracker_module.cc.
|
private |
Minimum particle length [cm].
Definition at line 126 of file TotallyCheatTracker_module.cc.
|
private |
Label of the input data product.
Definition at line 124 of file TotallyCheatTracker_module.cc.
|
private |
Reconstruction algorithm.
Definition at line 130 of file TotallyCheatTracker_module.cc.