16 #include "TPaveStats.h" 27 HcalRecoParamsSummary() :
cond::payloadInspector::PlotImage<
HcalRecoParams>(
"HCAL RecoParam Ratios - map ") {
31 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
34 auto iov = iovs.front();
39 std::vector<HcalRecoParam> itemsVec;
40 std::pair<std::string,int> valMap;
50 TCanvas* can =
new TCanvas(
"RecoParamsSummary",
"RecoParamsSummary",1680, 1680);
57 label.SetTextAlign(26);
58 label.SetTextSize(0.05);
59 label.SetTextColor(2);
60 label.DrawLatex(0.5, 0.96,Form(
"Hcal Pulse Shape IDs"));
62 for(std::pair<
std::string, std::vector<HcalRecoParam> > cont : (*payload).getAllContainers()){
64 subDetName = std::get<0>(cont);
65 if(subDetName[0] !=
'H' || subDetName ==
"HT")
continue;
66 itemsVec = std::get<1>(cont);
69 ll =
new TLine(0,0,0,1);
72 lt =
new TLine(0,1,1,1);
75 lb =
new TLine(0,0,1,0);
78 lr =
new TLine(1,0,1,1);
82 label.SetTextAlign(26);
83 label.SetTextSize(0.15);
85 label.DrawLatex(0.5, 0.75, subDetName.c_str());
90 std::vector<HcalRecoParam>::iterator it;
91 for(it = itemsVec.begin(); it != itemsVec.end(); it++) {
92 psID = (*it).pulseShapeID();
94 psID = (*it).pulseShapeID();
98 val.DrawLatex(0.5, 0.25, std::to_string(psID).c_str());
106 can->SaveAs(ImageName.c_str());
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
virtual bool fill(const std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs)=0
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
void setSingleIov(bool flag)