LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
InputSource.cc
Go to the documentation of this file.
2 // vim: set sw=2 expandtab :
3 
4 namespace art {
5 
6  InputSource::~InputSource() = default;
7 
9  InputSource::mode(std::string const& modeString)
10  {
11  if (modeString == "Runs") {
12  return Runs;
13  }
14  if (modeString == "RunsAndSubRuns") {
15  return RunsAndSubRuns;
16  }
17  if (modeString == "RunsSubRunsAndEvents") {
18  return RunsSubRunsAndEvents;
19  }
21  << "The 'processingMode' parameter for sources has an illegal value '"
22  << modeString << "'\n"
23  << "Legal values are 'Runs', 'RunsAndSubRuns', or "
24  "'RunsSubRunsAndEvents'.\n";
25  }
26 
28  {}
29 
30  ModuleDescription const&
32  {
33  return moduleDescription_;
34  }
35 
38  {
40  }
41 
42  void
44  {
46  << "The application has tried to peform random access on an input "
47  "source\n"
48  << "that does not support random access. Please reconfigure the program\n"
49  << "to use an input source that supports random access (e.g. "
50  "RootInput)\n";
51  }
52 
53  void
55  {}
56 
57  void
59  {}
60 
61 } // namespace art
InputSource(ModuleDescription const &)
Definition: InputSource.cc:27
ModuleDescription const & moduleDescription() const
Definition: InputSource.cc:31
virtual void skipEvents(int n)
Definition: InputSource.cc:43
virtual void doBeginJob()
Definition: InputSource.cc:54
ModuleDescription moduleDescription_
Definition: InputSource.h:106
ProcessConfiguration const & processConfiguration() const
virtual ~InputSource()
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
ProcessConfiguration const & processConfiguration() const
Definition: InputSource.cc:37
Definition: MVAAlg.h:12
virtual void doEndJob()
Definition: InputSource.cc:58
static ProcessingMode mode(std::string const &modeString)
Definition: InputSource.cc:9