#include <EcalTPGPedfromFile.h>
Definition at line 48 of file EcalTPGPedfromFile.h.
◆ anonymous enum
◆ ~EcalTPGPedfromFile()
popcon::EcalTPGPedfromFile::~EcalTPGPedfromFile |
( |
| ) |
|
|
override |
◆ EcalTPGPedfromFile()
◆ getNewObjects()
void popcon::EcalTPGPedfromFile::getNewObjects |
( |
| ) |
|
|
overridevirtual |
Implements popcon::PopConSourceHandler< EcalTPGPedestals >.
Definition at line 23 of file EcalTPGPedfromFile.cc.
24 std::cout <<
"------- Ecal -> getNewObjects\n";
26 unsigned long long max_since = 1;
31 Tm max_since_tm(max_since);
34 std::cout <<
"PedfromFile which input IOV do you want " << std::endl;
37 std::ostringstream oss;
39 std::string fname =
"/afs/cern.ch/cms/ECAL/triggerTransp/TPG_beamv6_trans_" + oss.str() +
"_spikekill.txt";
40 fLin.open(
fname.c_str());
41 if (!fLin.is_open()) {
47 for (
int i = 0;
i < 85;
i++)
54 for (
int iChannel = 0; iChannel <
kEBChannels; iChannel++) {
56 sscanf(
line.c_str(),
"%s %u", cryst, &
id);
70 itemPed.mean_x1 = ped[2];
71 itemPed.mean_x6 = ped[1];
72 itemPed.mean_x12 = ped[0];
75 peds->
insert(std::make_pair(
id, itemPed));
79 for (
int iChannel = 0; iChannel <
kEEChannels; iChannel++) {
82 sscanf(
line.c_str(),
"%s %u", cryst, &
id);
99 itemPed.mean_x1 = ped[2];
100 itemPed.mean_x6 = ped[1];
101 itemPed.mean_x12 = ped[0];
104 peds->
insert(std::make_pair(
id, itemPed));
111 std::cout <<
"Ecal -> end of getNewObjects -----------\n";
References gather_cfg::cout, alignmentValidation::fname, PedestalClient_cfi::gain, mps_fire::i, triggerObjects_cff::id, EcalCondObjectContainer< T >::insert(), B2GTnPMonitor_cfi::item, kEBChannels, kEEChannels, kGains, mps_splice::line, VarParsing::mult, jets_cff::payload, edm::shift, AlCaHLTBitMon_QueryRunRegistry::string, and dumpRecoGeometry_cfg::tagInfo.
◆ id()
std::string popcon::EcalTPGPedfromFile::id |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ m_name
std::string popcon::EcalTPGPedfromFile::m_name |
|
private |
edm::Ref< Container > Ref