src
FWCore
Integration
plugins
ThingAlgorithm.h
Go to the documentation of this file.
1
#ifndef Integration_ThingAlgorithm_h
2
#define Integration_ThingAlgorithm_h
3
7
#include "DataFormats/TestObjects/interface/ThingCollectionfwd.h"
8
#include <atomic>
9
10
namespace
edmtest
{
11
class
ThingAlgorithm
{
12
public
:
13
ThingAlgorithm
(
long
iOffsetDelta = 0,
int
nThings = 20,
bool
grow =
false
)
14
:
offset_
(0),
offsetDelta_
(iOffsetDelta),
nThings_
(nThings),
grow_
(grow) {}
15
18
void
run
(ThingCollection& thingCollection)
const
;
19
20
private
:
21
mutable
std::atomic<long>
offset_
;
22
const
long
offsetDelta_
;
23
const
int
nThings_
;
24
const
bool
grow_
;
25
};
26
27
}
// namespace edmtest
28
29
#endif
edmtest::ThingAlgorithm
Definition:
ThingAlgorithm.h:11
edmtest
Definition:
AlignPCLThresholdsReader.cc:15
edmtest::ThingAlgorithm::nThings_
const int nThings_
Definition:
ThingAlgorithm.h:23
edmtest::ThingAlgorithm::grow_
const bool grow_
Definition:
ThingAlgorithm.h:24
edmtest::ThingAlgorithm::ThingAlgorithm
ThingAlgorithm(long iOffsetDelta=0, int nThings=20, bool grow=false)
Definition:
ThingAlgorithm.h:13
edmtest::ThingAlgorithm::offset_
std::atomic< long > offset_
Definition:
ThingAlgorithm.h:21
edmtest::ThingAlgorithm::run
void run(ThingCollection &thingCollection) const
Definition:
ThingAlgorithm.cc:5
edmtest::ThingAlgorithm::offsetDelta_
const long offsetDelta_
Definition:
ThingAlgorithm.h:22
Generated for CMSSW Reference Manual by
1.8.14