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";
30 unsigned long long max_since= 1;
35 Tm max_since_tm(max_since);
52 std::cout <<
" which input IOV do you want " << std::endl;
55 std::ostringstream oss;
57 std::string fname =
"/afs/cern.ch/cms/ECAL/triggerTransp/TPG_beamv6_trans_" + oss.str() +
"_spikekill.txt";
68 fWeek.open(fname.c_str());
69 if(!fWeek.is_open()) {
70 std::cout <<
"ERROR : can't open file '" << fname << std::endl;
73 std::cout <<
" file " << fname <<
" opened" << std::endl;
77 for(
int i = 0;
i < 85;
i++) getline (fWeek, line);
84 for (
int iChannel = 0; iChannel <
kEBChannels; iChannel++) {
85 getline (fWeek, line);
88 sscanf(line.c_str(),
"%s %u", cryst, &
id);
93 getline (fWeek, line);
95 sscanf(line.c_str(),
"%X %X %X", &ped[
gain], &mult[
gain], &shift[
gain]);
100 item.mult_x6 = mult[1];
101 item.mult_x12 = mult[0];
102 item.shift_x1 = shift[2];
103 item.shift_x6 = shift[1];
104 item.shift_x12 = shift[0];
106 linC->
insert(std::make_pair(
id, item));
111 getline (fWeek, line);
112 std::cout <<
" comment line " << line << std::endl;
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);
122 sscanf(line.c_str(),
"%X %X %X", &ped[
gain], &mult[
gain], &shift[
gain]);
129 item.mult_x6 = mult[1];
130 item.mult_x12 = mult[0];
131 item.shift_x1 = shift[2];
132 item.shift_x6 = shift[1];
133 item.shift_x12 = shift[0];
135 linC->
insert(std::make_pair(
id, item));
144 std::cout <<
"Ecal -> end of getNewObjects -----------\n";
edm::Ref< Container > Ref
OldContainer m_to_transfer
cond::ValidityInterval lastInterval
EcalLaser_weekly_Linearization(edm::ParameterSet const &)
void insert(std::pair< uint32_t, Item > const &a)
~EcalLaser_weekly_Linearization() override
static unsigned int const shift
std::string id() const override
void getNewObjects() override
cond::TagInfo_t const & tagInfo() const
EcalTPGLinearizationConstMap EcalTPGLinearizationConst