29 std::vector<flag::Flag> vflags;
31 vflags[
fEtMsm] = flag::Flag(
"EtMsm");
32 vflags[
fFGMsm] = flag::Flag(
"FGMsm");
35 ContainerSingle2D cOccupancyData_depthlike, cOccupancyEmul_depthlike;
36 ContainerSingle2D cEtMsm_depthlike, cFGMsm_depthlike, cEtCorrRatio_depthlike;
37 ContainerSingle2D cSummary;
38 ContainerXXX<double> xDeadD, xDeadE, xEtMsm, xFGMsm;
39 ContainerXXX<double> xNumCorr;
45 cOccupancyData_depthlike.initialize(
_taskname,
51 cOccupancyEmul_depthlike.initialize(
_taskname,
69 cEtCorrRatio_depthlike.initialize(
_taskname,
87 cSummary.initialize(
_name,
89 new quantity::CrateQuantity(
_emap),
90 new quantity::FlagQuantity(vflags),
102 cOccupancyData_depthlike.load(ig,
_subsystem);
103 cOccupancyEmul_depthlike.load(ig,
_subsystem);
113 for (std::vector<HcalTrigTowerDetId>::const_iterator it = tids.begin(); it != tids.end(); ++it) {
121 if (cEtCorrRatio_depthlike.getBinEntries(tid) > 0) {
124 double numetmsm = cEtMsm_depthlike.getBinContent(tid);
125 double numfgmsm = cFGMsm_depthlike.getBinContent(tid);
126 double numcorr = cEtCorrRatio_depthlike.getBinEntries(tid);
128 xEtMsm.get(eid) += numetmsm;
129 xFGMsm.get(eid) += numfgmsm;
130 xNumCorr.get(eid) += numcorr;
137 std::vector<flag::Flag> sumflags;
139 flag::Flag fSum(
"TP");
144 double etmsmfr = xNumCorr.get(eid) > 0 ? double(xEtMsm.get(eid)) /
double(xNumCorr.get(eid)) : 0;
145 double fgmsmfr = xNumCorr.get(eid) > 0 ? double(xFGMsm.get(eid)) /
double(xNumCorr.get(eid)) : 0;
163 for (std::vector<flag::Flag>::iterator ft = vflags.begin(); ft != vflags.end(); ++ft) {
164 cSummary.setBinContent(eid, iflag, ft->_state);
169 sumflags.push_back(fSum);
ContainerSingle2D _cFGMsmFraction_depthlike
double _thresh_EtMsmRate_high
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
HcalElectronicsMap const * _emap
double _thresh_FGMsmRate_low
std::vector< uint32_t > _vhashCrates
double _thresh_EtMsmRate_low
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
constexpr HcalSubdetector subdet() const
get the subdetector
double _thresh_FGMsmRate_high
virtual void setBinContent(int, int, int)
int version() const
get the version code for the trigger tower
ContainerSingle2D _cEtMsmFraction_depthlike
Readout chain identification for Hcal.
std::vector< HcalTrigTowerDetId > allTriggerId() const
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id
int ietaAbs() const
get the absolute value of the tower ieta