CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
edm::global::impl::LuminosityBlockCacheHolder< T, C > Class Template Referenceabstract

#include <implementors.h>

Inheritance diagram for edm::global::impl::LuminosityBlockCacheHolder< T, C >:

Public Member Functions

 LuminosityBlockCacheHolder ()=default
 
 LuminosityBlockCacheHolder (LuminosityBlockCacheHolder< T, C > const &)=delete
 
LuminosityBlockCacheHolder< T, C > & operator= (LuminosityBlockCacheHolder< T, C > const &)=delete
 
 ~LuminosityBlockCacheHolder ()(false) override
 

Protected Member Functions

C const * luminosityBlockCache (edm::LuminosityBlockIndex iID) const
 
void preallocLumis (unsigned int iNLumis) final
 

Private Member Functions

void doBeginLuminosityBlock_ (LuminosityBlock const &lp, EventSetup const &c) final
 
void doEndLuminosityBlock_ (LuminosityBlock const &lp, EventSetup const &c) final
 
virtual std::shared_ptr< C > globalBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) const =0
 
virtual void globalEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) const =0
 

Private Attributes

std::unique_ptr< std::shared_ptr< C >[]> caches_
 

Detailed Description

template<typename T, typename C>
class edm::global::impl::LuminosityBlockCacheHolder< T, C >

Definition at line 114 of file implementors.h.

Constructor & Destructor Documentation

template<typename T , typename C >
edm::global::impl::LuminosityBlockCacheHolder< T, C >::LuminosityBlockCacheHolder ( )
default
template<typename T , typename C >
edm::global::impl::LuminosityBlockCacheHolder< T, C >::LuminosityBlockCacheHolder ( LuminosityBlockCacheHolder< T, C > const &  )
delete
template<typename T , typename C >
edm::global::impl::LuminosityBlockCacheHolder< T, C >::~LuminosityBlockCacheHolder ( )
inlineoverride

Definition at line 119 of file implementors.h.

119 {};

Member Function Documentation

template<typename T , typename C >
void edm::global::impl::LuminosityBlockCacheHolder< T, C >::doBeginLuminosityBlock_ ( LuminosityBlock const &  lp,
EventSetup const &  c 
)
inlinefinalprivate

Definition at line 127 of file implementors.h.

References EnergyCorrector::c.

127  {
128  caches_[lp.index()] = globalBeginLuminosityBlock(lp, c);
129  }
std::unique_ptr< std::shared_ptr< C >[]> caches_
Definition: implementors.h:139
virtual std::shared_ptr< C > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const =0
template<typename T , typename C >
void edm::global::impl::LuminosityBlockCacheHolder< T, C >::doEndLuminosityBlock_ ( LuminosityBlock const &  lp,
EventSetup const &  c 
)
inlinefinalprivate

Definition at line 130 of file implementors.h.

References EnergyCorrector::c.

130  {
132  caches_[lp.index()].reset();
133  }
virtual void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const =0
std::unique_ptr< std::shared_ptr< C >[]> caches_
Definition: implementors.h:139
template<typename T , typename C >
virtual std::shared_ptr<C> edm::global::impl::LuminosityBlockCacheHolder< T, C >::globalBeginLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
) const
privatepure virtual
template<typename T , typename C >
virtual void edm::global::impl::LuminosityBlockCacheHolder< T, C >::globalEndLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
) const
privatepure virtual
template<typename T , typename C >
C const* edm::global::impl::LuminosityBlockCacheHolder< T, C >::luminosityBlockCache ( edm::LuminosityBlockIndex  iID) const
inlineprotected

Definition at line 124 of file implementors.h.

124 { return caches_[iID].get(); }
std::unique_ptr< std::shared_ptr< C >[]> caches_
Definition: implementors.h:139
template<typename T , typename C >
LuminosityBlockCacheHolder<T, C>& edm::global::impl::LuminosityBlockCacheHolder< T, C >::operator= ( LuminosityBlockCacheHolder< T, C > const &  )
delete
template<typename T , typename C >
void edm::global::impl::LuminosityBlockCacheHolder< T, C >::preallocLumis ( unsigned int  iNLumis)
inlinefinalprotected

Definition at line 122 of file implementors.h.

122 { caches_.reset(new std::shared_ptr<C>[iNLumis]); }
std::unique_ptr< std::shared_ptr< C >[]> caches_
Definition: implementors.h:139

Member Data Documentation

template<typename T , typename C >
std::unique_ptr<std::shared_ptr<C>[]> edm::global::impl::LuminosityBlockCacheHolder< T, C >::caches_
private

Definition at line 139 of file implementors.h.