14 : m_name(ps.getUntrackedParameter<
std::
string>(
"name",
"EcalLaser_weekly_Handler")) {
15 std::cout <<
"EcalLaser Source handler constructor\n" << std::endl;
25 std::cout <<
"------- Ecal -> getNewObjects\n";
27 unsigned long long max_since = 1;
31 max_since =
tagInfo().lastInterval.since;
32 Tm max_since_tm(max_since);
47 for (
int week = 0; week < 1; week++) {
49 std::cout <<
" which input IOV do you want " << std::endl;
52 std::ostringstream oss;
54 std::string fname =
"/afs/cern.ch/cms/ECAL/triggerTransp/TPG_beamv6_trans_" + oss.str() +
"_spikekill.txt";
65 fWeek.open(
fname.c_str());
66 if (!fWeek.is_open()) {
74 for (
int i = 0;
i < 85;
i++)
82 for (
int iChannel = 0; iChannel <
kEBChannels; iChannel++) {
86 sscanf(
line.c_str(),
"%s %u", cryst, &
id);
109 getline(fWeek,
line);
111 for (
int iChannel = 0; iChannel <
kEEChannels; iChannel++) {
112 getline(fWeek,
line);
114 sscanf(
line.c_str(),
"%s %u", cryst, &
id);
118 getline(fWeek,
line);
138 m_to_transfer.push_back(std::make_pair(linC, fileIOV));
141 std::cout <<
"Ecal -> end of getNewObjects -----------\n";
EcalLaser_weekly_Linearization(edm::ParameterSet const &)
void insert(std::pair< uint32_t, Item > const &a)
~EcalLaser_weekly_Linearization() override
std::unique_ptr< EcalTPGLinearizationConst > Ref
static unsigned int const shift
void getNewObjects() override
EcalTPGLinearizationConstMap EcalTPGLinearizationConst