#include <EcalTimeCalibHandler.h>
Definition at line 18 of file EcalTimeCalibHandler.h.
◆ EcalTimeCalibHandler()
Definition at line 13 of file EcalTimeCalibHandler.cc.
19 edm::LogInfo(
"EcalTimeCalib Source handler constructor\n");
const unsigned int m_firstRun
Log< level::Info, false > LogInfo
const std::string m_file_type
const std::string m_file_name
◆ ~EcalTimeCalibHandler()
popcon::EcalTimeCalibHandler::~EcalTimeCalibHandler |
( |
| ) |
|
|
overridedefault |
◆ getNewObjects()
void popcon::EcalTimeCalibHandler::getNewObjects |
( |
| ) |
|
|
overridevirtual |
◆ id()
std::string popcon::EcalTimeCalibHandler::id |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ readTXT()
Definition at line 87 of file EcalTimeCalibHandler.cc.
References PVValHelper::eta, EBDetId::ETAPHIMODE, Exception, kChannels, kEBChannels, kEEChannels, mps_splice::line, phi, AlCaHarvesting_cff::record, AlCaHLTBitMon_QueryRunRegistry::string, heppy_batch::val, x, EEDetId::XYMODE, y, and z.
90 if (!ftxt.is_open()) {
93 int number_of_lines = 0,
eta,
phi,
x,
y,
z;
96 while (std::getline(ftxt,
line)) {
102 std::sscanf(
line.c_str(),
"%i %i %i %f", &
x, &
y, &
z, &
val);
108 edm::LogInfo(
"Number of lines in text file: ") << number_of_lines;
static const int ETAPHIMODE
Log< level::Info, false > LogInfo
◆ readXML()
Definition at line 36 of file EcalTimeCalibHandler.cc.
References Exception, newFWLiteAna::found, mps_fire::i, kEBChannels, kEEChannels, AlCaHarvesting_cff::record, AlCaHLTBitMon_QueryRunRegistry::string, EBDetId::unhashIndex(), EEDetId::unhashIndex(), and heppy_batch::val.
40 if (!fxml.is_open()) {
44 for (
int i = 0;
i < 6;
i++) {
45 getline(fxml, dummyLine);
49 std::istringstream iEB(stt);
56 for (
int iChannel = 0; iChannel <
kEBChannels; iChannel++) {
59 std::size_t
found = bid.find(
"</");
60 stt = bid.substr(6,
found - 6);
61 float val = std::stof(stt);
64 for (
int i = 0;
i < 5;
i++) {
65 getline(fxml, dummyLine);
68 stt = bid.substr(7, 5);
69 std::istringstream iEE(stt);
77 for (
int iChannel = 0; iChannel <
kEEChannels; iChannel++) {
80 std::size_t
found = bid.find(
"</");
81 stt = bid.substr(6,
found - 6);
82 float val = std::stof(stt);
static EEDetId unhashIndex(int hi)
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
◆ econn
◆ m_file_name
const std::string popcon::EcalTimeCalibHandler::m_file_name |
|
private |
◆ m_file_type
const std::string popcon::EcalTimeCalibHandler::m_file_type |
|
private |
◆ m_firstRun
const unsigned int popcon::EcalTimeCalibHandler::m_firstRun |
|
private |
◆ m_name
const std::string popcon::EcalTimeCalibHandler::m_name |
|
private |