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!!!";
28 std::cout <<
"LinPed which input IOV do you want " << std::endl;
31 std::ostringstream oss;
34 fLin.open(
fname.c_str());
35 if (!fLin.is_open()) {
46 for (
int i = 0;
i < 375016;
i++)
51 for (
int itower = 0; itower < 1584; itower++) {
54 if (itower < 10 || (itower > 1574 && itower < 1584))
58 if (itower < 10 || (itower > 1574 && itower < 1584))
60 sscanf(
line.c_str(),
"%x", &LUTFg);
69 m_to_transfer.push_back(std::make_pair(fgrMap, fileIOV));
71 std::cout <<
"Ecal -> end of getNewObjects -----------\n";
T getParameter(std::string const &) const
void getNewObjects() override
unsigned towerId(DetId const &, EcalElectronicsMapping const *)
EcalTPGFineGrainTowerfromFile(edm::ParameterSet const &)
void setValue(const uint32_t &id, const uint32_t &lut)
~EcalTPGFineGrainTowerfromFile() override
Log< level::Info, false > LogInfo