4 using namespace hcaldqm;
59 _name+
"/CapIdRotations/depth",
"CapIdRotations",
69 _name+
"/Occupancy/vsiphi_SubDetPM",
169 _fNames.push_back(
"Low Occupancy");
170 _fNames.push_back(
"Digi Size Drift");
171 _fNames.push_back(
"iphi Uniformity");
172 _fNames.push_back(
"Missing for 1LS");
173 _fNames.push_back(
"Cap Id Rotation");
249 _occ_1LS[idet][iiphi][iieta][id] =
false;
261 _occ_10LS[idet][iiphi][iieta][
id] =
false;
271 DQTask::_resetMonitors(uf);
292 it!=chbhe->end(); ++it)
295 double sumQ = utilities::sumQ<HBHEDataFrame>(digi, 2.5, 0,
297 double timing = utilities::aveTS<HBHEDataFrame>(digi, 2.5, 0,
309 _occ_1LS[did.subdet()-1][did.iphi()-1][iieta][did.depth()-1] =
true;
310 _occ_10LS[did.subdet()-1][did.iphi()-1][iieta][did.depth()-1] =
true;
311 _error_1LS[did.subdet()-1][did.iphi()-1][iieta][did.depth()-1] =
312 utilities::isError<HBHEDataFrame>(digi);
318 if (
_occ_Always[did.subdet()-1][did.iphi()-1][iieta][did.depth()-1]==
false)
321 _occ_Always[did.subdet()-1][did.iphi()-1][iieta][did.depth()-1]=
true;
342 for (
int i=0;
i<digi.size();
i++)
356 digi.sample(
i).nominal_fC()-2.5);
361 it!=cho->end(); ++it)
364 double sumQ = utilities::sumQ<HODataFrame>(digi, 8.5, 0,
366 double timing = utilities::aveTS<HODataFrame>(digi, 8.5, 0,
378 _occ_1LS[did.subdet()-1][did.iphi()-1][iieta][did.depth()-1] =
true;
379 _occ_10LS[did.subdet()-1][did.iphi()-1][iieta][did.depth()-1] =
true;
380 _error_1LS[did.subdet()-1][did.iphi()-1][iieta][did.depth()-1] =
381 utilities::isError<HODataFrame>(digi);
387 if (
_occ_Always[did.subdet()-1][did.iphi()-1][iieta][did.depth()-1]==
false)
390 _occ_Always[did.subdet()-1][did.iphi()-1][iieta][did.depth()-1]=
true;
412 for (
int i=0;
i<digi.size();
i++)
426 digi.sample(
i).nominal_fC()-8.5);
431 it!=chf->end(); ++it)
434 double sumQ = utilities::sumQ<HFDataFrame>(digi, 2.5, 0,
436 double timing = utilities::aveTS<HFDataFrame>(digi, 2.5, 0,
448 _occ_1LS[did.subdet()-1][did.iphi()-1][iieta][did.depth()-1] =
true;
449 _occ_10LS[did.subdet()-1][did.iphi()-1][iieta][did.depth()-1] =
true;
450 _error_1LS[did.subdet()-1][did.iphi()-1][iieta][did.depth()-1] =
451 utilities::isError<HFDataFrame>(digi);
457 if (
_occ_Always[did.subdet()-1][did.iphi()-1][iieta][did.depth()-1]==
false)
460 _occ_Always[did.subdet()-1][did.iphi()-1][iieta][did.depth()-1]=
true;
471 double q1 = digi.sample(1).nominal_fC()-2.5;
472 double q2 = digi.sample(2).nominal_fC()-2.5;
473 double q2q12 = q2/(q1+
q2);
474 if (did.iphi()==3 && did.ieta()==41 && did.depth()==2)
476 if (did.iphi()==3 && did.ieta()==-41 && did.depth()==2)
492 for (
int i=0;
i<digi.size();
i++)
506 digi.sample(
i).nominal_fC()-2.5);
507 if (did.iphi()==3 && did.ieta()==41 && did.depth()==2)
509 digi.sample(
i).nominal_fC()-2.5);
510 if (did.iphi()==3 && did.ieta()==-41 && did.depth()==2)
512 digi.sample(
i).nominal_fC()-2.5);
585 int i1 = (IPHI_NUM-1+
i)%IPHI_NUM;
586 int i2 = (IPHI_NUM-1+2+
i)%IPHI_NUM;
587 int j1 = (IPHI_NUM-1+4+
i)%IPHI_NUM;
588 int j2 = (IPHI_NUM-1+6+
i)%IPHI_NUM;
608 if (ratio_m<0.8 || ratio_p<0.8)
638 int ieta = iieta<constants::IETA_NUM/2 ?
641 HcalDetId did(subd, ieta, iiphi+1,
id+1);
647 if (!
_occ_1LS[idet][iiphi][iieta][
id])
709 DQTask::endLuminosityBlock(lb, es);
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 _cfCperTS_SubDet
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="")
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)
double sumQ(DIGI digi, double ped, int i=0, int j=3)
int _numDigis[constants::SUBDET_NUM]
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
edm::EDGetTokenT< HBHEDigiCollection > _tokHBHE
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Container2D _cSummaryvsLS_SubDet
#define DEFINE_FWK_MODULE(type)
ContainerSingle2D _cSummary
ContainerSingleProf1D _cQ2Q12CutvsLS_p3em41d2
ContainerProf1D _cOccupancyvsLS_SubDet
edm::EDGetTokenT< HFDigiCollection > _tokHF
bool validDetId(HcalSubdetector sd, int ies, int ip, int dp)
Container2D _cOccupancyCut_depth
Container2D _cOccupancyOnce_depth
int size() const
total number of samples in the digi
int _nCapIdRots[constants::SUBDET_NUM]
std::vector< HBHEDataFrame >::const_iterator const_iterator
bool _error_1LS[constants::SUBDET_NUM][constants::IPHI_NUM][constants::IETA_NUM][constants::DEPTH_NUM]
bool _occ_1LS[constants::SUBDET_NUM][constants::IPHI_NUM][constants::IETA_NUM][constants::DEPTH_NUM]
edm::EDGetTokenT< HODigiCollection > _tokHO
Container1D _cShape_SubDetPM_iphi
ContainerSingle1D _cShapeCut_p3em41d2
Container1D _cShapeCut_SubDetPM_iphi
Container1D _cOccupancyCutvsiphi_SubDetPM
virtual void setBinContent(int, int, double)
virtual void loadLabels(std::vector< std::string > const &)
virtual void initialize(std::string const &folder, std::string const &nametitle, MapperType mt, Axis *xaxis, Axis *yaxis=new CoordinateAxis(axis::fYaxis, axis::fiphi), Axis *zaxis=new ValueAxis(axis::fZaxis, axis::fEntries), int debug=0)
void bookHistograms(fwlite::EventContainer &eventCont)
Container1D _cTimingCut_SubDetPM_iphi
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
ContainerProf1D _cQ2Q12CutvsLS_HFPM_iphi
ContainerProf2D _cTimingCut_depth
ContainerProf2D _cSumQ_depth
virtual void fill(HcalDetId const &)
ContainerProf1D _cTimingCutvsiphi_SubDet_ieta
Container1D _cADCperTS_SubDet
Container2D _cMsn1LS_depth
ContainerProf1D _cTimingCutvsLS_SubDetPM_iphi
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
void dqmthrow(std::string const &msg) const
int ieta() const
get the cell ieta
virtual void fill(double)
virtual void loadLabels(std::vector< std::string > const &)
int size() const
total number of samples in the digi
Abs< T >::type abs(const T &t)
virtual void _resetMonitors(UpdateFreq)
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)
ContainerSingleProf1D _cQ2Q12CutvsLS_p3e41d2
ContainerProf1D _cOccupancyCutvsLS_SubDet
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
ContainerSingle1D _cShapeCut_p3e41d2
ContainerProf1D _cSumQvsLS_SubDetPM_iphi
Container2D _cOccupancy_depth
DigiTask(edm::ParameterSet const &)
virtual void initialize(std::string const &folder, std::string const &nametitle, axis::Axis *xaxis, axis::Axis *yaxis=new ValueAxis(fYaxis, axis::fEntries), int debug=0)
virtual void initialize(std::string const &folder, std::string const &nametitle, axis::Axis *xaxis, axis::Axis *yaxis=new ValueAxis(fYaxis, axis::fEntries), int debug=0)
int size() const
total number of samples in the digi
bool _occ_10LS[constants::SUBDET_NUM][constants::IPHI_NUM][constants::IETA_NUM][constants::DEPTH_NUM]
std::vector< std::string > _fNames
virtual MonitorElement * at(unsigned int i)
double getBinError(int binx) const
get uncertainty on content of bin (1-D) - See TH1::GetBinError for details
int const CHS_NUM[SUBDET_NUM]
Container1D _cOccupancyvsiphi_SubDetPM
ContainerProf1D _cMsn1LSvsLS_SubDet
virtual void setBinContent(int, int, int, double)
double const NOT_APPLICABLE
double getBinContent(int binx) const
get content of bin (1-D)
int _nMsn[constants::SUBDET_NUM]
Container1D _cSumQ_SubDetPM_iphi
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
bool _occ_Always[constants::SUBDET_NUM][constants::IPHI_NUM][constants::IETA_NUM][constants::DEPTH_NUM]
Container2D _cMsn10LS_depth
Container2D _cCapIdRots_depth
int const TS_NUM[SUBDET_NUM]
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
virtual double getBinContent(unsigned int, int)
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
ContainerProf1D _cDigiSizevsLS_SubDet
virtual void _process(edm::Event const &, edm::EventSetup const &)
tuple size
Write out results.
ContainerProf1D _cTimingCutvsieta_SubDet_iphi
int _numDigisCut[constants::SUBDET_NUM]