33 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
35 TH2F* endc_p =
new TH2F(
"EE+",
"EE+ Tower TPG FineGrain",22, 0, 22, 22, 0, 22);
36 TH2F* endc_m =
new TH2F(
"EE-",
"EE- Tower TPG FineGrain",22, 0, 22, 22, 0, 22);
38 auto iov = iovs.front();
40 unsigned int run = std::get<0>(iov);
41 double minEE = 0, maxEE = 1;
48 for(it = towerMap.begin(); it != towerMap.end(); ++it) {
56 uint32_t
weight = (uint32_t)((*it).second);
59 endc_m->Fill(ix, iy, weight);
61 endc_p->Fill(ix, iy, weight);
73 TCanvas
canvas(
"CC map",
"CC map",800,800);
78 t1.DrawLatex(0.5, 0.96, Form(
"Ecal TPGFineGrain Tower EE, IOV %i", run));
81 TPad* padem =
new TPad(
"padem",
"padem", 0., 0.3, 0.45, 0.75);
83 TPad* padep =
new TPad(
"padep",
"padep", 0.55, 0.3, 1., 0.75);
86 TLine*
l =
new TLine(0., 0., 72., 0.);
97 canvas.SaveAs(ImageName.c_str());
std::map< uint32_t, uint32_t >::const_iterator EcalTPGFineGrainTowerEEMapIterator
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)
static EcalScDetId unhashIndex(int hi)
unsigned ttId(DetId const &)
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
virtual bool fill(const std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs)=0
void DrawEE_Tower(TH2F *endc, TLine *l, double minScale, double maxScale)
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
std::map< uint32_t, uint32_t > EcalTPGFineGrainTowerEEMap
void setSingleIov(bool flag)
static bool validHashIndex(int hi)