LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
FastCloningInfoProvider.cc
Go to the documentation of this file.
1
#include "
art/Framework/IO/Root/FastCloningInfoProvider.h
"
2
3
#include "
art/Framework/Core/DecrepitRelicInputSourceImplementation.h
"
4
#include "
canvas/Utilities/Exception.h
"
5
6
art::FastCloningInfoProvider::FastCloningInfoProvider
(
7
cet::exempt_ptr<DecrepitRelicInputSourceImplementation> input)
8
: input_(input)
9
{}
10
11
off_t
12
art::FastCloningInfoProvider::remainingEvents
()
const
13
{
14
if
(!
fastCloningPermitted
()) {
15
throw
Exception
(
errors::LogicError
)
16
<<
"FastCloningInfoProvider::remainingEvents() has no meaning"
17
<<
" in this context:\n"
18
<<
"Check fastCloningPermitted() first.\n"
;
19
}
20
return
input_
->remainingEvents();
21
}
22
23
off_t
24
art::FastCloningInfoProvider::remainingSubRuns
()
const
25
{
26
if
(!
fastCloningPermitted
()) {
27
throw
Exception
(
errors::LogicError
)
28
<<
"FastCloningInfoProvider::remainingSubRuns() has no meaning"
29
<<
" in this context:\n"
30
<<
"Check fastCloningPermitted() first.\n"
;
31
}
32
return
input_
->remainingSubRuns();
33
}
art::FastCloningInfoProvider::FastCloningInfoProvider
FastCloningInfoProvider()
Definition:
FastCloningInfoProvider.h:14
DecrepitRelicInputSourceImplementation.h
art::errors::LogicError
Definition:
Exception.h:33
FastCloningInfoProvider.h
art::FastCloningInfoProvider::fastCloningPermitted
bool fastCloningPermitted() const
Definition:
FastCloningInfoProvider.h:28
art::FastCloningInfoProvider::remainingSubRuns
off_t remainingSubRuns() const
Definition:
FastCloningInfoProvider.cc:24
art::Exception
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition:
Exception.h:66
art::FastCloningInfoProvider::remainingEvents
off_t remainingEvents() const
Definition:
FastCloningInfoProvider.cc:12
art::FastCloningInfoProvider::input_
cet::exempt_ptr< DecrepitRelicInputSourceImplementation > input_
Definition:
FastCloningInfoProvider.h:24
Exception.h
art
Framework
IO
Root
FastCloningInfoProvider.cc
Generated on Thu Jul 26 2018 13:09:40 for LArSoft by
1.8.11