CMS 3D CMS Logo

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

#include <EcalADCToGeVHandler.h>

Inheritance diagram for popcon::EcalADCToGeVHandler:
popcon::PopConSourceHandler< EcalADCToGeVConstant >

Public Member Functions

 EcalADCToGeVHandler (edm::ParameterSet const &)
 
void getNewObjects ()
 
std::string id () const
 
 ~EcalADCToGeVHandler ()
 
- Public Member Functions inherited from popcon::PopConSourceHandler< EcalADCToGeVConstant >
void convertFromOld ()
 
SummarydummySummary (typename OldContainer::value_type const &) const
 
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 ()
 
void sort ()
 
cond::TagInfo_t const & tagInfo () const
 
std::string const & userTextLog () const
 
virtual ~PopConSourceHandler ()
 

Public Attributes

EcalCondDBInterfaceeconn
 

Private Attributes

std::string m_file_highfield
 
std::string m_file_lowfield
 
unsigned int m_firstRun
 
std::string m_gentag
 
unsigned int m_lastRun
 
std::string m_location
 
std::string m_locationsource
 
std::string m_name
 
std::string m_pass
 
std::string m_sid
 
std::string m_user
 
const EcalADCToGeVConstantmyintercalib
 

Additional Inherited Members

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

Detailed Description

Definition at line 56 of file EcalADCToGeVHandler.h.

Constructor & Destructor Documentation

popcon::EcalADCToGeVHandler::EcalADCToGeVHandler ( edm::ParameterSet const &  ps)

Definition at line 9 of file EcalADCToGeVHandler.cc.

References gather_cfg::cout, edm::ParameterSet::getParameter(), m_file_highfield, m_firstRun, and AlCaHLTBitMon_QueryRunRegistry::string.

10  : m_name(ps.getUntrackedParameter<std::string>("name","EcalADCToGeVHandler")) {
11 
12  std::cout << "EcalADCToGeV Source handler constructor\n" << std::endl;
13  m_firstRun = static_cast<unsigned int>(atoi( ps.getParameter<std::string>("firstRun").c_str()));
14  m_file_highfield = ps.getParameter<std::string>("InputFile");
15 }
tuple cout
Definition: gather_cfg.py:145
popcon::EcalADCToGeVHandler::~EcalADCToGeVHandler ( )

Definition at line 17 of file EcalADCToGeVHandler.cc.

17 {}

Member Function Documentation

void popcon::EcalADCToGeVHandler::getNewObjects ( )
virtual

Implements popcon::PopConSourceHandler< EcalADCToGeVConstant >.

Definition at line 20 of file EcalADCToGeVHandler.cc.

References gather_cfg::cout, EcalADCToGeVXMLTranslator::readXML(), contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.

20  {
21 
22  std::cout << "------- Ecal - > getNewObjects\n";
23 
24  std::ostringstream ss;
25  ss<<"ECAL ";
26 
27  unsigned int irun = m_firstRun;
28 
29  std::cout << "Generating popcon record for run " << irun << "..." << std::flush;
31  std::cout << "going to open file " << file_ << std::flush;
32 
33  EcalCondHeader header;
35  EcalADCToGeVXMLTranslator::readXML(file_,header,*payload);
36 
37  Time_t snc= (Time_t) irun ;
38 
40  std::make_pair(payload,snc));
41 
42  ss << "Run=" << irun << "_Magnet_changed_"<<std::endl;
43  m_userTextLog = ss.str()+";";
44 
45  std::cout << "Ecal - > end of getNewObjects -----------\n";
46 }
static int readXML(const std::string &filename, EcalCondHeader &header, EcalADCToGeVConstant &record)
tuple cout
Definition: gather_cfg.py:145
std::string popcon::EcalADCToGeVHandler::id ( ) const
inlinevirtual

Implements popcon::PopConSourceHandler< EcalADCToGeVConstant >.

Definition at line 65 of file EcalADCToGeVHandler.h.

References m_name.

65 { return m_name;}

Member Data Documentation

EcalCondDBInterface* popcon::EcalADCToGeVHandler::econn

Definition at line 66 of file EcalADCToGeVHandler.h.

std::string popcon::EcalADCToGeVHandler::m_file_highfield
private

Definition at line 84 of file EcalADCToGeVHandler.h.

Referenced by EcalADCToGeVHandler().

std::string popcon::EcalADCToGeVHandler::m_file_lowfield
private

Definition at line 83 of file EcalADCToGeVHandler.h.

unsigned int popcon::EcalADCToGeVHandler::m_firstRun
private

Definition at line 73 of file EcalADCToGeVHandler.h.

Referenced by EcalADCToGeVHandler().

std::string popcon::EcalADCToGeVHandler::m_gentag
private

Definition at line 77 of file EcalADCToGeVHandler.h.

unsigned int popcon::EcalADCToGeVHandler::m_lastRun
private

Definition at line 74 of file EcalADCToGeVHandler.h.

std::string popcon::EcalADCToGeVHandler::m_location
private

Definition at line 76 of file EcalADCToGeVHandler.h.

std::string popcon::EcalADCToGeVHandler::m_locationsource
private

Definition at line 81 of file EcalADCToGeVHandler.h.

std::string popcon::EcalADCToGeVHandler::m_name
private

Definition at line 82 of file EcalADCToGeVHandler.h.

Referenced by id().

std::string popcon::EcalADCToGeVHandler::m_pass
private

Definition at line 80 of file EcalADCToGeVHandler.h.

std::string popcon::EcalADCToGeVHandler::m_sid
private

Definition at line 78 of file EcalADCToGeVHandler.h.

std::string popcon::EcalADCToGeVHandler::m_user
private

Definition at line 79 of file EcalADCToGeVHandler.h.

const EcalADCToGeVConstant* popcon::EcalADCToGeVHandler::myintercalib
private

Definition at line 71 of file EcalADCToGeVHandler.h.