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
|
#ifndef FWCore_Framework_stream_EDAnalyzer_h
#define FWCore_Framework_stream_EDAnalyzer_h
// -*- C++ -*-
//
// Package: FWCore/Framework
// Class : EDAnalyzer
//
/**\class edm::stream::EDAnalyzer EDAnalyzer.h "FWCore/Framework/interface/stream/EDAnalyzer.h"
Description: Base class for stream based EDAnalyzers
Usage:
<usage>
*/
//
// Original Author: Chris Jones
// Created: Thu, 01 Aug 2013 21:41:42 GMT
//
#include "FWCore/Framework/interface/stream/AbilityToImplementor.h"
#include "FWCore/Framework/interface/stream/CacheContexts.h"
#include "FWCore/Framework/interface/stream/Contexts.h"
#include "FWCore/Framework/interface/stream/AbilityChecker.h"
#include "FWCore/Framework/interface/stream/EDAnalyzerBase.h"
namespace edm {
namespace stream {
template <typename... T>
class EDAnalyzer : public AbilityToImplementor<T>::Type..., public EDAnalyzerBase {
public:
using CacheTypes = CacheContexts<T...>;
using GlobalCache = typename CacheTypes::GlobalCache;
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache;
using RunCache = typename CacheTypes::RunCache;
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache;
using RunContext = RunContextT<RunCache, GlobalCache>;
using LuminosityBlockContext = LuminosityBlockContextT<LuminosityBlockCache, RunCache, GlobalCache>;
using RunSummaryCache = typename CacheTypes::RunSummaryCache;
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache;
using HasAbility = AbilityChecker<T...>;
using EDAnalyzerBase::callWhenNewProductsRegistered;
EDAnalyzer() = default;
EDAnalyzer(const EDAnalyzer&) = delete;
const EDAnalyzer& operator=(const EDAnalyzer&) = delete;
};
} // namespace stream
} // namespace edm
#endif
|