Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
Framework
Principal
SubRun.cc
Go to the documentation of this file.
1
#include "
art/Framework/Principal/SubRun.h
"
2
// vim: set sw=2 expandtab :
3
4
#include "
art/Framework/Principal/Run.h
"
5
#include "
art/Framework/Principal/SubRunPrincipal.h
"
6
#include "
canvas/Persistency/Provenance/BranchType.h
"
7
8
namespace
art
{
9
10
SubRun::~SubRun
() =
default
;
11
12
SubRun::SubRun
(
SubRunPrincipal
const
& srp,
13
ModuleContext
const
& mc,
14
RangeSet
const
&
rs
/* = RangeSet::invalid() */
)
15
:
DataViewImpl
{
InSubRun
, srp, mc,
false
, rs}
16
,
run_
{srp.runPrincipalExemptPtr() ?
new
Run
{srp.runPrincipal(), mc} :
17
nullptr
}
18
{}
19
20
SubRunID
21
SubRun::id
()
const
22
{
23
return
DataViewImpl::subRunID
();
24
}
25
26
Run
const
&
27
SubRun::getRun
()
const
28
{
29
if
(!
run_
) {
30
throw
Exception
(
errors::NullPointerError
)
31
<<
"Tried to obtain a NULL run.\n"
;
32
}
33
return
*
run_
;
34
}
35
36
}
// namespace art
art::RangeSet
Definition:
RangeSet.h:25
art::DataViewImpl::subRunID
SubRunID subRunID() const
Definition:
DataViewImpl.cc:57
art::SubRun::~SubRun
~SubRun()
art::SubRunID
Definition:
SubRunID.h:19
art::SubRun::run_
std::unique_ptr< Run const > const run_
Definition:
SubRun.h:67
BranchType.h
art::Run
Definition:
Run.h:17
art::ModuleContext
Definition:
ModuleContext.h:8
art::SubRun::getRun
Run const & getRun() const
Definition:
SubRun.cc:27
art::SubRunPrincipal
Definition:
SubRunPrincipal.h:17
SubRun.h
art::errors::NullPointerError
Definition:
Exception.h:37
art::Exception
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition:
Exception.h:66
make_pion_angle.rs
list rs
Definition:
make_pion_angle.py:22
SubRunPrincipal.h
art::SubRun::id
SubRunID id() const
Definition:
SubRun.cc:21
art
Definition:
BasicOptionsHandler.h:9
art::SubRun::SubRun
SubRun(SubRunPrincipal const &srp, ModuleContext const &mc, RangeSet const &rs=RangeSet::invalid())
Definition:
SubRun.cc:12
art::DataViewImpl
Definition:
DataViewImpl.h:64
art::InSubRun
Definition:
BranchType.h:20
Run.h
Generated by
1.8.11