4 using namespace hcaldqm;
5 using namespace hcaldqm::constants;
20 "thresh_EtMsmRate_high", 0.2);
22 "thresh_EtMsmRate_low", 0.05);
24 "thresh_FGMsmRate", 0.2);
26 "thresh_FGMsmRate_low", 0.05);
50 _emap = dbs->getHcalMapping();
54 std::vector<uint32_t> vVME;
55 std::vector<uint32_t> vuTCA;
56 std::vector<uint32_t> depth0;
71 for (std::vector<int>::const_iterator it=vFEDsVME.begin();
72 it!=vFEDsVME.end(); ++it)
77 for (std::vector<int>::const_iterator it=vFEDsuTCA.begin();
78 it!=vFEDsuTCA.end(); ++it)
386 "OccupancyCutDatavsLS",
395 "OccupancyCutDatavsBX",
404 "OccupancyCutEmulvsLS",
413 "OccupancyCutEmulvsBX",
440 sprintf(aux,
"BIT%d", iii);
539 DQTask::_resetMonitors(uf);
556 _logger.
dqmthrow(
"Collection HcalTrigPrimDigiCollection isn't available"
559 _logger.
dqmthrow(
"Collection HcalTrigPrimDigiCollection isn't available"
566 int numHBHE(0), numHF(0), numCutHBHE(0), numCutHF(0);
567 int numCorrHBHE(0), numCorrHF(0);
568 int numMsmHBHE(0), numMsmHF(0);
569 int numMsnHBHE(0), numMsnHF(0), numMsnCutHBHE(0), numMsnCutHF(0);
572 uint32_t rawidHBHEValid = 0;
573 uint32_t rawidHFValid = 0;
585 it!=cdata->end(); ++it)
594 rawidHFValid = tid.
rawId();
596 rawidHBHEValid = tid.
rawId();
608 if (jt!=cemul->end())
610 jt->SOI_compressedEt());
618 int soiEt_d = it->t0().compressedEt();
621 soiFG_d[ibit] = it->t0().fineGrain(ibit)?1:0;
622 tid.
ietaAbs()>=29?numHF++:numHBHE++;
642 tid.
ietaAbs()>=29?numCutHF++:numCutHBHE++;
663 if (jt!=cemul->end())
666 int soiEt_e = jt->SOI_compressedEt();
669 soiFG_e[ibit] = jt->t0().fineGrain(ibit)?1:0;
671 double rEt = soiEt_d==0 && soiEt_e==0?1:
679 tid.
ietaAbs()>=29?numCorrHF++:numCorrHBHE++;
701 if (soiEt_d!=soiEt_e)
703 tid.
ietaAbs()>=29?numMsmHF++:numMsmHBHE++;
732 tid.
ietaAbs()>=29?numMsnHF++:numMsnHBHE++;
740 tid.
ietaAbs()>=29?numMsnCutHF++:numMsnCutHBHE++;
747 if (rawidHFValid!=0 && rawidHBHEValid!=0)
780 double(numMsmHBHE)/
double(numCorrHBHE));
783 double(numMsmHF)/
double(numCorrHF));
785 double(numMsmHBHE)/
double(numCorrHBHE));
787 double(numMsmHF)/
double(numCorrHF));
809 numHBHE=0; numHF=0; numCutHBHE=0; numCutHF=0;
810 numMsnHBHE=0; numMsnHF=0; numCutHBHE=0; numCutHF=0;
825 it!=cemul->end(); ++it)
834 rawidHFValid = tid.
rawId();
836 rawidHBHEValid = tid.
rawId();
846 int soiEt = it->SOI_compressedEt();
849 tid.
ietaAbs()>=29?numHF++:numHBHE++;
867 tid.
ietaAbs()>=29?numCutHF++:numCutHBHE++;
887 if (jt==cdata->end())
889 tid.
ietaAbs()>=29?numMsnHF++:numMsnHBHE++;
897 tid.
ietaAbs()>=29?numMsnCutHF++:numMsnCutHBHE++;
904 if (rawidHBHEValid!=0 && rawidHFValid!=0)
953 DQTask::beginLuminosityBlock(lb, es);
965 for (std::vector<uint32_t>::const_iterator it=
_vhashFEDs.begin();
971 std::vector<uint32_t>::const_iterator cit=
std::find(
976 for (uint32_t iflag=0; iflag<
_vflags.size(); iflag++)
1028 for (std::vector<flag::Flag>::iterator ft=
_vflags.begin();
1049 DQTask::endLuminosityBlock(lb, es);
hcaldqm::ContainerProf1D _cEtCorrRatiovsBX_TTSubdet
hcaldqm::ContainerXXX< uint32_t > _xDataTotal
T getUntrackedParameter(std::string const &, T const &) const
hcaldqm::ContainerProf1D _cMsnCutEmulvsBX_TTSubdet
hcaldqm::Container2D _cMsnData_ElectronicsVME
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *qy=new ValueQuantity(quantity::fN), int debug=0)
hcaldqm::Container1D _cEtEmul_TTSubdet
hcaldqm::ContainerSingleProf2D _cEtData_depthlike
virtual void setBinContent(HcalDetId const &, int)
hcaldqm::ContainerProf1D _cMsnDatavsBX_TTSubdet
double _thresh_FGMsmRate_high
hcaldqm::ContainerSingle2D _cOccupancyCutEmul_depthlike
hcaldqm::ContainerProf1D _cMsnDatavsLS_TTSubdet
std::pair< uint16_t, uint16_t > fed2crate(int fed)
std::vector< uint32_t > _vhashFEDs
hcaldqm::ContainerProf1D _cEtMsmvsLS_TTSubdet
hcaldqm::Container2D _cOccupancyData_ElectronicsVME
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
hcaldqm::ContainerProf1D _cEtCutEmulvsLS_TTSubdet
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
edm::EDGetTokenT< HcalTrigPrimDigiCollection > _tokData
#define DEFINE_FWK_MODULE(type)
MonitorElement * meUnknownIds1LS
std::vector< HcalTriggerPrimitiveDigi >::const_iterator const_iterator
hcaldqm::ContainerSingleProf2D _cEtCorrRatio_depthlike
hcaldqm::ContainerProf1D _cMsnCutDatavsBX_TTSubdet
int bunchCrossing() const
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
hcaldqm::ContainerProf1D _cMsnCutDatavsLS_TTSubdet
hcaldqm::ContainerSingle2D _cOccupancyCutData_depthlike
double _thresh_FGMsmRate_low
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
hcaldqm::ContainerProf1D _cOccupancyDatavsLS_TTSubdet
hcaldqm::Container2D _cOccupancyEmul_ElectronicsVME
hcaldqm::ContainerProf1D _cEtMsmRatiovsLS_TTSubdet
void bookHistograms(fwlite::EventContainer &eventCont)
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
hcaldqm::ContainerSingle2D _cOccupancyEmul2x3_depthlike
hcaldqm::ContainerProf1D _cMsnEmulvsBX_TTSubdet
virtual void initialize(std::string const &folder, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
double _thresh_EtMsmRate_low
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
hcaldqm::ContainerProf2D _cEtCorrRatio_ElectronicsuTCA
std::vector< int > getFEDVMEList(HcalElectronicsMap const *)
uint32_t rawId() const
get the raw id
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
hcaldqm::Container2D _cFGCorr_TTSubdet[hcaldqm::constants::NUM_FGBITS]
hcaldqm::ContainerXXX< uint32_t > _xDataMsn
uint32_t lookup(DetId const &)
virtual void fill(HcalDetId const &)
hcaldqm::filter::HashFilter _filter_uTCA
hcaldqm::Container2D _cSummaryvsLS_FED
virtual void fill(uint32_t)
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, int debug=0)
hcaldqm::Container2D _cOccupancyCutData_ElectronicsVME
std::vector< hcaldqm::flag::Flag > _vflags
virtual void setBinContent(int, int, int)
hcaldqm::ContainerXXX< uint32_t > _xEmulMsn
void dqmthrow(std::string const &msg) const
hcaldqm::ContainerProf2D _cEtData_ElectronicsVME
hcaldqm::ContainerProf1D _cEtMsmvsBX_TTSubdet
HcalElectronicsMap const * _emap
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fEnergy), int debug=0)
TPTask(edm::ParameterSet const &)
hcaldqm::ContainerProf1D _cOccupancyDatavsBX_TTSubdet
hcaldqm::ContainerProf2D _cEtEmul_ElectronicsuTCA
hcaldqm::ContainerProf1D _cEtCorrRatiovsLS_TTSubdet
hcaldqm::ContainerSingle2D _cOccupancyData2x3_depthlike
hcaldqm::ContainerSingle2D _cFGMsm_depthlike
hcaldqm::ContainerProf2D _cEtEmul_ElectronicsVME
MonitorElement * book1D(Args &&...args)
hcaldqm::filter::HashFilter _filter_depth0
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
int const FIBER_uTCA_MIN1
hcaldqm::ContainerProf2D _cEtCorrRatio_ElectronicsVME
hcaldqm::ContainerXXX< uint32_t > _xEtMsm
hcaldqm::Container2D _cEtMsm_ElectronicsuTCA
hcaldqm::Container2D _cOccupancyCutEmul_ElectronicsuTCA
double _thresh_EtMsmRate_high
hcaldqm::ContainerProf1D _cOccupancyCutDatavsLS_TTSubdet
hcaldqm::Container2D _cOccupancyCutData_ElectronicsuTCA
hcaldqm::ContainerSingle2D _cSummaryvsLS
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
hcaldqm::ContainerSingle2D _cOccupancyData_depthlike
hcaldqm::Container2D _cOccupancyCutEmul_ElectronicsVME
hcaldqm::ContainerSingle2D _cEtMsm_depthlike
hcaldqm::ContainerProf1D _cEtCutDatavsLS_TTSubdet
hcaldqm::Container2D _cMsnData_ElectronicsuTCA
hcaldqm::Container2D _cFGMsm_ElectronicsVME
hcaldqm::Container2D _cMsnEmul_ElectronicsuTCA
hcaldqm::ContainerProf1D _cOccupancyEmulvsBX_TTSubdet
hcaldqm::ContainerXXX< uint32_t > _xEmulTotal
void setCurrentFolder(const std::string &fullpath)
bool isFEDHBHE(HcalElectronicsId const &)
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
virtual void book(HcalElectronicsMap const *)
hcaldqm::Container2D _cFGMsm_ElectronicsuTCA
virtual void initialize(std::string const &folder, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
hcaldqm::ContainerProf1D _cEtCutDatavsBX_TTSubdet
int version() const
get the version code for the trigger tower
std::vector< bool > _vFGBitsReady
hcaldqm::ContainerProf1D _cOccupancyCutEmulvsBX_TTSubdet
hcaldqm::ContainerXXX< uint32_t > _xFGMsm
hcaldqm::Container2D _cOccupancyEmul_ElectronicsuTCA
hcaldqm::ContainerProf1D _cOccupancyCutDatavsBX_TTSubdet
std::vector< std::vector< double > > tmp
hcaldqm::ContainerSingle2D _cOccupancyEmul_depthlike
hcaldqm::Container2D _cOccupancyData_ElectronicsuTCA
virtual STDTYPE & get(HcalDetId const &)
edm::EDGetTokenT< HcalTrigPrimDigiCollection > _tokEmul
hcaldqm::ContainerProf1D _cEtCutEmulvsBX_TTSubdet
std::vector< int > getFEDList(HcalElectronicsMap const *)
hcaldqm::Container2D _cEtMsm_ElectronicsVME
hcaldqm::Container2D _cEtCorr2x3_TTSubdet
std::vector< int > getFEDuTCAList(HcalElectronicsMap const *)
hcaldqm::Container2D _cEtCorr_TTSubdet
hcaldqm::ContainerSingleProf2D _cEtEmul_depthlike
hcaldqm::ContainerXXX< uint32_t > _xNumCorr
hcaldqm::filter::HashFilter _filter_VME
std::vector< uint32_t > _vcdaqEids
hcaldqm::ContainerProf1D _cOccupancyEmulvsLS_TTSubdet
hcaldqm::ContainerProf1D _cOccupancyCutEmulvsLS_TTSubdet
virtual void fill(int, int)
virtual void initialize(hashfunctions::HashType, int debug=0)
virtual void initialize(FilterType ftype, HashType htype, std::vector< uint32_t > const &)
void setLumiFlag(void)
this ME is meant to be stored for each luminosity section
hcaldqm::ContainerProf1D _cEtMsmRatiovsBX_TTSubdet
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
hcaldqm::ContainerSingleProf2D _cEtCutEmul_depthlike
hcaldqm::ContainerProf2D _cEtData_ElectronicsuTCA
hcaldqm::ContainerProf1D _cMsnEmulvsLS_TTSubdet
Readout chain identification for Hcal.
hcaldqm::ContainerSingle2D _cMsnData_depthlike
bool isFEDHF(HcalElectronicsId const &)
int ietaAbs() const
get the absolute value of the tower ieta
virtual void _process(edm::Event const &, edm::EventSetup const &)
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
hcaldqm::ContainerSingleProf2D _cEtCutData_depthlike
virtual void _resetMonitors(hcaldqm::UpdateFreq)
hcaldqm::Container1D _cEtData_TTSubdet
hcaldqm::ContainerSingle2D _cMsnEmul_depthlike
hcaldqm::ContainerProf1D _cMsnCutEmulvsLS_TTSubdet
hcaldqm::Container2D _cMsnEmul_ElectronicsVME