Skip to content

Commit ef24cdc

Browse files
committed
fix bx issues for mc using vfat v2
1 parent deaa645 commit ef24cdc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

EventFilter/GEMRawToDigi/plugins/GEMDigiToRawModule.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void GEMDigiToRawModule::produce(edm::StreamID iID, edm::Event& iEvent, edm::Eve
101101
amc13Events.reserve(FEDNumbering::MAXGEMFEDID - FEDNumbering::MINGEMFEDID + 1);
102102

103103
int LV1_id = iEvent.id().event();
104-
int BX_id = iEvent.bunchCrossing();
104+
uint8_t BX_id(iEvent.bunchCrossing());
105105
int OrN = iEvent.orbitNumber();
106106

107107
// making map of bx GEMDigiCollection
@@ -130,7 +130,6 @@ void GEMDigiToRawModule::produce(edm::StreamID iID, edm::Event& iEvent, edm::Eve
130130
for (uint8_t amcNum = 0; amcNum < GEMeMap::maxAMCs_; ++amcNum) {
131131
uint32_t amcSize = 0;
132132
std::unique_ptr<AMCdata> amcData = std::make_unique<AMCdata>();
133-
amcData->setAMCheader1(amcSize, BX_id, LV1_id, amcNum);
134133

135134
for (uint8_t gebId = 0; gebId < GEMeMap::maxGEBs_; ++gebId) {
136135
std::unique_ptr<GEBdata> gebData = std::make_unique<GEBdata>();

EventFilter/GEMRawToDigi/plugins/GEMRawToDigiModule.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ void GEMRawToDigiModule::produce(edm::StreamID iID, edm::Event& iEvent, edm::Eve
207207

208208
vfatData.setPhi(vfat_dc.localPhi);
209209
GEMDetId gemId = vfat_dc.detId;
210-
int bx = vfatData.bc() - amcBx;
210+
int bx(vfatData.bc() - amcBx);
211211

212212
for (int chan = 0; chan < VFATdata::nChannels; ++chan) {
213213
uint8_t chan0xf = 0;

0 commit comments

Comments
 (0)