CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
popcon::PopConSourceHandler< T > Class Template Referenceabstract

#include <PopConSourceHandler.h>

Inheritance diagram for popcon::PopConSourceHandler< T >:
PixelPopConSourceHandler< T > popcon::PopConBTransitionSourceHandler< T > popcon::PopConESTransitionSourceHandler< T > popcon::SiStripPopConConfigDbObjHandler< T > popcon::SiStripPopConHandlerUnitTest< T > popcon::SiStripPopConHandlerUnitTestGain< T > popcon::SiStripPopConHandlerUnitTestNoise< T > SiStripDQMPopConSourceHandler< T >

Public Types

typedef std::map< Time_t, std::shared_ptr< T > > Container
 
typedef std::unique_ptr< TRef
 
typedef PopConSourceHandler< Tself
 
typedef cond::Time_t Time_t
 
typedef T value_type
 

Public Member Functions

virtual void getNewObjects ()=0
 
virtual std::string id () const =0
 
void initialize (const cond::persistency::Session &dbSession, cond::TagInfo_t const &tagInfo, cond::LogDBEntry_t const &logDBEntry)
 
Ref lastPayload () const
 
cond::LogDBEntry_t const & logDBEntry () const
 
std::pair< Container const *, std::string const > operator() (const cond::persistency::Session &session, cond::TagInfo_t const &tagInfo, cond::LogDBEntry_t const &logDBEntry) const
 
 PopConSourceHandler ()
 
Container const & returnData ()
 
cond::TagInfo_t const & tagInfo () const
 
std::string const & userTextLog () const
 
virtual ~PopConSourceHandler ()
 

Protected Member Functions

cond::persistency::SessiondbSession () const
 

Protected Attributes

Container m_iovs
 
std::vector< std::pair< T *, Time_t > > m_to_transfer
 
std::string m_userTextLog
 

Private Attributes

cond::LogDBEntry_t const * m_logDBEntry
 
cond::persistency::Session m_session
 
cond::TagInfo_t const * m_tagInfo
 

Detailed Description

template<class T>
class popcon::PopConSourceHandler< T >

Online DB source handler, aims at returning the vector of data to be transferred to the online database Subdetector developers inherit over this class with template parameter of payload class; need just to implement the getNewObjects method that loads the calibs, the sourceId methods that return a text identifier of the source, and provide a constructor that accept a ParameterSet

Definition at line 30 of file PopConSourceHandler.h.

Member Typedef Documentation

◆ Container

template<class T>
typedef std::map<Time_t, std::shared_ptr<T> > popcon::PopConSourceHandler< T >::Container

Definition at line 36 of file PopConSourceHandler.h.

◆ Ref

template<class T>
typedef std::unique_ptr<T> popcon::PopConSourceHandler< T >::Ref

Definition at line 37 of file PopConSourceHandler.h.

◆ self

template<class T>
typedef PopConSourceHandler<T> popcon::PopConSourceHandler< T >::self

Definition at line 33 of file PopConSourceHandler.h.

◆ Time_t

template<class T>
typedef cond::Time_t popcon::PopConSourceHandler< T >::Time_t

Definition at line 34 of file PopConSourceHandler.h.

◆ value_type

template<class T>
typedef T popcon::PopConSourceHandler< T >::value_type

Definition at line 32 of file PopConSourceHandler.h.

Constructor & Destructor Documentation

◆ PopConSourceHandler()

template<class T>
popcon::PopConSourceHandler< T >::PopConSourceHandler ( )
inline

Definition at line 39 of file PopConSourceHandler.h.

39 : m_tagInfo(nullptr), m_logDBEntry(nullptr) {}
cond::LogDBEntry_t const * m_logDBEntry
cond::TagInfo_t const * m_tagInfo

◆ ~PopConSourceHandler()

template<class T>
virtual popcon::PopConSourceHandler< T >::~PopConSourceHandler ( )
inlinevirtual

Definition at line 41 of file PopConSourceHandler.h.

