38 std::vector<flag::Flag> vflags; vflags.resize(
nTPFlag);
39 vflags[
fEtMsm]=flag::Flag(
"EtMsm");
40 vflags[
fFGMsm]=flag::Flag(
"FGMsm");
43 ContainerSingle2D cOccupancyData_depthlike, cOccupancyEmul_depthlike;
44 ContainerSingle2D cEtMsm_depthlike, cFGMsm_depthlike,
45 cEtCorrRatio_depthlike;
46 ContainerSingle2D cSummary;
47 ContainerXXX<double> xDeadD, xDeadE, xEtMsm, xFGMsm;
48 ContainerXXX<double> xNumCorr;
54 cOccupancyData_depthlike.initialize(
_taskname,
"OccupancyData",
58 cOccupancyEmul_depthlike.initialize(
_taskname,
"OccupancyEmul",
62 cEtMsm_depthlike.initialize(
_taskname,
"EtMsm",
66 cFGMsm_depthlike.initialize(
_taskname,
"FGMsm",
70 cEtCorrRatio_depthlike.initialize(
_taskname,
"EtCorrRatio",
82 cSummary.initialize(
_name,
"Summary",
83 new quantity::FEDQuantity(
_vFEDs),
84 new quantity::FlagQuantity(vflags),
103 for (std::vector<HcalTrigTowerDetId>::const_iterator it=tids.begin();
104 it!=tids.end(); ++it)
113 if (cEtCorrRatio_depthlike.getBinEntries(tid)>0)
117 double numetmsm = cEtMsm_depthlike.getBinContent(tid);
118 double numfgmsm = cFGMsm_depthlike.getBinContent(tid);
119 double numcorr = cEtCorrRatio_depthlike.getBinEntries(tid);
121 xEtMsm.get(eid) += numetmsm;
122 xFGMsm.get(eid) += numfgmsm;
123 xNumCorr.get(eid) += numcorr;
132 std::vector<flag::Flag> sumflags;
133 for (std::vector<uint32_t>::const_iterator it=
_vhashFEDs.begin();
136 flag::Flag fSum(
"TP");
139 std::vector<uint32_t>::const_iterator cit=
std::find(
151 double etmsmfr = xNumCorr.get(eid)>0?
152 double(xEtMsm.get(eid))/
double(xNumCorr.get(eid)):0;
153 double fgmsmfr = xNumCorr.get(eid)>0?
154 double(xFGMsm.get(eid))/
double(xNumCorr.get(eid)):0;
172 for (std::vector<flag::Flag>::iterator ft=vflags.begin();
173 ft!=vflags.end(); ++ft)
175 cSummary.setBinContent(eid, iflag, ft->_state);
180 sumflags.push_back(fSum);
std::vector< uint32_t > _vcdaqEids
ContainerSingle2D _cFGMsmFraction_depthlike
double _thresh_EtMsmRate_high
std::vector< uint32_t > _vhashFEDs
HcalElectronicsMap const * _emap
double _thresh_FGMsmRate_low
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
double _thresh_EtMsmRate_low
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
double _thresh_FGMsmRate_high
virtual void setBinContent(int, int, int)
bool isFEDHBHE(HcalElectronicsId const &)
virtual void initialize(std::string const &folder, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
std::vector< int > _vFEDs
int version() const
get the version code for the trigger tower
ContainerSingle2D _cEtMsmFraction_depthlike
Readout chain identification for Hcal.
std::vector< HcalTrigTowerDetId > allTriggerId() const
bool isFEDHF(HcalElectronicsId const &)
int ietaAbs() const
get the absolute value of the tower ieta