358 std::map<std::string, double(*)(MonPulseShapeDat const&)> extList;
360 extList[
"g1_avg_sample_01"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(1)[0]); };
361 extList[
"g1_avg_sample_02"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(1)[1]); };
362 extList[
"g1_avg_sample_03"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(1)[2]); };
363 extList[
"g1_avg_sample_04"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(1)[3]); };
364 extList[
"g1_avg_sample_05"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(1)[4]); };
365 extList[
"g1_avg_sample_06"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(1)[5]); };
366 extList[
"g1_avg_sample_07"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(1)[6]); };
367 extList[
"g1_avg_sample_08"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(1)[7]); };
368 extList[
"g1_avg_sample_09"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(1)[8]); };
369 extList[
"g1_avg_sample_10"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(1)[9]); };
370 extList[
"g6_avg_sample_01"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(6)[0]); };
371 extList[
"g6_avg_sample_02"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(6)[1]); };
372 extList[
"g6_avg_sample_03"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(6)[2]); };
373 extList[
"g6_avg_sample_04"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(6)[3]); };
374 extList[
"g6_avg_sample_05"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(6)[4]); };
375 extList[
"g6_avg_sample_06"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(6)[5]); };
376 extList[
"g6_avg_sample_07"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(6)[6]); };
377 extList[
"g6_avg_sample_08"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(6)[7]); };
378 extList[
"g6_avg_sample_09"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(6)[8]); };
379 extList[
"g6_avg_sample_10"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(6)[9]); };
380 extList[
"g12_avg_sample_01"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(12)[0]); };
381 extList[
"g12_avg_sample_02"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(12)[1]); };
382 extList[
"g12_avg_sample_03"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(12)[2]); };
383 extList[
"g12_avg_sample_04"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(12)[3]); };
384 extList[
"g12_avg_sample_05"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(12)[4]); };
385 extList[
"g12_avg_sample_06"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(12)[5]); };
386 extList[
"g12_avg_sample_07"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(12)[6]); };
387 extList[
"g12_avg_sample_08"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(12)[7]); };
388 extList[
"g12_avg_sample_09"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(12)[8]); };
389 extList[
"g12_avg_sample_10"] = [](
MonPulseShapeDat const& dat){
return double(dat.getSamples(12)[9]); };
ReturnType fetchAndFill(std::map< std::string, double(*)(DataType const &)> const &_extractors, EcalCondDBInterface *_db, MonRunIOV &_iov, std::string const &_formula)