Skip to content

Commit

Permalink
update GEM Status to check GE21 module type
Browse files Browse the repository at this point in the history
  • Loading branch information
yeckang committed Oct 31, 2022
1 parent 0fb364f commit 15d6c3d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 3 additions & 1 deletion DataFormats/GEMDigi/interface/GEMOHStatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class GEMOHStatus {
};

GEMOHStatus() {}
GEMOHStatus(const GEMOptoHybrid& oh) {
GEMOHStatus(const GEMOptoHybrid& oh, int chamberType) : chamberType_(chamberType) {
Errors error{0};
error.EvtF = oh.evtF();
error.InF = oh.inF();
Expand Down Expand Up @@ -77,8 +77,10 @@ class GEMOHStatus {
uint32_t vfatMask() const { return vfatMask_; }
uint32_t zsMask() const { return zsMask_; }
uint32_t existVFATs() const { return existVFATs_; }
int chamberType() const { return chamberType_; }

private:
int chamberType_;
uint16_t errors_;
uint8_t warnings_;
uint32_t missingVFATs_;
Expand Down
4 changes: 3 additions & 1 deletion DataFormats/GEMDigi/interface/GEMVFATStatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class GEMVFATStatus {
};

GEMVFATStatus() {}
GEMVFATStatus(const GEMAMC& amc, const GEMOptoHybrid& oh, const GEMVFAT& vfat, bool readMultiBX) {
GEMVFATStatus(const GEMAMC& amc, const GEMOptoHybrid& oh, const GEMVFAT& vfat, int chamberType, bool readMultiBX) : chamberType_(chamberType){
Errors error{0};
Warnings warn{0};

Expand Down Expand Up @@ -64,8 +64,10 @@ class GEMVFATStatus {
bool isBad() const { return errors_ != 0; }
uint8_t errors() const { return errors_; }
uint8_t warnings() const { return warnings_; }
int chamberType() const { return chamberType_; }

private:
int chamberType_;
uint16_t vfatPosition_;
uint8_t errors_;
uint8_t warnings_;
Expand Down
6 changes: 4 additions & 2 deletions DataFormats/GEMDigi/src/classes_def.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,21 @@
<class name="MuonDigiCollection<uint16_t,GEMAMCStatus>"/>
<class name="edm::Wrapper<MuonDigiCollection<uint16_t,GEMAMCStatus> >" splitLevel="0"/>

<class name="GEMOHStatus" ClassVersion="4">
<class name="GEMOHStatus" ClassVersion="5">
<version ClassVersion="3" checksum="1715607020"/>
<version ClassVersion="4" checksum="442197271"/>
<version ClassVersion="5" checksum="3896553455"/>
</class>
<class name="std::vector<GEMOHStatus>"/>
<class name="std::map<GEMDetId,std::vector<GEMOHStatus> >"/>
<class name="std::pair<GEMDetId,std::vector<GEMOHStatus> >"/>
<class name="MuonDigiCollection<GEMDetId,GEMOHStatus>"/>
<class name="edm::Wrapper<MuonDigiCollection<GEMDetId,GEMOHStatus> >" splitLevel="0"/>

<class name="GEMVFATStatus" ClassVersion="4">
<class name="GEMVFATStatus" ClassVersion="5">
<version ClassVersion="3" checksum="2994917778"/>
<version ClassVersion="4" checksum="2298275534"/>
<version ClassVersion="5" checksum="272057922"/>
</class>
<class name="std::vector<GEMVFATStatus>"/>
<class name="std::map<GEMDetId,std::vector<GEMVFATStatus> >"/>
Expand Down
4 changes: 2 additions & 2 deletions EventFilter/GEMRawToDigi/plugins/GEMRawToDigiModule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ void GEMRawToDigiModule::produce(edm::StreamID iID, edm::Event& iEvent, edm::Eve
GEMDetId cId(geb_dc.detId);
int chamberType = geb_dc.chamberType;

GEMOHStatus st_oh(optoHybrid);
GEMOHStatus st_oh(optoHybrid, chamberType);
if (st_oh.isBad()) {
LogDebug("GEMRawToDigiModule") << st_oh;
if (keepDAQStatus_) {
Expand All @@ -195,7 +195,7 @@ void GEMRawToDigiModule::produce(edm::StreamID iID, edm::Event& iEvent, edm::Eve
continue;
}

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

0 comments on commit 15d6c3d

Please sign in to comment.