4 using namespace hcaldqm;
31 _name+
"/EtCorrRatio/vsiphi_TPSubDetPM",
48 _name+
"/EtMismatched/vsiphi_TPSubDetPM",
89 _name+
"/Occupancy/vsiphi_TPSubDetPM_Data",
93 _name+
"/Occupancy/vsiphi_TPSubDetPM_Emul",
97 _name+
"/Occupancy/vsLS_TPSubDet_Data",
102 _name+
"/Occupancy/vsLS_TPSubDet_Emul",
111 _name+
"/Missing/vsiphi_TPSubDetPM_Data",
151 _fNames.push_back(
"Occ. iphi Uniform. D");
152 _fNames.push_back(
"Occ. iphi Uniform. E");
153 _fNames.push_back(
"Low Occupancy E");
154 _fNames.push_back(
"Corr. Ratio");
155 _fNames.push_back(
"Corr. Ratio iphi Uniform");
156 _fNames.push_back(
"Msm. Et iphi Uniform. ");
157 _fNames.push_back(
"Msm. Et Number");
158 _fNames.push_back(
"Missing iphi Uniform. D");
207 _logger.
dqmthrow(
"Collection HcalTrigPrimDigiCollection isn't available"
210 _logger.
dqmthrow(
"Collection HcalTrigPrimDigiCollection isn't available"
219 double sumdEt[2] = {0, 0};
221 hddigi!=ctpd->end(); ++hddigi)
225 if (hddigi->id().depth()==10)
230 int soiEt_d = hddigi->SOI_compressedEt();
231 int soiFG_d = hddigi->SOI_fineGrain() ? 1 : 0;
240 if (hddigi->id().depth()==1)
258 if (hedigi!=ctpe->end())
260 int soiEt_e = hedigi->SOI_compressedEt();
261 int soiFG_e = hedigi->SOI_fineGrain() ? 1 : 0;
262 double rEt = double(
std::min(soiEt_d, soiEt_e))/
279 if (soiEt_d!=soiEt_e)
285 if (soiFG_d!=soiEt_e)
299 hedigi!=ctpe->end(); ++hedigi)
303 if (hedigi->id().depth()==10)
311 hedigi->id().iphi(), useD1 ? 1: 0));
315 if (hddigi==ctpd->end())
385 bool nonUni_d =
false;
386 bool nonUni_e =
false;
387 bool nonUniMsm =
false;
388 bool nonUniMsn =
false;
389 for (
int i=1;
i<=69;
i+=8)
396 double ratio_m_d =
std::min(occ1_m_d, occ2_m_d)/
400 double ratio_p_d =
std::min(occ1_p_d, occ2_p_d)/
405 double ratio_m_e =
std::min(occ1_m_e, occ2_m_e)/
409 double ratio_p_e =
std::min(occ1_p_e, occ2_p_e)/
414 double msmratio_m =
std::min(msm1_m, msm2_m)/
418 double msmratio_p =
std::min(msm1_p, msm2_p)/
423 double msnratio_m =
std::min(msn1_m, msn2_m)/
427 double msnratio_p =
std::min(msn1_p, msn2_p)/
430 if (ratio_m_d<0.8 || ratio_p_d<0.8)
434 if (ratio_m_e<0.8 || ratio_p_e<0.8)
438 if (msmratio_m<0.8 || msmratio_p<0.8)
442 if (msnratio_m<0.8 || msnratio_p<0.8)
466 else if (ratio_HBHE<0.8)
472 else if (ratio_HF<0.9)
482 if (ratio_nmsm_HBHE>=0.2)
484 else if (ratio_nmsm_HBHE>=0.1)
486 else if (ratio_nmsm_HBHE>=0.05)
490 if (ratio_nmsm_HF>=0.1)
492 else if (ratio_nmsm_HF>=0.05)
506 DQTask::endLuminosityBlock(l, es);
530 DQTask::_resetMonitors(uf);
virtual void initialize(std::string const &folder, std::string const &nametitle, mapper::MapperType mt, axis::Axis *xaxis, axis::Axis *yaxis=new axis::ValueAxis(axis::fYaxis, axis::fEntries), int debug=0)
Container1D _cSumdEt_TPSubDet
Container1D _cNumEtMsmvsiphi_TPSubDetPM
virtual void initialize(std::string const &folder, std::string const &nametitle, axis::Axis *xaxis, axis::Axis *yaxis=new CoordinateAxis(fYaxis, axis::fiphi), axis::Axis *zaxis=new ValueAxis(fZaxis, fEntries), int debug=0)
T getUntrackedParameter(std::string const &, T const &) const
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
int _nMsmEt[constants::TPSUBDET_NUM]
virtual void initialize(std::string const &folder, std::string nametitle, mapper::MapperType mt, axis::Axis *xaxis, axis::Axis *yaxis=new axis::CoordinateAxis(axis::fYaxis, axis::fiphi), axis::Axis *zaxis=new axis::ValueAxis(axis::fZaxis, axis::fEntries), int debug=0)
Container1D _cEtData_SubDetPM_iphi
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
ContainerSingle2D _cMsData
int const TPCHS_NUM[TPSUBDET_NUM]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< HcalTrigPrimDigiCollection > _tokData
#define DEFINE_FWK_MODULE(type)
Container1D _cOccupancyEmulvsiphi_TPSubDetPM
std::vector< std::string > _fNames
ContainerProf1D _cNumEtMsmvsLS_TPSubDet
std::vector< HcalTriggerPrimitiveDigi >::const_iterator const_iterator
Container1D _cEtEmul_SubDet
int ieta() const
get the tower ieta
virtual void setBinContent(int, int, double)
virtual void loadLabels(std::vector< std::string > const &)
void bookHistograms(fwlite::EventContainer &eventCont)
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
ContainerSingle2D _cOccupancyEmul
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
ContainerSingle2D _cFGMsm
virtual void fill(HcalDetId const &)
Container1D _cMsDatavsiphi_TPSubDetPM
Container1D _cEtData_SubDet
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
void dqmthrow(std::string const &msg) const
ContainerProf1D _cOccupancyDatavsLS_TPSubDet
ContainerSingle2D _cEtMsm
ContainerProf1D _cOccupancyEmulvsLS_TPSubDet
virtual void fill(double)
virtual void loadLabels(std::vector< std::string > const &)
Abs< T >::type abs(const T &t)
Container1D _cNumEtMsm_TPSubDet
Container1D _cEtCorrRatio_TPSubDet
Container2D _cSummaryvsLS_TPSubDet
virtual void initialize(std::string const &folder, std::string const &nametitle, mapper::MapperType mt, axis::Axis *xaxis, axis::Axis *yaxis=new ValueAxis(fYaxis, fEntries), int debug=0)
int _nMsmFG[constants::TPSUBDET_NUM]
ContainerProf1D _cEtCorrRatiovsiphi_TPSubDetPM
TPTask(edm::ParameterSet const &ps)
int getTPSubDet(HcalTrigTowerDetId const &)
ContainerProf1D _cDigiSizeDatavsLS_TPSubDet
ContainerProf1D _cDigiSizeEmulvsLS_TPSubDet
virtual MonitorElement * at(unsigned int i)
int version() const
get the version code for the trigger tower
virtual void _resetMonitors(UpdateFreq)
Container1D _cOccupancyDatavsiphi_TPSubDetPM
virtual void setBinContent(int, int, int, double)
Container2D _cFGCorr_SubDet
double const NOT_APPLICABLE
int _nTPs_Emul[constants::TPSUBDET_NUM]
ContainerProf1D _cSumdEtvsLS_TPSubDet
double getBinContent(int binx) const
get content of bin (1-D)
ContainerProf1D _cEtCorrRatiovsLS_TPSubDet
edm::EDGetTokenT< HcalTrigPrimDigiCollection > _tokEmul
Container1D _cEtData_SubDet_ieta
Container2D _cEtCorr_TPSubDet
int _nTPs_Data[constants::TPSUBDET_NUM]
ContainerSingle2D _cOccupancyData
virtual void fill(int, int)
virtual double getBinContent(unsigned int, int)
ContainerSingle2D _cSummary
int iphi() const
get the tower iphi
virtual void _process(edm::Event const &, edm::EventSetup const &)
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
ContainerSingle2D _cMsEmul