CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HcalZDCLowGainFractionsHandler Class Reference

#include <HcalZDCLowGainFractionsHandler.h>

Inheritance diagram for HcalZDCLowGainFractionsHandler:
popcon::PopConSourceHandler< HcalZDCLowGainFractions >

Public Member Functions

void getNewObjects ()
 
 HcalZDCLowGainFractionsHandler (edm::ParameterSet const &)
 
std::string id () const
 
void initObject (HcalZDCLowGainFractions *)
 
 ~HcalZDCLowGainFractionsHandler ()
 
- Public Member Functions inherited from popcon::PopConSourceHandler< HcalZDCLowGainFractions >
void convertFromOld ()
 
SummarydummySummary (typename OldContainer::value_type const &) const
 
void initialize (const cond::persistency::Session &dbSession, cond::TagInfo_t const &tagInfo, cond::LogDBEntry const &logDBEntry)
 
Ref lastPayload () const
 
cond::LogDBEntry const & logDBEntry () const
 
std::pair< Container const
*, std::string const > 
operator() (const cond::persistency::Session &session, cond::TagInfo_t const &tagInfo, cond::LogDBEntry const &logDBEntry) const
 
 PopConSourceHandler ()
 
Container const & returnData ()
 
void sort ()
 
cond::TagInfo_t const & tagInfo () const
 
std::string const & userTextLog () const
 
virtual ~PopConSourceHandler ()
 

Private Attributes

edm::FileInPath fFile
 
std::string m_name
 
HcalZDCLowGainFractionsmyDBObject
 
unsigned int sinceTime
 

Additional Inherited Members

- Public Types inherited from popcon::PopConSourceHandler< HcalZDCLowGainFractions >
typedef std::vector< TripletContainer
 
typedef std::vector< std::pair
< HcalZDCLowGainFractions
*, cond::Time_t > > 
OldContainer
 
typedef PopConSourceHandler
< HcalZDCLowGainFractions
self
 
typedef cond::Summary Summary
 
typedef cond::Time_t Time_t
 
typedef HcalZDCLowGainFractions value_type
 
- Protected Member Functions inherited from popcon::PopConSourceHandler< HcalZDCLowGainFractions >
int add (value_type *payload, Summary *summary, Time_t time)
 
- Protected Attributes inherited from popcon::PopConSourceHandler< HcalZDCLowGainFractions >
OldContainer m_to_transfer
 
std::string m_userTextLog
 

Detailed Description

Definition at line 22 of file HcalZDCLowGainFractionsHandler.h.

Constructor & Destructor Documentation

HcalZDCLowGainFractionsHandler::~HcalZDCLowGainFractionsHandler ( )

Definition at line 12 of file HcalZDCLowGainFractionsHandler.cc.

13 {
14 }
HcalZDCLowGainFractionsHandler::HcalZDCLowGainFractionsHandler ( edm::ParameterSet const &  ps)

Definition at line 6 of file HcalZDCLowGainFractionsHandler.cc.

References edm::ParameterSet::getUntrackedParameter(), m_name, sinceTime, and AlCaHLTBitMon_QueryRunRegistry::string.

7 {
8  m_name = ps.getUntrackedParameter<std::string>("name","HcalZDCLowGainFractionsHandler");
9  sinceTime = ps.getUntrackedParameter<unsigned>("IOVRun",0);
10 }

Member Function Documentation

void HcalZDCLowGainFractionsHandler::getNewObjects ( )
virtual

Implements popcon::PopConSourceHandler< HcalZDCLowGainFractions >.

Definition at line 16 of file HcalZDCLowGainFractionsHandler.cc.

References edm::hlt::Exception, cond::TagInfo_t::lastInterval, m_name, popcon::PopConSourceHandler< HcalZDCLowGainFractions >::m_to_transfer, myDBObject, cond::TagInfo_t::name, sinceTime, cond::TagInfo_t::size, and popcon::PopConSourceHandler< HcalZDCLowGainFractions >::tagInfo().

17 {
18  edm::LogInfo("HcalZDCLowGainFractionsHandler")
19  << "------- " << m_name
20  << " - > getNewObjects\n" <<
21  //check whats already inside of database
22  "got offlineInfo"<<
23  tagInfo().name << ", size " << tagInfo().size
24  << ", last object valid since "
25  << tagInfo().lastInterval.first << std::endl;
26 
27  if (!myDBObject)
28  throw cms::Exception("Empty DB object") << m_name
29  << " has received empty object - nothing to write to DB"
30  << std::endl;
31 
32  // IOV information
33  cond::Time_t myTime = sinceTime;
34 
35  edm::LogInfo("HcalZDCLowGainFractionsHandler") << "Using IOV run " << sinceTime << std::endl;
36 
37  // prepare for transfer:
38  m_to_transfer.push_back(std::make_pair(myDBObject,myTime));
39 
40  edm::LogInfo("HcalZDCLowGainFractionsHandler") << "------- " << m_name << " - > getNewObjects" << std::endl;
41 
42 }
size_t size
Definition: Types.h:72
std::string name
Definition: Types.h:68
cond::ValidityInterval lastInterval
Definition: Types.h:70
unsigned long long Time_t
Definition: Time.h:16
std::string HcalZDCLowGainFractionsHandler::id ( void  ) const
inlinevirtual
void HcalZDCLowGainFractionsHandler::initObject ( HcalZDCLowGainFractions fObject)

Definition at line 44 of file HcalZDCLowGainFractionsHandler.cc.

References myDBObject.

Referenced by HcalZDCLowGainFractionsPopConAnalyzer::endJob().

45 {
46  myDBObject = fObject;
47 }

Member Data Documentation

edm::FileInPath HcalZDCLowGainFractionsHandler::fFile
private

Definition at line 34 of file HcalZDCLowGainFractionsHandler.h.

std::string HcalZDCLowGainFractionsHandler::m_name
private
HcalZDCLowGainFractions* HcalZDCLowGainFractionsHandler::myDBObject
private

Definition at line 35 of file HcalZDCLowGainFractionsHandler.h.

Referenced by getNewObjects(), and initObject().

unsigned int HcalZDCLowGainFractionsHandler::sinceTime
private