All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
lar::example::Disturbance Class Reference

A silly module. More...

Inheritance diagram for lar::example::Disturbance:

Classes

struct  Config
 

Public Types

using Parameters = art::EDProducer::Table< Config >
 

Public Member Functions

 Disturbance (Parameters const &config)
 Constructor. More...
 
virtual void produce (art::Event &) override
 Executes the iterations. More...
 

Static Private Member Functions

static void throwArtException ()
 Throws a std::out_of_range exception. More...
 

Private Attributes

unsigned int fNArtExceptions
 

Detailed Description

A silly module.

This module throws and catches a lot of art::Exception exceptions. Kids, don't do this at home!

Configuration

Definition at line 33 of file Disturbance_module.cc.

Member Typedef Documentation

using lar::example::Disturbance::Parameters = art::EDProducer::Table<Config>

Definition at line 45 of file Disturbance_module.cc.

Constructor & Destructor Documentation

lar::example::Disturbance::Disturbance ( Parameters const &  config)

Constructor.

Definition at line 68 of file Disturbance_module.cc.

69  : EDProducer{config}
70  , fNArtExceptions(config().NArtExceptions())
71  {}

Member Function Documentation

void lar::example::Disturbance::produce ( art::Event &  )
overridevirtual

Executes the iterations.

Definition at line 75 of file Disturbance_module.cc.

75  {
76 
77  //
78  // art::Exception
79  //
80  for (unsigned int i = 0; i < fNArtExceptions; ++i) {
81  try {
83  }
84  catch (art::Exception const&) {}
85  } // for
86 
87 } // lar::example::Disturbance::produce()
static void throwArtException()
Throws a std::out_of_range exception.
void lar::example::Disturbance::throwArtException ( )
staticprivate

Throws a std::out_of_range exception.

Definition at line 91 of file Disturbance_module.cc.

91  {
92 
93  throw art::Exception(art::errors::LogicError)
94  << "I want to annoy you.\n";
95 
96 } // lar::example::Disturbance::throwArtException()

Member Data Documentation

unsigned int lar::example::Disturbance::fNArtExceptions
private

Definition at line 56 of file Disturbance_module.cc.


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