Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-30 02:33:04

0001 #ifndef FWCore_Framework_global_EDAnalyzer_h
0002 #define FWCore_Framework_global_EDAnalyzer_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     FWCore/Framework
0006 // Class  :     edm::global::EDAnalyzer
0007 //
0008 /**\class edm::global::EDAnalyzer EDAnalyzer.h "FWCore/Framework/interface/global/EDAnalyzer.h"
0009 
0010  Description: [one line class summary]
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Thu, 18 Jul 2013 11:51:07 GMT
0019 //
0020 
0021 // system include files
0022 
0023 // user include files
0024 #include "FWCore/Framework/interface/global/analyzerAbilityToImplementor.h"
0025 #include "FWCore/Framework/interface/moduleAbilities.h"
0026 
0027 // forward declarations
0028 
0029 namespace edm {
0030   namespace global {
0031     template <typename... T>
0032     class EDAnalyzer : public analyzer::AbilityToImplementor<T>::Type..., public virtual EDAnalyzerBase {
0033     public:
0034       EDAnalyzer() = default;
0035       EDAnalyzer(const EDAnalyzer&) = delete;
0036       const EDAnalyzer& operator=(const EDAnalyzer&) = delete;
0037 
0038 // We do this only in the case of the intel compiler as this might
0039 // end up creating a lot of code bloat due to inline symbols being generated
0040 // in each DSO which uses this header.
0041 #ifdef __INTEL_COMPILER
0042       virtual ~EDAnalyzer() {}
0043 #endif
0044       // ---------- const member functions ---------------------
0045       bool wantsProcessBlocks() const final { return WantsProcessBlockTransitions<T...>::value; }
0046       bool wantsInputProcessBlocks() const final { return WantsInputProcessBlockTransitions<T...>::value; }
0047       bool wantsGlobalRuns() const final { return WantsGlobalRunTransitions<T...>::value; }
0048       bool wantsGlobalLuminosityBlocks() const final { return WantsGlobalLuminosityBlockTransitions<T...>::value; }
0049 
0050       bool wantsStreamRuns() const final { return WantsStreamRunTransitions<T...>::value; }
0051       bool wantsStreamLuminosityBlocks() const final { return WantsStreamLuminosityBlockTransitions<T...>::value; }
0052 
0053       // ---------- static member functions --------------------
0054 
0055       // ---------- member functions ---------------------------
0056 
0057     private:
0058       // ---------- member data --------------------------------
0059     };
0060 
0061   }  // namespace global
0062 }  // namespace edm
0063 
0064 #endif