Public Member Functions | List of all members
lar::EnsureOnlyOneSchedule< T > Class Template Reference

#include <EnsureOnlyOneSchedule.h>

Public Member Functions

 EnsureOnlyOneSchedule ()
 

Detailed Description

template<typename T>
class lar::EnsureOnlyOneSchedule< T >

Definition at line 26 of file EnsureOnlyOneSchedule.h.

Constructor & Destructor Documentation

template<typename T >
lar::EnsureOnlyOneSchedule< T >::EnsureOnlyOneSchedule ( )
inline

Definition at line 28 of file EnsureOnlyOneSchedule.h.

29  {
30  if (auto const nschedules = art::Globals::instance()->nschedules(); nschedules > 1) {
32  << "This job uses " << nschedules << " schedules, but the type '" << cet::demangle_symbol(typeid(T).name()) << " supports\n"
33  << "processing only one event at a time. Please reconfigure your job to use only one schedule.\n";
34  }
35  }
static QCString name
Definition: declinfo.cpp:673
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
static Globals * instance()
Definition: Globals.cc:17

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