41 {}

Member Function Documentation

◆ dbSession()

template<class T>
cond::persistency::Session& popcon::PopConSourceHandler< T >::dbSession ( ) const
inlineprotected

◆ getNewObjects()

template<class T>
virtual void popcon::PopConSourceHandler< T >::getNewObjects ( )
pure virtual

Implemented in LHCInfoPerFillPopConSourceHandler, LHCInfoPerLSPopConSourceHandler, popcon::PopConESTransitionSourceHandler< T >, popcon::PopConBTransitionSourceHandler< T >, popcon::EcalChannelStatusHandler, popcon::EcalDCSHandler, DTKeyedConfigHandler, DTUserKeyedConfigHandler, popcon::EcalTPGLutGroupHandler, popcon::EcalTPGSpikeThresholdHandler, popcon::EcalPedestalsHandler, popcon::EcalTPGFineGrainStripEEHandler, popcon::EcalTPGPedestalsHandler, DTHVStatusHandler, popcon::EcalADCToGeVHandler, popcon::EcalLaser_weekly_Handler, popcon::EcalLaserHandler, popcon::EcalTPGOddWeightGroupHandler, popcon::EcalTPGSlidingWindowHandler, popcon::EcalTPGWeightGroupHandler, popcon::EcalIntercalibHandler, popcon::EcalPFRecHitThresholdsHandler, popcon::EcalTPGFineGrainEBGroupHandler, popcon::EcalTPGFineGrainTowerEEHandler, popcon::SiStripPopConHandlerUnitTestGain< T >, popcon::SiStripPopConHandlerUnitTestNoise< T >, popcon::EcalDAQHandler, popcon::EcalTPGBadXTHandler, popcon::EcalTPGLinPed, popcon::EcalTPGPedfromFile, popcon::SiStripPopConHandlerUnitTest< T >, popcon::EcalTPGBadStripHandler, popcon::EcalTPGBadTTHandler, popcon::EcalTPGFineGrainEBIdMapHandler, popcon::EcalTPGLinConstHandler, popcon::EcalTPGLutIdMapHandler, popcon::EcalTPGOddWeightIdMapHandler, popcon::EcalTPGPhysicsConstHandler, popcon::EcalTPGTPModeHandler, popcon::EcalTPGWeightIdMapHandler, DTLVStatusHandler, DTDeadFlagHandler, DTPerformanceHandler, DTRangeT0Handler, DTReadOutMappingHandler, DTStatusFlagHandler, DTT0Handler, DTTPGParametersHandler, popcon::EcalLaser_weekly_Linearization, popcon::EcalLaser_weekly_Linearization_Check, popcon::EcalTPGPhysicsConstfromFile, popcon::EcalPulseShapesHandler, popcon::EcalPulseSymmCovariancesHandler, popcon::EcalSRPHandler, popcon::EcalTPGSpikeThresholdfromFile, popcon::RPCEMapSourceHandler, popcon::SiStripPopConConfigDbObjHandler< T >, EcalMappingElectronicsHandler, popcon::L1RPCHwConfigSourceHandler, SiStripDQMPopConSourceHandler< T >, SiStripDQMPopConSourceHandler< SiStripPedestals >, SiStripDQMPopConSourceHandler< SiStripNoises >, SiStripDQMPopConSourceHandler< SiStripBadStrip >, EcalFloatCondObjectContainerHandler, PixelPopConSourceHandler< T >, PixelPopConSourceHandler< SiPixelCalibConfiguration >, PixelPopConSourceHandler< SiPixelFedCablingMap >, PixelPopConSourceHandler< bool >, PixelPopConSourceHandler< SiPixelDisabledModules >, HcalLutMetadataHandler, popcon::RpcDataFebmap, popcon::RpcDataGasMix, popcon::RpcObGasData, popcon::RPCObPVSSmapData, popcon::RpcDataI, popcon::RpcDataS, popcon::RpcDataT, popcon::RpcDataUXC, popcon::RpcDataV, RPCLBLinkMapHandler, CastorChannelQualityHandler, CastorElectronicsMapHandler, CastorGainsHandler, CastorGainWidthsHandler, CastorPedestalsHandler, CastorPedestalWidthsHandler, CastorQIEDataHandler, CastorRecoParamsHandler, HcalChannelQualityHandler, HcalDcsMapHandler, HcalDcsValuesHandler, HcalElectronicsMapHandler, HcalFlagHFDigiTimeParamsHandler, HcalGainsHandler, HcalGainWidthsHandler, HcalL1TriggerObjectsHandler, HcalLongRecoParamsHandler, HcalLUTCorrsHandler, HcalMCParamsHandler, HcalPedestalsHandler, HcalPedestalWidthsHandler, HcalPFCorrsHandler, HcalQIEDataHandler, HcalQIETypesHandler, HcalRecoParamsHandler, HcalRespCorrsHandler, HcalTimeCorrsHandler, HcalTimingParamsHandler, HcalValidationCorrsHandler, HcalZSThresholdsHandler, popcon::EcalTPGFineGrainStripfromFile, popcon::EcalTPGFineGrainTowerfromFile, CastorSaturationCorrsHandler, HcalFrontEndMapHandler, HcalSiPMCharacteristicsHandler, HcalSiPMParametersHandler, HcalTPChannelParametersHandler, HcalTPParametersHandler, HcalZDCLowGainFractionsHandler, RPCAMCLinkMapHandler, RPCDCCLinkMapHandler, RPCDBPerformanceHandler, LHCInfoPopConSourceHandler, EcalCondHandler< Payload, XMLTranslator >, popcon::DQMSummarySourceHandler, popcon::DQMXMLFileSourceHandler, BeamSpotOnlinePopConSourceHandler, HcalPFCutsHandler, FillInfoPopConSourceHandler, RunInfoHandler, RunSummaryHandler, RPCDBHandler, and L1TriggerScalerHandler.

