Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
arttest::EventProcessorTestOutput Class Referencefinal
Inheritance diagram for arttest::EventProcessorTestOutput:
art::OutputModule art::Observer art::detail::SharedModule art::ModuleBase

Classes

struct  Config
 

Public Types

using Parameters = fhicl::WrappedTable< Config, OutputModule::Config::KeysToIgnore >
 
- Public Types inherited from art::OutputModule
using ModuleType = OutputModule
 
using WorkerType = OutputWorker
 
using PluginCollection_t = std::vector< std::unique_ptr< FileCatalogMetadataPlugin >>
 

Public Member Functions

 EventProcessorTestOutput (Parameters const &ps)
 
- Public Member Functions inherited from art::OutputModule
virtual ~OutputModule () noexcept
 
 OutputModule (fhicl::ParameterSet const &pset)
 
 OutputModule (fhicl::TableFragment< Config > const &pset, fhicl::ParameterSet const &containing_pset)
 
 OutputModule (OutputModule const &)=delete
 
 OutputModule (OutputModule &&)=delete
 
OutputModuleoperator= (OutputModule const &)=delete
 
OutputModuleoperator= (OutputModule &&)=delete
 
int maxEvents () const
 
int remainingEvents () const
 
bool fileIsOpen () const
 
OutputFileStatus fileStatus () const
 
virtual std::string const & lastClosedFileName () const
 
SelectionsArray const & keptProducts () const
 
bool selected (BranchDescription const &) const
 
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch () const
 
void selectProducts (ProductTables const &)
 
void doSelectProducts (ProductTables const &)
 
void registerProducts (ProductDescriptions &, ModuleDescription const &)
 
BranchChildren const & branchChildren () const
 
- Public Member Functions inherited from art::Observer
 ~Observer () noexcept
 
 Observer (Observer const &)=delete
 
 Observer (Observer &&)=delete
 
Observeroperator= (Observer const &)=delete
 
Observeroperator= (Observer &&)=delete
 
void registerProducts (ProductDescriptions &, ModuleDescription const &)
 
void fillDescriptions (ModuleDescription const &)
 
fhicl::ParameterSetID selectorConfig () const
 
- 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 Member Functions

void respondToOpenInputFile (FileBlock const &fb) override
 
void write (EventPrincipal &ep) override
 
void writeSubRun (SubRunPrincipal &srp) override
 
void writeRun (RunPrincipal &rp) override
 
void incrementInputFileNumber () override
 
bool requestsToCloseFile () const override
 
Granularity fileGranularity () const override
 
void updateSwitchPoints ()
 

Private Attributes

std::vector< SwitchPoint > switchPoints_
 
SwitchPoint activeSwitchPoint_ {}
 
std::string currentInputFileName_ {}
 
bool requestsFileClose_ {false}
 

Additional Inherited Members

- Protected Member Functions inherited from art::OutputModule
virtual void doRegisterProducts (ProductDescriptions &, ModuleDescription const &)
 
- Protected Member Functions inherited from art::Observer
std::string const & processName () const
 
bool wantAllEvents () const noexcept
 
bool wantEvent (ScheduleID id, Event const &e) const
 
Handle< TriggerResultsgetTriggerResults (Event const &e) const
 
 Observer (fhicl::ParameterSet const &config)
 
 Observer (std::vector< std::string > const &select_paths, std::vector< std::string > const &reject_paths, fhicl::ParameterSet const &config)
 
- 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 114 of file EventProcessorTestOutput_module.cc.

Member Typedef Documentation

using arttest::EventProcessorTestOutput::Parameters = fhicl::WrappedTable<Config, OutputModule::Config::KeysToIgnore>

Definition at line 126 of file EventProcessorTestOutput_module.cc.

Constructor & Destructor Documentation

arttest::EventProcessorTestOutput::EventProcessorTestOutput ( Parameters const &  ps)
inlineexplicit

Definition at line 127 of file EventProcessorTestOutput_module.cc.

128  : OutputModule{ps().omConfig, ps.get_PSet()}
129  , switchPoints_{ps().switchAfter()}
130  {
131  if (!switchPoints_.empty()) {
133  }
134  }
static constexpr double ps
Definition: Units.h:99

Member Function Documentation

Granularity arttest::EventProcessorTestOutput::fileGranularity ( ) const
inlineoverrideprivatevirtual

Reimplemented from art::OutputModule.

Definition at line 189 of file EventProcessorTestOutput_module.cc.

190  {
191  return Granularity::Event;
192  }
Definition: types.h:32
void arttest::EventProcessorTestOutput::incrementInputFileNumber ( )
inlineoverrideprivatevirtual
bool arttest::EventProcessorTestOutput::requestsToCloseFile ( ) const
inlineoverrideprivatevirtual

Reimplemented from art::OutputModule.

Definition at line 183 of file EventProcessorTestOutput_module.cc.

void arttest::EventProcessorTestOutput::respondToOpenInputFile ( FileBlock const &  fb)
inlineoverrideprivatevirtual

Reimplemented from art::OutputModule.

Definition at line 138 of file EventProcessorTestOutput_module.cc.

139  {
140  currentInputFileName_ = fb.fileName();
141  }
void arttest::EventProcessorTestOutput::updateSwitchPoints ( )
inlineprivate

Definition at line 195 of file EventProcessorTestOutput_module.cc.

196  {
197  assert(activeSwitchPoint_.valid());
198  if (switchPoints_.empty()) {
199  // Invalidate the next switch point--matching against a
200  // default-constructed SwitchPoint will always return false.
201  activeSwitchPoint_ = SwitchPoint{};
202  } else {
203  // Pop the front
206  }
207  }
decltype(auto) constexpr cbegin(T &&obj)
ADL-aware version of std::cbegin.
Definition: StdUtils.h:82
void arttest::EventProcessorTestOutput::write ( EventPrincipal ep)
inlineoverrideprivatevirtual
void arttest::EventProcessorTestOutput::writeRun ( RunPrincipal rp)
inlineoverrideprivatevirtual
void arttest::EventProcessorTestOutput::writeSubRun ( SubRunPrincipal srp)
inlineoverrideprivatevirtual

Member Data Documentation

SwitchPoint arttest::EventProcessorTestOutput::activeSwitchPoint_ {}
private

Definition at line 210 of file EventProcessorTestOutput_module.cc.

std::string arttest::EventProcessorTestOutput::currentInputFileName_ {}
private

Definition at line 211 of file EventProcessorTestOutput_module.cc.

bool arttest::EventProcessorTestOutput::requestsFileClose_ {false}
private

Definition at line 212 of file EventProcessorTestOutput_module.cc.

std::vector<SwitchPoint> arttest::EventProcessorTestOutput::switchPoints_
private

Definition at line 209 of file EventProcessorTestOutput_module.cc.


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