Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondTools
Ecal
src
EcalIntercalibHandler.cc
Go to the documentation of this file.
1
#include "
CondTools/Ecal/interface/EcalIntercalibHandler.h
"
2
#include "
FWCore/ParameterSet/interface/ParameterSetfwd.h
"
3
#include "
CondFormats/EcalObjects/interface/EcalIntercalibConstants.h
"
4
#include "
CondTools/Ecal/interface/EcalFloatCondObjectContainerXMLTranslator.h
"
5
6
#include<iostream>
7
8
popcon::EcalIntercalibHandler::EcalIntercalibHandler
(
const
edm::ParameterSet
& ps)
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
}
15
16
popcon::EcalIntercalibHandler::~EcalIntercalibHandler
() {}
17
18
void
popcon::EcalIntercalibHandler::getNewObjects
() {
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;
28
std::string
file_= m_file_highfield;
29
std::cout
<<
"going to open file "
<<file_ << std::flush;
30
31
EcalCondHeader
header;
32
EcalIntercalibConstants
* payload =
new
EcalIntercalibConstants
;
33
EcalFloatCondObjectContainerXMLTranslator::readXML
(file_,header,*payload);
34
Time_t
snc= (
Time_t
) irun ;
35
36
popcon::PopConSourceHandler<EcalIntercalibConstants>::m_to_transfer
.push_back(
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
}
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
popcon::EcalIntercalibHandler::getNewObjects
void getNewObjects()
Definition:
EcalIntercalibHandler.cc:18
popcon::PopConSourceHandler< EcalIntercalibConstants >::Time_t
cond::Time_t Time_t
Definition:
PopConSourceHandler.h:35
EcalFloatCondObjectContainerXMLTranslator::readXML
static int readXML(const std::string &filename, EcalCondHeader &header, EcalFloatCondObjectContainer &record)
Definition:
EcalFloatCondObjectContainerXMLTranslator.cc:24
ParameterSetfwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
popcon::EcalIntercalibHandler::~EcalIntercalibHandler
~EcalIntercalibHandler()
Definition:
EcalIntercalibHandler.cc:16
EcalIntercalibHandler.h
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:31
EcalIntercalibConstants.h
EcalCondHeader
Definition:
EcalCondHeader.h:17
popcon::EcalIntercalibHandler::EcalIntercalibHandler
EcalIntercalibHandler(edm::ParameterSet const &)
Definition:
EcalIntercalibHandler.cc:8
popcon::EcalIntercalibHandler::m_file_highfield
std::string m_file_highfield
Definition:
EcalIntercalibHandler.h:84
popcon::EcalIntercalibHandler::m_firstRun
unsigned int m_firstRun
Definition:
EcalIntercalibHandler.h:73
cond::time::Time_t
cond::Time_t Time_t
Definition:
Time.h:17
EcalIntercalibConstants
EcalIntercalibConstantMap EcalIntercalibConstants
Definition:
EcalIntercalibConstants.h:12
EcalFloatCondObjectContainerXMLTranslator.h
contentValuesCheck.ss
list ss
Definition:
contentValuesCheck.py:32
edm::ParameterSet
Definition:
ParameterSet.h:36
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:145
EcalCondObjectContainer< float >
Generated for CMSSW Reference Manual by
1.8.5