Referenced by popcon::PopConSourceHandler< CastorPedestals >::returnData().

◆ id()

template<class T>
virtual std::string popcon::PopConSourceHandler< T >::id ( ) const
pure virtual

Implemented in LHCInfoPerFillPopConSourceHandler, LHCInfoPerLSPopConSourceHandler, popcon::SiStripPopConHandlerUnitTest< T >, popcon::SiStripPopConHandlerUnitTestGain< T >, popcon::SiStripPopConHandlerUnitTestNoise< T >, popcon::SiStripPopConConfigDbObjHandler< T >, popcon::EcalChannelStatusHandler, popcon::EcalDCSHandler, popcon::EcalPedestalsHandler, DTKeyedConfigHandler, DTUserKeyedConfigHandler, popcon::EcalLaserHandler, popcon::EcalTPGLutGroupHandler, popcon::EcalTPGSpikeThresholdHandler, popcon::EcalLaser_weekly_Handler, popcon::EcalIntercalibHandler, popcon::EcalTPGFineGrainStripEEHandler, popcon::EcalTPGPedestalsHandler, popcon::EcalADCToGeVHandler, popcon::EcalPFRecHitThresholdsHandler, popcon::EcalTPGFineGrainTowerEEHandler, popcon::EcalTPGOddWeightGroupHandler, popcon::EcalTPGSlidingWindowHandler, popcon::EcalTPGWeightGroupHandler, DTHVStatusHandler, popcon::EcalTPGLinPed, popcon::EcalTPGPedfromFile, popcon::EcalTPGBadStripHandler, popcon::EcalTPGBadTTHandler, popcon::EcalTPGFineGrainEBGroupHandler, popcon::EcalTPGBadXTHandler, popcon::EcalDAQHandler, popcon::EcalLaser_weekly_Linearization, popcon::EcalLaser_weekly_Linearization_Check, popcon::EcalTPGFineGrainEBIdMapHandler, popcon::EcalTPGLinConstHandler, popcon::EcalTPGLutIdMapHandler, popcon::EcalTPGOddWeightIdMapHandler, popcon::EcalTPGPhysicsConstHandler, popcon::EcalTPGTPModeHandler, popcon::EcalTPGWeightIdMapHandler, popcon::EcalTPGSpikeThresholdfromFile, DTLVStatusHandler, popcon::EcalTPGPhysicsConstfromFile, DTDeadFlagHandler, DTPerformanceHandler, DTRangeT0Handler, DTReadOutMappingHandler, DTStatusFlagHandler, DTT0Handler, DTTPGParametersHandler, popcon::EcalPulseShapesHandler, popcon::EcalPulseSymmCovariancesHandler, popcon::EcalSRPHandler, popcon::RPCEMapSourceHandler, PixelPopConSourceHandler< T >, PixelPopConSourceHandler< SiPixelCalibConfiguration >, PixelPopConSourceHandler< SiPixelFedCablingMap >, PixelPopConSourceHandler< bool >, PixelPopConSourceHandler< SiPixelDisabledModules >, popcon::PopConESTransitionSourceHandler< T >, EcalMappingElectronicsHandler, popcon::L1RPCHwConfigSourceHandler, popcon::PopConBTransitionSourceHandler< T >, PixelPopConCalibSourceHandler, SiStripDQMPopConSourceHandler< T >, SiStripDQMPopConSourceHandler< SiStripPedestals >, SiStripDQMPopConSourceHandler< SiStripNoises >, SiStripDQMPopConSourceHandler< SiStripBadStrip >, EcalFloatCondObjectContainerHandler, HcalLutMetadataHandler, popcon::RpcDataFebmap, popcon::RpcDataGasMix, popcon::RpcObGasData, popcon::RPCObPVSSmapData, popcon::RpcDataI, popcon::RpcDataS, popcon::RpcDataT, popcon::RpcDataUXC, popcon::RpcDataV, RPCLBLinkMapHandler, popcon::EcalTPGFineGrainStripfromFile, popcon::EcalTPGFineGrainTowerfromFile, CastorChannelQualityHandler, CastorElectronicsMapHandler, CastorGainsHandler, CastorGainWidthsHandler, CastorPedestalsHandler, CastorPedestalWidthsHandler, CastorQIEDataHandler, CastorRecoParamsHandler, HcalChannelQualityHandler, HcalDcsMapHandler, HcalDcsValuesHandler, HcalElectronicsMapHandler, HcalFlagHFDigiTimeParamsHandler, HcalGainsHandler, HcalGainWidthsHandler, HcalL1TriggerObjectsHandler, HcalLongRecoParamsHandler, HcalLUTCorrsHandler, HcalMCParamsHandler, HcalPedestalsHandler, HcalPedestalWidthsHandler, HcalPFCorrsHandler, HcalQIEDataHandler, HcalQIETypesHandler, HcalRecoParamsHandler, HcalRespCorrsHandler, HcalTimeCorrsHandler, HcalTimingParamsHandler, HcalValidationCorrsHandler, HcalZSThresholdsHandler, EcalCondHandler< Payload, XMLTranslator >, CastorSaturationCorrsHandler, HcalFrontEndMapHandler, HcalSiPMCharacteristicsHandler, HcalSiPMParametersHandler, HcalTPChannelParametersHandler, HcalTPParametersHandler, HcalZDCLowGainFractionsHandler, RPCAMCLinkMapHandler, RPCDBPerformanceHandler, RPCDCCLinkMapHandler, LHCInfoPopConSourceHandler, popcon::DQMSummarySourceHandler, popcon::DQMXMLFileSourceHandler, BeamSpotOnlinePopConSourceHandler, HcalPFCutsHandler, FillInfoPopConSourceHandler, RunInfoHandler, RunSummaryHandler, RPCDBHandler, and L1TriggerScalerHandler.

