Skip to content

Commit

Permalink
Merged GEM-DQMAndUnpackerVFATStatus-12_5_X from repository quark2 wit…
Browse files Browse the repository at this point in the history
…h cms-merge-topic
  • Loading branch information
yeckang committed Sep 22, 2022
2 parents 1701c24 + 72c0354 commit 4c0efed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions DQM/GEM/plugins/GEMDAQStatusSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ void GEMDAQStatusSource::analyze(edm::Event const &event, edm::EventSetup const
const GEMVFATStatusCollection::Range &range = (*vfatIt).second;

for (auto vfatStat = range.first; vfatStat != range.second; ++vfatStat) {
Int_t nIdxVFAT = getVFATNumber(gid.station(), gid.ieta(), vfatStat->vfatPosition());
Int_t nIdxVFAT = vfatStat->vfatPosition();

GEMVFATStatus::Warnings warnings{vfatStat->warnings()};
if (warnings.basicOFW)
Expand All @@ -515,7 +515,8 @@ void GEMDAQStatusSource::analyze(edm::Event const &event, edm::EventSetup const
mapStatusVFATPerCh_.Fill(key4Ch, nIdxVFAT, 3);

GEMVFATStatus::Errors errors{(uint8_t)vfatStat->errors()};
mapStatusVFATPerCh_.Fill(key4Ch, nIdxVFAT, 4);
if (errors.vc)
mapStatusVFATPerCh_.Fill(key4Ch, nIdxVFAT, 4);
if (errors.InValidHeader)
mapStatusVFATPerCh_.Fill(key4Ch, nIdxVFAT, 5);
if (errors.EC)
Expand Down
2 changes: 1 addition & 1 deletion EventFilter/GEMRawToDigi/plugins/GEMRawToDigiModule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void GEMRawToDigiModule::produce(edm::StreamID iID, edm::Event& iEvent, edm::Eve
continue;
}

GEMVFATStatus st_vfat(amc, vfat, vfat.phi(), readMultiBX_);
GEMVFATStatus st_vfat(amc, vfat, vfat.position(), readMultiBX_);
if (st_vfat.isBad()) {
LogDebug("GEMRawToDigiModule") << st_vfat;
if (keepDAQStatus_) {
Expand Down

0 comments on commit 4c0efed

Please sign in to comment.