#include <EcalTPGFineGrainTowerfromFile.h>
popcon::EcalTPGFineGrainTowerfromFile::~EcalTPGFineGrainTowerfromFile |
( |
| ) |
|
|
override |
popcon::EcalTPGFineGrainTowerfromFile::EcalTPGFineGrainTowerfromFile |
( |
edm::ParameterSet const & |
| ) |
|
void popcon::EcalTPGFineGrainTowerfromFile::getNewObjects |
( |
| ) |
|
|
overridevirtual |
Implements popcon::PopConSourceHandler< EcalTPGFineGrainTowerEE >.
Definition at line 23 of file EcalTPGFineGrainTowerfromFile.cc.
References gather_cfg::cout, fname, mps_fire::i, geometryCSVtoXML::line, popcon::PopConSourceHandler< EcalTPGFineGrainTowerEE >::m_to_transfer, EcalTPGFineGrainTowerEE::setValue(), AlCaHLTBitMon_QueryRunRegistry::string, and ecaldqm::towerId().
24 std::cout <<
"------- Ecal -> getNewObjects\n";
25 edm::LogInfo(
"EcalTPGFineGrainTowerfromFile") <<
"Started GetNewObjects!!!";
29 std::cout <<
"LinPed which input IOV do you want " << std::endl;
32 std::ostringstream oss;
35 fLin.open(
fname.c_str());
47 for(
int i = 0;
i < 375016;
i++) getline (fLin, line);
50 for (
int itower = 0; itower < 1584; itower++) {
52 sscanf(line.c_str(),
"%s %u", tower, &
towerId);
53 if(itower < 10 || (itower > 1574 && itower < 1584))
std::cout <<
" string " << tower <<
" Id " << towerId;
56 if(itower < 10 || (itower > 1574 && itower < 1584))
std::cout <<
" line " << line << std::endl;
57 sscanf(line.c_str(),
"%x", &LUTFg);
68 std::cout <<
"Ecal -> end of getNewObjects -----------\n";
OldContainer m_to_transfer
void setValue(const uint32_t &id, const uint32_t &lut)
unsigned towerId(DetId const &)
std::string popcon::EcalTPGFineGrainTowerfromFile::id |
( |
| ) |
const |
|
inlineoverridevirtual |
std::string popcon::EcalTPGFineGrainTowerfromFile::fname |
|
private |
std::string popcon::EcalTPGFineGrainTowerfromFile::m_name |
|
private |