◆ initialize()

template<class T>
void popcon::PopConSourceHandler< T >::initialize ( const cond::persistency::Session dbSession,
cond::TagInfo_t const &  tagInfo,
cond::LogDBEntry_t const &  logDBEntry 
)
inline

Definition at line 52 of file PopConSourceHandler.h.

Referenced by popcon::PopConSourceHandler< CastorPedestals >::operator()().

54  {
56  m_tagInfo = &tagInfo;
58  }
cond::LogDBEntry_t const * m_logDBEntry
cond::TagInfo_t const & tagInfo() const
cond::LogDBEntry_t const & logDBEntry() const
cond::persistency::Session & dbSession() const
cond::TagInfo_t const * m_tagInfo
cond::persistency::Session m_session

◆ lastPayload()

template<class T>
Ref popcon::PopConSourceHandler< T >::lastPayload ( ) const
inline

Definition at line 46 of file PopConSourceHandler.h.

Iov_t lastInterval
Definition: Types.h:73
std::unique_ptr< T > fetchPayload(const cond::Hash &payloadHash)
Definition: Session.h:213
cond::TagInfo_t const & tagInfo() const
Hash payloadId
Definition: Types.h:55
cond::persistency::Session m_session
long double T

◆ logDBEntry()

template<class T>
cond::LogDBEntry_t const& popcon::PopConSourceHandler< T >::logDBEntry ( ) const
inline

