Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
Framework
IO
Root
detail
rootOutputConfigurationTools.cc
Go to the documentation of this file.
1
#include "
art/Framework/IO/Root/detail/rootOutputConfigurationTools.h
"
2
// vim: set sw=2 expandtab :
3
4
#include "
canvas/Utilities/Exception.h
"
5
#include "
messagefacility/MessageLogger/MessageLogger.h
"
6
7
using namespace
art
;
8
9
namespace
art
{
10
namespace
detail
{
11
12
bool
13
shouldDropEvents
(
bool
const
dropAllEventsSet,
14
bool
const
dropAllEvents,
15
bool
const
dropAllSubRuns)
16
{
17
if
(!dropAllSubRuns) {
18
return
dropAllEvents;
19
}
20
if
(dropAllEventsSet && !dropAllEvents) {
21
throw
art::Exception
(
errors::Configuration
)
22
<<
"\nThe following FHiCL specification is illegal\n\n"
23
<<
" dropAllEvents : false \n"
24
<<
" dropAllSubRuns : true \n\n"
25
<<
"[1] Both can be 'true', "
26
<<
"[2] both can be 'false', or "
27
<<
"[3] 'dropAllEvents : true' and 'dropAllSubRuns : false' "
28
<<
"is allowed.\n\n"
;
29
}
30
return
true
;
31
}
32
33
}
// namespace detail
34
}
// namespace art
rootOutputConfigurationTools.h
Exception.h
art::errors::Configuration
Definition:
Exception.h:32
MessageLogger.h
detail
Definition:
includer.cc:30
art::Exception
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition:
Exception.h:66
art
Definition:
BasicOptionsHandler.h:11
art::detail::shouldDropEvents
bool shouldDropEvents(bool const dropAllEventsSet, bool const dropAllEvents, bool const dropAllSubRuns)
Definition:
rootOutputConfigurationTools.cc:13
Generated by
1.8.11