LArSoft
v09_90_00
Liquid Argon Software toolkit - https://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
// vim: set sw=2 expandtab :
4
5
#include "
art/Framework/Principal/ExecutionCounts.h
"
6
#include "
canvas/Persistency/Provenance/IDNumber.h
"
7
8
namespace
art
{
9
10
template
<Level,
typename
T>
11
class
MaybeIncrementCounts
{
12
13
public
:
14
MaybeIncrementCounts
(T&) {}
15
16
public
:
17
template
<
typename
... ARGS>
18
void
19
increment
()
20
{}
21
22
void
23
update
(
bool
const
)
24
{}
25
};
26
27
template
<
typename
T>
28
class
MaybeIncrementCounts
<
Level
::
Event
, T> {
29
30
public
:
31
MaybeIncrementCounts
(T& t) : t_{t} {}
32
33
template
<
typename
... ARGS>
34
void
35
increment
()
36
{
37
t_.template
increment
<ARGS...>();
38
}
39
40
void
41
update
(
bool
const
rc)
42
{
43
t_.update(rc);
44
}
45
46
private
:
47
T&
t_
;
48
};
49
50
}
// namespace art
51
52
#endif
/* art_Framework_Principal_MaybeIncrementCounts_h */
53
54
// Local variables:
55
// mode: c++
56
// End:
art::MaybeIncrementCounts< Level::Event, T >::MaybeIncrementCounts
MaybeIncrementCounts(T &t)
Definition:
MaybeIncrementCounts.h:31
art::Level
Level
Definition:
Level.h:13
ExecutionCounts.h
art::MaybeIncrementCounts::update
void update(bool const)
Definition:
MaybeIncrementCounts.h:23
art::MaybeIncrementCounts::increment
void increment()
Definition:
MaybeIncrementCounts.h:19
IDNumber.h
art::MaybeIncrementCounts< Level::Event, T >::t_
T & t_
Definition:
MaybeIncrementCounts.h:47
art::Event
Definition:
Event.h:26
art::MaybeIncrementCounts< Level::Event, T >::update
void update(bool const rc)
Definition:
MaybeIncrementCounts.h:41
art::MaybeIncrementCounts
Definition:
MaybeIncrementCounts.h:11
art::MaybeIncrementCounts< Level::Event, T >::increment
void increment()
Definition:
MaybeIncrementCounts.h:35
art
Definition:
MVAAlg.h:12
art::MaybeIncrementCounts::MaybeIncrementCounts
MaybeIncrementCounts(T &)
Definition:
MaybeIncrementCounts.h:14
art
Framework
Principal
MaybeIncrementCounts.h
Generated on Thu May 2 2024 20:59:29 for LArSoft by
1.8.11