◆ operator()()

template<class T>
std::pair<Container const*, std::string const> popcon::PopConSourceHandler< T >::operator() ( const cond::persistency::Session session,
cond::TagInfo_t const &  tagInfo,
cond::LogDBEntry_t const &  logDBEntry 
) const
inline

Definition at line 61 of file PopConSourceHandler.h.

63  {
64  const_cast<self*>(this)->initialize(session, tagInfo, logDBEntry);
65  return std::pair<Container const*, std::string const>(&(const_cast<self*>(this)->returnData()), userTextLog());
66  }
PopConSourceHandler< T > self
cond::TagInfo_t const & tagInfo() const
void initialize(const cond::persistency::Session &dbSession, cond::TagInfo_t const &tagInfo, cond::LogDBEntry_t const &logDBEntry)
Container const & returnData()
cond::LogDBEntry_t const & logDBEntry() const
std::string const & userTextLog() const

◆ returnData()

template<class T>
Container const& popcon::PopConSourceHandler< T >::returnData ( )
inline

Definition at line 68 of file PopConSourceHandler.h.

Referenced by popcon::PopConSourceHandler< CastorPedestals >::operator()().

68  {
69  getNewObjects();
70  for (auto item : m_to_transfer) {
71  std::shared_ptr<T> payload(item.first);
72  m_iovs.insert(std::make_pair(item.second, payload));
73  }
74  return m_iovs;
75  }
virtual void getNewObjects()=0
std::vector< std::pair< T *, Time_t > > m_to_transfer

◆ tagInfo()

template<class T>
cond::TagInfo_t const& popcon::PopConSourceHandler< T >::tagInfo ( ) const
inline

◆ userTextLog()

template<class T>
std::string const& popcon::PopConSourceHandler< T >::userTextLog ( ) const
inline

Member Data Documentation

◆ m_iovs

template<class T>
Container popcon::PopConSourceHandler< T >::m_iovs
protected

◆ m_logDBEntry

template<class T>
cond::LogDBEntry_t const* popcon::PopConSourceHandler< T >::m_logDBEntry
private

◆ m_session

template<class T>
cond::persistency::Session popcon::PopConSourceHandler< T >::m_session
mutableprivate

◆ m_tagInfo

template<class T>
cond::TagInfo_t const* popcon::PopConSourceHandler< T >::m_tagInfo
private

◆ m_to_transfer

template<class T>
std::vector<std::pair<T*, Time_t> > popcon::PopConSourceHandler< T >::m_to_transfer
protected

◆ m_userTextLog

template<class T>
std::string popcon::PopConSourceHandler< T >::m_userTextLog
protected