Public Member Functions | Private Attributes | List of all members
wcls::WireCellToolkit Class Reference
Inheritance diagram for wcls::WireCellToolkit:
art::SharedProducer art::detail::Producer art::detail::SharedModule art::Modifier art::ModuleBase art::ProductRegistryHelper

Public Member Functions

 WireCellToolkit (fhicl::ParameterSet const &pset, art::ProcessingFrame const &)
 
virtual ~WireCellToolkit ()
 
void produce (art::Event &evt, art::ProcessingFrame const &)
 
void reconfigure (fhicl::ParameterSet const &pset)
 
- Public Member Functions inherited from art::SharedProducer
 SharedProducer (fhicl::ParameterSet const &pset)
 
template<typename Config >
 SharedProducer (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
 
Produceroperator= (Producer const &)=delete
 
Produceroperator= (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
 
Modifieroperator= (Modifier const &)=delete
 
Modifieroperator= (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 &current_process_name)
 
template<typename T , BranchType BT>
ViewToken< T > consumesView (InputTag const &tag)
 
template<typename T , BranchType BT>
ViewToken< T > mayConsumeView (InputTag const &tag)
 
- Public Member Functions inherited from art::detail::SharedModule
 SharedModule ()
 
 SharedModule (std::string const &moduleLabel)
 
hep::concurrency::SerialTaskQueueChain * serialTaskQueueChain () const
 
std::set< std::string > const & sharedResources () const
 
void createQueues (SharedResources const &resources)
 
template<BranchType , typename... T>
void serialize (T const &...resources)
 
template<BranchType , typename... T>
void serializeExternal (T const &...resources)
 

Private Attributes

std::unique_ptr< wcls::MainToolm_wcls
 

Additional Inherited Members

- Public Types inherited from art::SharedProducer
using ModuleType = SharedProducer
 
using WorkerType = WorkerT< SharedProducer >
 
- 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 >
 
- Protected Member Functions inherited from art::ModuleBase
ConsumesCollectorconsumesCollector ()
 
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 ()
 
- Protected Member Functions inherited from art::detail::SharedModule
template<BranchType BT = InEvent, typename... T>
void serialize (T const &...)
 
template<BranchType BT = InEvent, typename... T>
void serializeExternal (T const &...)
 
template<BranchType BT = InEvent>
void async ()
 

Detailed Description

Definition at line 10 of file WireCellToolkit_module.cc.

Constructor & Destructor Documentation

wcls::WireCellToolkit::WireCellToolkit ( fhicl::ParameterSet const &  pset,
art::ProcessingFrame const &   
)
explicit

Definition at line 23 of file WireCellToolkit_module.cc.

24  : SharedProducer(pset)
25 {
26  const std::string s{"WCT"};
28  this->reconfigure(pset);
29 }
std::string string
Definition: nybbler.cc:12
void reconfigure(fhicl::ParameterSet const &pset)
SharedProducer(fhicl::ParameterSet const &pset)
void serializeExternal(T const &...)
static QCString * s
Definition: config.cpp:1042
wcls::WireCellToolkit::~WireCellToolkit ( )
virtual

Definition at line 30 of file WireCellToolkit_module.cc.

30 {}

Member Function Documentation

void wcls::WireCellToolkit::produce ( art::Event evt,
art::ProcessingFrame const &   
)
virtual

Implements art::SharedProducer.

Definition at line 33 of file WireCellToolkit_module.cc.

34 {
35  m_wcls->process(evt);
36 }
std::unique_ptr< wcls::MainTool > m_wcls
void wcls::WireCellToolkit::reconfigure ( fhicl::ParameterSet const &  pset)

Definition at line 39 of file WireCellToolkit_module.cc.

40 {
41  auto const& wclsPS = pset.get<fhicl::ParameterSet>("wcls_main");
42  m_wcls = art::make_tool<wcls::MainTool>(wclsPS);
43  if (!m_wcls) {
44  throw cet::exception("WireCellToolkit_module") << "Failed to get Art Tool \"wcls_main\"\n";
45  }
46  m_wcls->produces(producesCollector());
47 }
ProducesCollector & producesCollector() noexcept
std::unique_ptr< wcls::MainTool > m_wcls
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33

Member Data Documentation

std::unique_ptr<wcls::MainTool> wcls::WireCellToolkit::m_wcls
private

Definition at line 19 of file WireCellToolkit_module.cc.


The documentation for this class was generated from the following file: