15 : m_name(ps.getUntrackedParameter<
std::
string>(
"name",
"EcalTPGFineGrainTowerfromFile")) {
18 std::cout <<
"EcalTPGFineGrainTowerfromFile constructor\n" << std::endl;
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";
T getParameter(std::string const &) const
void getNewObjects() override
OldContainer m_to_transfer
EcalTPGFineGrainTowerfromFile(edm::ParameterSet const &)
void setValue(const uint32_t &id, const uint32_t &lut)
~EcalTPGFineGrainTowerfromFile() override
unsigned towerId(DetId const &)