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::EcalIntercalibHandler Class Reference

#include <EcalIntercalibHandler.h>

Inheritance diagram for popcon::EcalIntercalibHandler:
popcon::PopConSourceHandler< EcalIntercalibConstants >

Public Member Functions

 EcalIntercalibHandler (edm::ParameterSet const &)
 
void getNewObjects ()
 
std::string id () const
 
 ~EcalIntercalibHandler ()
 
- Public Member Functions inherited from popcon::PopConSourceHandler< EcalIntercalibConstants >
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
 
double m_value_highfield
 
const EcalIntercalibConstantsmyintercalib
 

Additional Inherited Members

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

Detailed Description

Definition at line 56 of file EcalIntercalibHandler.h.

Constructor & Destructor Documentation

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

Definition at line 8 of file EcalIntercalibHandler.cc.

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

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

Definition at line 16 of file EcalIntercalibHandler.cc.

16 {}

Member Function Documentation

void popcon::EcalIntercalibHandler::getNewObjects ( )
virtual

Implements popcon::PopConSourceHandler< EcalIntercalibConstants >.

Definition at line 18 of file EcalIntercalibHandler.cc.

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

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

Implements popcon::PopConSourceHandler< EcalIntercalibConstants >.

Definition at line 65 of file EcalIntercalibHandler.h.

References m_name.

65 { return m_name;}

Member Data Documentation

EcalCondDBInterface* popcon::EcalIntercalibHandler::econn

Definition at line 66 of file EcalIntercalibHandler.h.

std::string popcon::EcalIntercalibHandler::m_file_highfield
private

Definition at line 84 of file EcalIntercalibHandler.h.

Referenced by EcalIntercalibHandler().

std::string popcon::EcalIntercalibHandler::m_file_lowfield
private

Definition at line 83 of file EcalIntercalibHandler.h.

unsigned int popcon::EcalIntercalibHandler::m_firstRun
private

Definition at line 73 of file EcalIntercalibHandler.h.

Referenced by EcalIntercalibHandler().

std::string popcon::EcalIntercalibHandler::m_gentag
private

Definition at line 77 of file EcalIntercalibHandler.h.

unsigned int popcon::EcalIntercalibHandler::m_lastRun
private

Definition at line 74 of file EcalIntercalibHandler.h.

std::string popcon::EcalIntercalibHandler::m_location
private

Definition at line 76 of file EcalIntercalibHandler.h.

std::string popcon::EcalIntercalibHandler::m_locationsource
private

Definition at line 81 of file EcalIntercalibHandler.h.

std::string popcon::EcalIntercalibHandler::m_name
private

Definition at line 82 of file EcalIntercalibHandler.h.

Referenced by id().

std::string popcon::EcalIntercalibHandler::m_pass
private

Definition at line 80 of file EcalIntercalibHandler.h.

std::string popcon::EcalIntercalibHandler::m_sid
private

Definition at line 78 of file EcalIntercalibHandler.h.

std::string popcon::EcalIntercalibHandler::m_user
private

Definition at line 79 of file EcalIntercalibHandler.h.

double popcon::EcalIntercalibHandler::m_value_highfield
private

Definition at line 85 of file EcalIntercalibHandler.h.

const EcalIntercalibConstants* popcon::EcalIntercalibHandler::myintercalib
private

Definition at line 71 of file EcalIntercalibHandler.h.