Skip to content

Commit

Permalink
move from bool fill(const std::vector<std::tuple<cond::Time_t, cond::…
Browse files Browse the repository at this point in the history
…Hash> >& iovs) to bool fill()
  • Loading branch information
mmusich committed May 12, 2020
1 parent 2963492 commit a6d0de9
Show file tree
Hide file tree
Showing 25 changed files with 184 additions and 124 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<AlignmentErrorsExtended> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
std::vector<AlignTransformErrorExtended> alignErrors = payload->m_alignError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> > &iovs) override {
for (auto const &iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const &iov : tag.iovs) {
std::shared_ptr<AlignmentSurfaceDeformations> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
int i = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ namespace {
}

// Histogram2D::fill (virtual) needs be overridden - the implementation should use fillWithValue
bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalIntercalibConstantsMC> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// looping over the EB channels, via the dense-index, mapped into EBDetId's
Expand Down Expand Up @@ -115,8 +116,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalIntercalibConstantsMC> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
if (payload->endcapItems().empty())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ namespace {
}

// Histogram2D::fill (virtual) needs be overridden - the implementation should use fillWithValue
bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalIntercalibConstants> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// looping over the EB channels, via the dense-index, mapped into EBDetId's
Expand Down Expand Up @@ -105,8 +106,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalIntercalibConstants> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
if (payload->endcapItems().empty())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ namespace {
}

// Histogram2D::fill (virtual) needs be overridden - the implementation should use fillWithValue
bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalIntercalibErrors> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// looping over the EB channels, via the dense-index, mapped into EBDetId's
Expand Down Expand Up @@ -114,8 +115,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalIntercalibErrors> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
if (payload->endcapItems().empty())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ namespace {
}

// Histogram2D::fill (virtual) needs be overridden - the implementation should use fillWithValue
bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalLaserAPDPNRatiosRef> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// looping over the EB channels, via the dense-index, mapped into EBDetId's
Expand Down Expand Up @@ -113,8 +114,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalLaserAPDPNRatiosRef> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
if (payload->endcapItems().empty())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ namespace {
}

// Histogram2D::fill (virtual) needs be overridden - the implementation should use fillWithValue
bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalLaserAPDPNRatios> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// set to -1 for ieta 0 (no crystal)
Expand Down Expand Up @@ -96,8 +97,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalLaserAPDPNRatios> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// set to -1 everywhwere
Expand Down
12 changes: 7 additions & 5 deletions CondCore/EcalPlugins/plugins/EcalLaserAlphas_PayloadInspector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ namespace {
}

// Histogram2D::fill (virtual) needs be overridden - the implementation should use fillWithValue
bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalLaserAlphas> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// looping over the EB channels, via the dense-index, mapped into EBDetId's
Expand Down Expand Up @@ -113,8 +114,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalLaserAlphas> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
if (payload->endcapItems().empty())
Expand Down Expand Up @@ -352,4 +354,4 @@ PAYLOAD_INSPECTOR_MODULE(EcalLaserAlphas) {
PAYLOAD_INSPECTOR_CLASS(EcalLaserAlphasPlot);
PAYLOAD_INSPECTOR_CLASS(EcalLaserAlphasDiff);
PAYLOAD_INSPECTOR_CLASS(EcalLaserAlphasSummaryPlot);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ namespace {
}

// Histogram2D::fill (virtual) needs be overridden - the implementation should use fillWithValue
bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalPFRecHitThresholds> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// looping over the EB channels, via the dense-index, mapped into EBDetId's
Expand Down Expand Up @@ -113,8 +114,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalPFRecHitThresholds> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
if (payload->endcapItems().empty())
Expand Down
60 changes: 36 additions & 24 deletions CondCore/EcalPlugins/plugins/EcalPedestals_PayloadInspector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -705,8 +705,9 @@ namespace {
}

// Histogram2D::fill (virtual) needs be overridden - the implementation should use fillWithValue
bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalPedestals> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// looping over the EB channels, via the dense-index, mapped into EBDetId's
Expand Down Expand Up @@ -753,8 +754,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalPedestals> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// looping over the EB channels, via the dense-index, mapped into EBDetId's
Expand Down Expand Up @@ -797,8 +799,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalPedestals> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// looping over the EB channels, via the dense-index, mapped into EBDetId's
Expand Down Expand Up @@ -842,8 +845,9 @@ namespace {
}

// Histogram2D::fill (virtual) needs be overridden - the implementation should use fillWithValue
bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalPedestals> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
if (payload->endcapItems().empty())
Expand Down Expand Up @@ -893,8 +897,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalPedestals> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
if (payload->endcapItems().empty())
Expand Down Expand Up @@ -943,8 +948,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalPedestals> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
if (payload->endcapItems().empty())
Expand Down Expand Up @@ -994,8 +1000,9 @@ namespace {
}

// Histogram2D::fill (virtual) needs be overridden - the implementation should use fillWithValue
bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalPedestals> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// looping over the EB channels, via the dense-index, mapped into EBDetId's
Expand Down Expand Up @@ -1041,8 +1048,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalPedestals> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// looping over the EB channels, via the dense-index, mapped into EBDetId's
Expand Down Expand Up @@ -1084,8 +1092,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalPedestals> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// looping over the EB channels, via the dense-index, mapped into EBDetId's
Expand Down Expand Up @@ -1128,8 +1137,9 @@ namespace {
}

// Histogram2D::fill (virtual) needs be overridden - the implementation should use fillWithValue
bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalPedestals> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
if (payload->endcapItems().empty())
Expand Down Expand Up @@ -1178,8 +1188,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalPedestals> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
if (payload->endcapItems().empty())
Expand Down Expand Up @@ -1227,8 +1238,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalPedestals> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
if (payload->endcapItems().empty())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ namespace {
}

// Histogram2D::fill (virtual) needs be overridden - the implementation should use fillWithValue
bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalTimeCalibConstants> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// looping over the EB channels, via the dense-index, mapped into EBDetId's
Expand Down Expand Up @@ -114,8 +115,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalTimeCalibConstants> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
if (payload->endcapItems().empty())
Expand Down Expand Up @@ -355,4 +357,4 @@ PAYLOAD_INSPECTOR_MODULE(EcalTimeCalibConstants) {
PAYLOAD_INSPECTOR_CLASS(EcalTimeCalibConstantsPlot);
PAYLOAD_INSPECTOR_CLASS(EcalTimeCalibConstantsDiff);
PAYLOAD_INSPECTOR_CLASS(EcalTimeCalibConstantsSummaryPlot);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ namespace {
}

// Histogram2D::fill (virtual) needs be overridden - the implementation should use fillWithValue
bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalTimeCalibErrors> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
// looping over the EB channels, via the dense-index, mapped into EBDetId's
Expand Down Expand Up @@ -114,8 +115,9 @@ namespace {
Base::setSingleIov(true);
}

bool fill(const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) override {
for (auto const& iov : iovs) {
bool fill() override {
auto tag = PlotBase::getTag<0>();
for (auto const& iov : tag.iovs) {
std::shared_ptr<EcalTimeCalibErrors> payload = Base::fetchPayload(std::get<1>(iov));
if (payload.get()) {
if (payload->endcapItems().empty())
Expand Down

0 comments on commit a6d0de9

Please sign in to comment.