File indexing completed on 2023-03-17 11:01:53
0001 #ifndef FWCore_Framework_limited_EDAnalyzer_h
0002 #define FWCore_Framework_limited_EDAnalyzer_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include "FWCore/Framework/interface/limited/analyzerAbilityToImplementor.h"
0025 #include "FWCore/Framework/interface/moduleAbilities.h"
0026
0027
0028
0029 namespace edm {
0030 namespace limited {
0031 template <typename... T>
0032 class EDAnalyzer : public analyzer::AbilityToImplementor<T>::Type..., public virtual EDAnalyzerBase {
0033 public:
0034 EDAnalyzer(edm::ParameterSet const& iPSet)
0035 : EDAnalyzerBase(iPSet), analyzer::AbilityToImplementor<T>::Type(iPSet)... {}
0036
0037
0038
0039 #ifdef __INTEL_COMPILER
0040 virtual ~EDAnalyzer() {}
0041 #endif
0042
0043 bool wantsProcessBlocks() const final { return WantsProcessBlockTransitions<T...>::value; }
0044 bool wantsInputProcessBlocks() const final { return WantsInputProcessBlockTransitions<T...>::value; }
0045 bool wantsGlobalRuns() const final { return WantsGlobalRunTransitions<T...>::value; }
0046 bool wantsGlobalLuminosityBlocks() const final { return WantsGlobalLuminosityBlockTransitions<T...>::value; }
0047 bool wantsStreamRuns() const final { return WantsStreamRunTransitions<T...>::value; }
0048 bool wantsStreamLuminosityBlocks() const final { return WantsStreamLuminosityBlockTransitions<T...>::value; }
0049
0050
0051
0052
0053
0054 private:
0055 EDAnalyzer(const EDAnalyzer&) = delete;
0056
0057 const EDAnalyzer& operator=(const EDAnalyzer&) = delete;
0058
0059
0060 };
0061
0062 }
0063 }
0064
0065 #endif