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;
31 Ref payload= lastPayload();
34 max_since=tagInfo().lastInterval.first;
35 Tm max_since_tm(max_since);
53 std::cout <<
" which input IOV do you want " << std::endl;
56 std::ostringstream oss;
58 std::string fname =
"/afs/cern.ch/cms/ECAL/triggerTransp/TPG_beamv6_trans_" + oss.str() +
"_spikekill.txt";
69 fWeek.open(fname.c_str());
70 if(!fWeek.is_open()) {
71 std::cout <<
"ERROR : can't open file '" << fname << std::endl;
74 std::cout <<
" file " << fname <<
" opened" << std::endl;
78 for(
int i = 0;
i < 85;
i++) getline (fWeek, line);
80 uint32_t ped[kGains],
mult[kGains],
shift[kGains];
82 for (
int iChannel = 0; iChannel < kEBChannels; iChannel++) {
83 getline (fWeek, line);
86 sscanf(line.c_str(),
"%s %u", cryst, &id);
89 for (
int gain = 0; gain < kGains; gain++) {
91 getline (fWeek, line);
93 sscanf(line.c_str(),
"%X %X %X", &ped[gain], &mult[gain], &shift[gain]);
104 linC->
insert(std::make_pair(
id, item));
109 getline (fWeek, line);
110 std::cout <<
" comment line " << line << std::endl;
111 for (
int iChannel = 0; iChannel < kEEChannels; iChannel++) {
112 getline (fWeek, line);
114 sscanf(line.c_str(),
"%s %u", cryst, &id);
117 for (
int gain =0; gain < kGains; gain++) {
118 getline (fWeek, line);
120 sscanf(line.c_str(),
"%X %X %X", &ped[gain], &mult[gain], &shift[gain]);
133 linC->
insert(std::make_pair(
id, item));
142 std::cout <<
"Ecal -> end of getNewObjects -----------\n";
edm::Ref< Container > Ref
~EcalLaser_weekly_Linearization()
EcalLaser_weekly_Linearization(edm::ParameterSet const &)
void insert(std::pair< uint32_t, Item > const &a)
static unsigned int const shift
EcalTPGLinearizationConstMap EcalTPGLinearizationConst