Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-05-11 03:34:09

0001 #ifndef FWCore_Framework_global_EDFilter_h
0002 #define FWCore_Framework_global_EDFilter_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     FWCore/Framework
0006 // Class  :     edm::global::EDFilter
0007 //
0008 /**\class edm::global::EDFilter EDFilter.h "FWCore/Framework/interface/global/EDFilter.h"
0009 
0010  Description: [one line class summary]
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Tue, 23 Jul 2013 11:51:07 GMT
0019 //
0020 
0021 // system include files
0022 
0023 // user include files
0024 #include "FWCore/Framework/interface/global/filterAbilityToImplementor.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 EDFilter : public virtual EDFilterBase,
0033                      public filter::SpecializeAbilityToImplementor<
0034                          CheckAbility<edm::module::Abilities::kRunSummaryCache, T...>::kHasIt &
0035                              CheckAbility<edm::module::Abilities::kEndRunProducer, T...>::kHasIt,
0036                          CheckAbility<edm::module::Abilities::kLuminosityBlockSummaryCache, T...>::kHasIt &
0037                              CheckAbility<edm::module::Abilities::kEndLuminosityBlockProducer, T...>::kHasIt,
0038                          T>::Type... {
0039     public:
0040       EDFilter() = default;
0041       EDFilter(const EDFilter&) = delete;
0042       const EDFilter& operator=(const EDFilter&) = delete;
0043 
0044 // We do this only in the case of the intel compiler as this might
0045 // end up creating a lot of code bloat due to inline symbols being generated
0046 // in each DSO which uses this header.
0047 #ifdef __INTEL_COMPILER
0048       virtual ~EDFilter() = default;
0049 #endif
0050       // ---------- const member functions ---------------------
0051       bool wantsProcessBlocks() const noexcept final { return WantsProcessBlockTransitions<T...>::value; }
0052       bool wantsInputProcessBlocks() const noexcept final { return WantsInputProcessBlockTransitions<T...>::value; }
0053       bool wantsGlobalRuns() const noexcept final { return WantsGlobalRunTransitions<T...>::value; }
0054       bool wantsGlobalLuminosityBlocks() const noexcept final {
0055         return WantsGlobalLuminosityBlockTransitions<T...>::value;
0056       }
0057 
0058       bool wantsStreamRuns() const noexcept final { return WantsStreamRunTransitions<T...>::value; }
0059       bool wantsStreamLuminosityBlocks() const noexcept final {
0060         return WantsStreamLuminosityBlockTransitions<T...>::value;
0061       }
0062 
0063       bool hasAbilityToProduceInBeginProcessBlocks() const final {
0064         return HasAbilityToProduceInBeginProcessBlocks<T...>::value;
0065       }
0066       bool hasAbilityToProduceInEndProcessBlocks() const final {
0067         return HasAbilityToProduceInEndProcessBlocks<T...>::value;
0068       }
0069 
0070       bool hasAbilityToProduceInBeginRuns() const final { return HasAbilityToProduceInBeginRuns<T...>::value; }
0071       bool hasAbilityToProduceInEndRuns() const final { return HasAbilityToProduceInEndRuns<T...>::value; }
0072 
0073       bool hasAbilityToProduceInBeginLumis() const final { return HasAbilityToProduceInBeginLumis<T...>::value; }
0074       bool hasAbilityToProduceInEndLumis() const final { return HasAbilityToProduceInEndLumis<T...>::value; }
0075 
0076       // ---------- static member functions --------------------
0077 
0078       // ---------- member functions ---------------------------
0079 
0080     private:
0081       // ---------- member data --------------------------------
0082     };
0083 
0084   }  // namespace global
0085 }  // namespace edm
0086 
0087 #endif