21 enum {kEBTotalTowers = 2448, kEETotalTowers = 1584};
34 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
37 double minEB=0, maxEB=1;
40 auto iov = iovs.front();
42 unsigned int run = std::get<0>(iov);
48 for(it = towerMap.begin(); it != towerMap.end(); ++it) {
51 int ieta =
ttId.ieta();
54 int iphi =
ttId.iphi() - 1;
62 if(
ttId.subDet() == 1) {
64 barrel->Fill(iphi, ieta,(*it).second);
66 if(maxEB<(*it).second)
68 if(minEB>(*it).second)
77 gStyle->SetPalette(1);
78 gStyle->SetOptStat(0);
82 TCanvas
canvas(
"c",
"c", w, h);
89 t1.DrawLatex(0.5, 0.96, Form(
"Ecal TPGFine GrainEBGroup, IOV %i", run));
91 TPad** pad =
new TPad*;
93 pad[
obj] =
new TPad(Form(
"p_%i",
obj),Form(
"p_%i",
obj), 0.0, 0.04, 1.0, 0.94);
97 t1.DrawLatex(0.2, 0.88, Form(
"%i towers", EBcount));
101 barrel->SetMinimum(minEB);
102 barrel->SetMaximum(maxEB);
103 barrel->Draw(
"colz");
104 TLine*
l =
new TLine(0., 0., 0., 0.);
107 Double_t
x = 4.+ (
i * 4);
108 l =
new TLine(x, -MAX_IETA, x, MAX_IETA);
111 l =
new TLine(0., 0., 72., 0.);
115 canvas.SaveAs(ImageName.c_str());
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)
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
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
void setSingleIov(bool flag)
std::map< uint32_t, uint32_t > EcalTPGGroupsMap