LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
MaybeIncrementCounts.h
Go to the documentation of this file.
1
#ifndef art_Framework_Principal_MaybeIncrementCounts_h
2
#define art_Framework_Principal_MaybeIncrementCounts_h
3
4
#include "
art/Framework/Principal/ExecutionCounts.h
"
5
#include "
canvas/Persistency/Provenance/IDNumber.h
"
6
7
namespace
art
{
8
template
<Level,
typename
T>
9
class
MaybeIncrementCounts
{
10
public
:
11
MaybeIncrementCounts
(T&) {}
12
13
template
<
typename
... ARGS>
14
void
15
increment
()
16
{}
17
void
18
update
(
bool
const
)
19
{}
20
};
21
22
template
<
typename
T>
23
class
MaybeIncrementCounts
<
Level
::
Event
, T> {
24
public
:
25
MaybeIncrementCounts
(T& t) : t_{t} {}
26
27
template
<
typename
... ARGS>
28
void
29
increment
()
30
{
31
t_.template
increment
<ARGS...>();
32
}
33
void
34
update
(
bool
const
rc)
35
{
36
t_.update(rc);
37
}
38
39
private
:
40
T&
t_
;
41
};
42
}
43
44
#endif
/* art_Framework_Principal_MaybeIncrementCounts_h */
45
46
// Local variables:
47
// mode: c++
48
// End:
art::MaybeIncrementCounts< Level::Event, T >::MaybeIncrementCounts
MaybeIncrementCounts(T &t)
Definition:
MaybeIncrementCounts.h:25
art::Level
Level
Definition:
Level.h:12
ExecutionCounts.h
art::MaybeIncrementCounts::update
void update(bool const)
Definition:
MaybeIncrementCounts.h:18
art::MaybeIncrementCounts::increment
void increment()
Definition:
MaybeIncrementCounts.h:15
IDNumber.h
art::MaybeIncrementCounts< Level::Event, T >::t_
T & t_
Definition:
MaybeIncrementCounts.h:40
art::Event
Definition:
Event.h:42
art::MaybeIncrementCounts< Level::Event, T >::update
void update(bool const rc)
Definition:
MaybeIncrementCounts.h:34
art::MaybeIncrementCounts
Definition:
MaybeIncrementCounts.h:9
art::MaybeIncrementCounts< Level::Event, T >::increment
void increment()
Definition:
MaybeIncrementCounts.h:29
art
HLT enums.
Definition:
ServiceProviderWrappers.h:36
art::MaybeIncrementCounts::MaybeIncrementCounts
MaybeIncrementCounts(T &)
Definition:
MaybeIncrementCounts.h:11
art
Framework
Principal
MaybeIncrementCounts.h
Generated on Thu Jul 26 2018 13:09:42 for LArSoft by
1.8.11