14 : m_name(ps.getUntrackedParameter<
std::
string>(
"name",
"EcalTPGLinPedHandler")) {
15 std::cout <<
"EcalTPGLinPed constructor\n" << std::endl;
23 std::cout <<
"------- Ecal -> getNewObjects\n";
25 unsigned long long max_since = 1;
29 max_since =
tagInfo().lastInterval.since;
30 Tm max_since_tm(max_since);
33 std::cout <<
"LinPed which input IOV do you want " << std::endl;
36 std::ostringstream oss;
38 std::string fname =
"/afs/cern.ch/cms/ECAL/triggerTransp/TPG_beamv6_trans_" + oss.str() +
"_spikekill.txt";
39 fLin.open(
fname.c_str());
40 if (!fLin.is_open()) {
46 for (
int i = 0;
i < 85;
i++)
53 for (
int iChannel = 0; iChannel <
kEBChannels; iChannel++) {
55 sscanf(
line.c_str(),
"%s %u", cryst, &
id);
69 itemPed.mean_x1 =
ped[2];
70 itemPed.mean_x6 =
ped[1];
71 itemPed.mean_x12 =
ped[0];
74 peds->
insert(std::make_pair(
id, itemPed));
78 for (
int iChannel = 0; iChannel <
kEEChannels; iChannel++) {
81 sscanf(
line.c_str(),
"%s %u", cryst, &
id);
98 itemPed.mean_x1 =
ped[2];
99 itemPed.mean_x6 =
ped[1];
100 itemPed.mean_x12 =
ped[0];
103 peds->
insert(std::make_pair(
id, itemPed));
108 m_to_transfer.push_back(std::make_pair(peds, fileIOV));
110 std::cout <<
"Ecal -> end of getNewObjects -----------\n";
EcalTPGLinPed(edm::ParameterSet const &)
void getNewObjects() override
void insert(std::pair< uint32_t, Item > const &a)
std::unique_ptr< EcalTPGPedestals > Ref
static unsigned int const shift
~EcalTPGLinPed() override
EcalTPGPedestalsMap EcalTPGPedestals
EcalTPGLinearizationConstMap EcalTPGLinearizationConst