14 : m_name(ps.getUntrackedParameter<
std::
string>(
"name",
"EcalLaser_weekly_Handler")) {
15 std::cout <<
"EcalLaser Source handler constructor\n" << std::endl;
27 std::cout <<
"------- Ecal -> getNewObjects\n";
29 unsigned long long max_since = 1;
33 max_since =
tagInfo().lastInterval.since;
34 Tm max_since_tm(max_since);
49 for (
int week = 0; week < 1; week++) {
51 std::cout <<
" which input IOV do you want " << std::endl;
54 std::ostringstream oss;
56 std::string fname =
"/afs/cern.ch/cms/ECAL/triggerTransp/TPG_beamv6_trans_" + oss.str() +
"_spikekill.txt";
67 fWeek.open(
fname.c_str());
68 if (!fWeek.is_open()) {
76 for (
int i = 0;
i < 85;
i++)
84 for (
int iChannel = 0; iChannel <
kEBChannels; iChannel++) {
88 sscanf(
line.c_str(),
"%s %u", cryst, &
id);
111 getline(fWeek,
line);
113 for (
int iChannel = 0; iChannel <
kEEChannels; iChannel++) {
114 getline(fWeek,
line);
116 sscanf(
line.c_str(),
"%s %u", cryst, &
id);
120 getline(fWeek,
line);
140 m_to_transfer.push_back(std::make_pair(linC, fileIOV));
144 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