20 #include "TPaveStats.h" 39 HcalL1TriggerObjectsPlot() :
cond::payloadInspector::PlotImage<
HcalL1TriggerObjects>(
"HCAL L1TriggerObject Ratios - map ") {
43 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
46 auto iov = iovs.front();
47 std::shared_ptr<HcalL1TriggerObjects>
payload = fetchPayload( std::get<1>(iov) );
49 HcalL1TriggerObjectContainer* objContainer =
new HcalL1TriggerObjectContainer(payload, std::get<0>(iov));
51 objContainer->getCanvasAll()->SaveAs(ImageName.c_str());
52 return true;}
else return false;
62 HcalL1TriggerObjectsRatio() :
cond::payloadInspector::PlotImage<
HcalL1TriggerObjects>(
"HCAL L1TriggerObject Ratios difference") {
66 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
68 auto iov1 = iovs.front();
69 auto iov2 = iovs.back();
71 std::shared_ptr<HcalL1TriggerObjects> payload1 = fetchPayload( std::get<1>(iov1) );
72 std::shared_ptr<HcalL1TriggerObjects> payload2 = fetchPayload( std::get<1>(iov2) );
74 if(payload1.get() && payload2.get()) {
75 HcalL1TriggerObjectContainer* objContainer1 =
new HcalL1TriggerObjectContainer(payload1, std::get<0>(iov1));
76 HcalL1TriggerObjectContainer* objContainer2 =
new HcalL1TriggerObjectContainer(payload2, std::get<0>(iov2));
78 objContainer2->Divide(objContainer1);
83 objContainer2->getCanvasAll()->SaveAs(ImageName.c_str());
84 return true;}
else return false;
94 HcalL1TriggerObjectsEtaPlot() :
cond::payloadInspector::PlotImage<
HcalL1TriggerObjects>(
"HCAL L1TriggerObject Ratios - map ") {
98 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
101 auto iov = iovs.front();
102 std::shared_ptr<HcalL1TriggerObjects> payload = fetchPayload( std::get<1>(iov) );
104 HcalL1TriggerObjectContainer* objContainer =
new HcalL1TriggerObjectContainer(payload, std::get<0>(iov));
106 objContainer->getCanvasAll(
"EtaProfile")->SaveAs(ImageName.c_str());
107 return true;}
else return false;
117 HcalL1TriggerObjectsEtaRatio() :
cond::payloadInspector::PlotImage<
HcalL1TriggerObjects>(
"HCAL L1TriggerObject Ratios difference") {
121 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
123 auto iov1 = iovs.front();
124 auto iov2 = iovs.back();
126 std::shared_ptr<HcalL1TriggerObjects> payload1 = fetchPayload( std::get<1>(iov1) );
127 std::shared_ptr<HcalL1TriggerObjects> payload2 = fetchPayload( std::get<1>(iov2) );
129 if(payload1.get() && payload2.get()) {
130 HcalL1TriggerObjectContainer* objContainer1 =
new HcalL1TriggerObjectContainer(payload1, std::get<0>(iov1));
131 HcalL1TriggerObjectContainer* objContainer2 =
new HcalL1TriggerObjectContainer(payload2, std::get<0>(iov2));
133 objContainer2->Divide(objContainer1);
137 objContainer2->getCanvasAll(
"EtaProfile")->SaveAs(ImageName.c_str());
138 return true;}
else return false;
148 HcalL1TriggerObjectsPhiPlot() :
cond::payloadInspector::PlotImage<
HcalL1TriggerObjects>(
"HCAL L1TriggerObject Ratios - map ") {
149 setSingleIov(
true );
152 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
155 auto iov = iovs.front();
156 std::shared_ptr<HcalL1TriggerObjects> payload = fetchPayload( std::get<1>(iov) );
158 HcalL1TriggerObjectContainer* objContainer =
new HcalL1TriggerObjectContainer(payload, std::get<0>(iov));
160 objContainer->getCanvasAll(
"PhiProfile")->SaveAs(ImageName.c_str());
161 return true;}
else return false;
171 HcalL1TriggerObjectsPhiRatio() :
cond::payloadInspector::PlotImage<
HcalL1TriggerObjects>(
"HCAL L1TriggerObject Ratios difference") {
175 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
177 auto iov1 = iovs.front();
178 auto iov2 = iovs.back();
180 std::shared_ptr<HcalL1TriggerObjects> payload1 = fetchPayload( std::get<1>(iov1) );
181 std::shared_ptr<HcalL1TriggerObjects> payload2 = fetchPayload( std::get<1>(iov2) );
183 if(payload1.get() && payload2.get()) {
184 HcalL1TriggerObjectContainer* objContainer1 =
new HcalL1TriggerObjectContainer(payload1, std::get<0>(iov1));
185 HcalL1TriggerObjectContainer* objContainer2 =
new HcalL1TriggerObjectContainer(payload2, std::get<0>(iov2));
187 objContainer2->Divide(objContainer1);
191 objContainer2->getCanvasAll(
"PhiProfile")->SaveAs(ImageName.c_str());
192 return true;}
else return false;
virtual float getValue(Item *item)
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
float getRespGain() const
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)