1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
#ifndef FWCore_Framework_one_EDAnalyzer_h
#define FWCore_Framework_one_EDAnalyzer_h
// -*- C++ -*-
//
// Package: FWCore/Framework
// Class : edm::one::EDAnalyzer
//
/**\class edm::one::EDAnalyzer EDAnalyzer.h "FWCore/Framework/interface/one/EDAnalyzer.h"
Description: [one line class summary]
Usage:
<usage>
*/
//
// Original Author: Chris Jones
// Created: Thu, 01 Aug 2013 19:53:55 GMT
//
// system include files
// user include files
#include "FWCore/Framework/interface/one/analyzerAbilityToImplementor.h"
// forward declarations
namespace edm {
namespace one {
template <typename... T>
class EDAnalyzer : public virtual EDAnalyzerBase, public analyzer::AbilityToImplementor<T>::Type... {
public:
static_assert(not(CheckAbility<module::Abilities::kRunCache, T...>::kHasIt and
CheckAbility<module::Abilities::kOneWatchRuns, T...>::kHasIt),
"Cannot use both WatchRuns and RunCache");
static_assert(not(CheckAbility<module::Abilities::kLuminosityBlockCache, T...>::kHasIt and
CheckAbility<module::Abilities::kOneWatchLuminosityBlocks, T...>::kHasIt),
"Cannot use both WatchLuminosityBlocks and LuminosityBLockCache");
EDAnalyzer() = default;
EDAnalyzer(const EDAnalyzer&) = delete;
const EDAnalyzer& operator=(const EDAnalyzer&) = delete;
#ifdef __INTEL_COMPILER
virtual ~EDAnalyzer() = default;
#endif
// ---------- const member functions ---------------------
bool wantsProcessBlocks() const noexcept final { return WantsProcessBlockTransitions<T...>::value; }
bool wantsInputProcessBlocks() const noexcept final { return WantsInputProcessBlockTransitions<T...>::value; }
bool wantsGlobalRuns() const noexcept final { return WantsGlobalRunTransitions<T...>::value; }
bool wantsGlobalLuminosityBlocks() const noexcept final {
return WantsGlobalLuminosityBlockTransitions<T...>::value;
}
// ---------- static member functions --------------------
// ---------- member functions ---------------------------
SerialTaskQueue* globalRunsQueue() final { return globalRunsQueue_.queue(); }
SerialTaskQueue* globalLuminosityBlocksQueue() final { return globalLuminosityBlocksQueue_.queue(); }
private:
// ---------- member data --------------------------------
impl::OptionalSerialTaskQueueHolder<WantsSerialGlobalRunTransitions<T...>::value> globalRunsQueue_;
impl::OptionalSerialTaskQueueHolder<WantsSerialGlobalLuminosityBlockTransitions<T...>::value>
globalLuminosityBlocksQueue_;
};
} // namespace one
} // namespace edm
#endif
|