53 minFEDNum_(ps.getUntrackedParameter<
int>(
"MinHcalFEDID",
FEDNumbering::MINHCALuTCAFEDID)),
54 maxFEDNum_(ps.getUntrackedParameter<
int>(
"MaxHcalFEDID",
FEDNumbering::MAXHCALuTCAFEDID)),
55 dirName_(ps.getUntrackedParameter<
std::
string>(
"DirName",
"Hcal/FEDIntegrity/")) {
56 LogInfo(
"HcalDQM") <<
"HcalFEDIntegrityTask::HcalFEDIntegrityTask: Constructor Initialization" << endl;
61 LogInfo(
"HcalDQM") <<
"HcalFEDIntegrityTask::~HcalFEDIntegrityTask: Destructor" << endl;
87 const std::vector<int> FedsError = (*report).getFedsError();
88 for (
auto &fed : FedsError) {
90 LogWarning(
"HcalDQM") <<
"HcalFEDIntegrityTask::analyze: obsoleteVME FEDs from HcalUnpackerReport" << endl;
108 uint32_t bcn =
amc13->bunchId();
109 uint32_t orn =
amc13->orbitNumber() & 0xFFFF;
110 uint32_t evn =
amc13->l1aNumber();
111 int namc =
amc13->NAMC();
114 for (
int iamc = 0; iamc < namc; iamc++) {
115 if (!
amc13->AMCEnabled(iamc) || !
amc13->AMCDataPresent(iamc) || !
amc13->AMCCRCOk(iamc) ||
116 amc13->AMCSegmented(iamc)) {
117 LogWarning(
"HcalDQM") <<
"HcalFEDIntegrityTask::analyze: AMC issue on iamc" << iamc << endl;
123 uint32_t uhtr_bcn = uhtr.bunchNumber();
124 uint32_t uhtr_orn = uhtr.orbitNumber();
126 if (uhtr_evn != evn || uhtr_bcn != bcn || uhtr_orn != orn) {
127 if (
std::find(FedsError.begin(), FedsError.end(), fed) ==
145 me->setBinLabel(
i + 1, xLabel, 1);
152 desc.addUntracked<
int>(
"debug", 0);
155 desc.addUntracked<
int>(
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
void labelBins(MonitorElement *me)
void analyze(const edm::Event &, const edm::EventSetup &) override
virtual void setCurrentFolder(std::string const &fullpath)
edm::EDGetTokenT< FEDRawDataCollection > tokFEDs_
MonitorElement * meFEDEntries_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
example_stream void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * meFEDFatal_
void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override
#define DEFINE_FWK_MODULE(type)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
Log< level::Info, false > LogInfo
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
uint32_t l1ANumber() const
Get the HTR event number.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Log< level::Warning, false > LogWarning
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
edm::EDGetTokenT< HcalUnpackerReport > tokReport_
~HcalFEDIntegrityTask() override
MonitorElement * meFEDNonFatal_
HcalFEDIntegrityTask(const edm::ParameterSet &ps)