Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMS code rules for CSC digi and trigger objects #29782

Closed
wants to merge 12 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
144 changes: 72 additions & 72 deletions DQM/CSCMonitorModule/plugins/CSCDQM_EventProcessor_processCSC.cc

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions DQM/L1TMonitor/src/L1TCSCTF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -948,9 +948,9 @@ void L1TCSCTF::analyze(const Event& e, const EventSetup& c) {
int ring = (*csc).first.ring();
int cscId = (*csc).first.triggerCscId() - 1;
int fpga = (subSector ? subSector - 1 : station + 1);
int strip = lct->getStrip();
int keyWire = lct->getKeyWG();
int bx = lct->getBX();
int strip = lct->strip();
int keyWire = lct->keyWireGroup();
int bx = lct->bx();

int endcapAssignment = 1;
int shift = 1;
Expand Down Expand Up @@ -1015,23 +1015,23 @@ void L1TCSCTF::analyze(const Event& e, const EventSetup& c) {
lclphidat lclPhi;
try {
lclPhi = srLUTs_[fpga][EndCapLUT][sector]->localPhi(
lct->getStrip(), lct->getPattern(), lct->getQuality(), lct->getBend(), gangedME11a_);
lct->strip(), lct->pattern(), lct->quality(), lct->bend(), gangedME11a_);
} catch (cms::Exception&) {
bzero(&lclPhi, sizeof(lclPhi));
}

gblphidat gblPhi;
try {
gblPhi =
srLUTs_[fpga][EndCapLUT][sector]->globalPhiME(lclPhi.phi_local, lct->getKeyWG(), cscId + 1, gangedME11a_);
gblPhi = srLUTs_[fpga][EndCapLUT][sector]->globalPhiME(
lclPhi.phi_local, lct->keyWireGroup(), cscId + 1, gangedME11a_);
} catch (cms::Exception&) {
bzero(&gblPhi, sizeof(gblPhi));
}

gbletadat gblEta;
try {
gblEta = srLUTs_[fpga][EndCapLUT][sector]->globalEtaME(
lclPhi.phi_bend_local, lclPhi.phi_local, lct->getKeyWG(), cscId + 1, gangedME11a_);
lclPhi.phi_bend_local, lclPhi.phi_local, lct->keyWireGroup(), cscId + 1, gangedME11a_);
} catch (cms::Exception&) {
bzero(&gblEta, sizeof(gblEta));
}
Expand Down Expand Up @@ -1399,9 +1399,9 @@ void L1TCSCTF::analyze(const Event& e, const EventSetup& c) {
lclphidat lclPhi;
lclPhi = srLUTs_[fpga]->localPhi(lct->getStrip(), lct->getPattern(), lct->getQuality(), lct->getBend());
gblphidat gblPhi;
gblPhi = srLUTs_[fpga]->globalPhiME(lclPhi.phi_local, lct->getKeyWG(), cscId+1);
gblPhi = srLUTs_[fpga]->globalPhiME(lclPhi.phi_local, lct->keyWireGroup(), cscId+1);
gbletadat gblEta;
gblEta = srLUTs_[fpga]->globalEtaME(lclPhi.phi_bend_local, lclPhi.phi_local, lct->getKeyWG(), cscId+1);
gblEta = srLUTs_[fpga]->globalEtaME(lclPhi.phi_bend_local, lclPhi.phi_local, lct->keyWireGroup(), cscId+1);

haloVals[indexHalo][2] = gblEta.global_eta/127. * 1.5 + 0.9;
} //station1 or 2
Expand Down Expand Up @@ -1448,9 +1448,9 @@ void L1TCSCTF::analyze(const Event& e, const EventSetup& c) {
// lclphidat lclPhi;
// lclPhi = srLUTs_[fpga]->localPhi(lct->getStrip(), lct->getPattern(), lct->getQuality(), lct->getBend());
// gblphidat gblPhi;
// gblPhi = srLUTs_[fpga]->globalPhiME(lclPhi.phi_local, lct->getKeyWG(), cscId+1);
// gblPhi = srLUTs_[fpga]->globalPhiME(lclPhi.phi_local, lct->keyWireGroup(), cscId+1);
// gbletadat gblEta;
// gblEta = srLUTs_[fpga]->globalEtaME(lclPhi.phi_bend_local, lclPhi.phi_local, lct->getKeyWG(), cscId+1);
// gblEta = srLUTs_[fpga]->globalEtaME(lclPhi.phi_bend_local, lclPhi.phi_local, lct->keyWireGroup(), cscId+1);
// haloEta[station-1] = gblEta.global_eta/127. * 1.5 + 0.9;
// if(station==1 && cscId<2) haloME11 = true;
// }
Expand Down Expand Up @@ -1489,15 +1489,15 @@ void L1TCSCTF::analyze(const Event& e, const EventSetup& c) {
for (std::vector<csctf::TrackStub>::const_iterator stub = vstubs.begin(); stub != vstubs.end(); stub++) {
if (verbose_) {
edm::LogInfo("DataNotFound") << "\n mbEndcap: " << stub->endcap();
edm::LogInfo("DataNotFound") << "\n stub->getStrip()[FLAG]: " << stub->getStrip();
edm::LogInfo("DataNotFound") << "\n stub->getKeyWG()[CAL]: " << stub->getKeyWG();
edm::LogInfo("DataNotFound") << "\n stub->BX(): " << stub->BX();
edm::LogInfo("DataNotFound") << "\n stub->strip()[FLAG]: " << stub->strip();
edm::LogInfo("DataNotFound") << "\n stub->keyWireGroup()[CAL]: " << stub->keyWireGroup();
edm::LogInfo("DataNotFound") << "\n stub->bx(): " << stub->bx();
edm::LogInfo("DataNotFound") << "\n stub->sector(): " << stub->sector();
edm::LogInfo("DataNotFound") << "\n stub->subsector(): " << stub->subsector();
edm::LogInfo("DataNotFound") << "\n stub->station(): " << stub->station();
edm::LogInfo("DataNotFound") << "\n stub->phiPacked(): " << stub->phiPacked();
edm::LogInfo("DataNotFound") << "\n stub->getBend(): " << stub->getBend();
edm::LogInfo("DataNotFound") << "\n stub->getQuality(): " << stub->getQuality();
edm::LogInfo("DataNotFound") << "\n stub->bend(): " << stub->bend();
edm::LogInfo("DataNotFound") << "\n stub->quality(): " << stub->quality();
edm::LogInfo("DataNotFound") << "\n stub->cscid(): " << stub->cscid() << endl;
}
// define the sector ID
Expand All @@ -1507,10 +1507,10 @@ void L1TCSCTF::analyze(const Event& e, const EventSetup& c) {
// horrible! They used the same class to write up the LCT and MB info,
// but given the MB does not have strip and WG they replaced this two
// with the flag and cal bits... :S
if (stub->getKeyWG() == 0) //!CAL as Janos adviced
if (stub->keyWireGroup() == 0) //!CAL as Janos adviced
{
// if FLAG =1, muon belong to previous BX
int bxDT = stub->BX() - stub->getStrip(); // correct by the FLAG
int bxDT = stub->BX() - stub->strip(); // correct by the FLAG
int subDT = stub->subsector();

// Fill the event only if CSC had or would have triggered
Expand Down Expand Up @@ -1542,7 +1542,7 @@ void L1TCSCTF::analyze(const Event& e, const EventSetup& c) {
}
} // loop on the tracks
} //if (isCSCcand_){
} //if (stub->getKeyWG() == 0) {
} //if (stub->keyWireGroup() == 0) {
}
}
}
28 changes: 14 additions & 14 deletions DQM/L1TMonitor/src/L1TCSCTPG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,39 +63,39 @@ void L1TCSCTPG::analyze(const Event& e, const EventSetup& c) {
cscItr1++) {
CSCCorrelatedLCTDigiCollection::Range range1 = pCSCTPGcorrlcts->get((*cscItr1).first);
for (CSCCorrelatedLCTDigiCollection::const_iterator lctItr1 = range1.first; lctItr1 != range1.second; lctItr1++) {
csctpgpattern->Fill(lctItr1->getCLCTPattern());
csctpgpattern->Fill(lctItr1->clctPattern());
if (verbose_) {
std::cout << "CSC TPG CLCT pattern " << lctItr1->getCLCTPattern() << std::endl;
std::cout << "CSC TPG CLCT pattern " << lctItr1->clctPattern() << std::endl;
}

csctpgquality->Fill(lctItr1->getQuality());
csctpgquality->Fill(lctItr1->quality());
if (verbose_) {
std::cout << "CSC LCT quality " << lctItr1->getQuality() << std::endl;
std::cout << "CSC LCT quality " << lctItr1->quality() << std::endl;
}

csctpgwg->Fill(lctItr1->getKeyWG());
csctpgwg->Fill(lctItr1->keyWireGroup());
if (verbose_) {
std::cout << "CSC LCT wire group " << lctItr1->getKeyWG() << std::endl;
std::cout << "CSC LCT wire group " << lctItr1->keyWireGroup() << std::endl;
}

csctpgstrip->Fill(lctItr1->getStrip());
csctpgstrip->Fill(lctItr1->strip());
if (verbose_) {
std::cout << "CSC LCT strip " << lctItr1->getStrip() << std::endl;
std::cout << "CSC LCT strip " << lctItr1->strip() << std::endl;
}

csctpgstriptype->Fill(lctItr1->getStripType());
csctpgstriptype->Fill(lctItr1->stripType());
if (verbose_) {
std::cout << "CSC LCT strip type" << lctItr1->getStripType() << std::endl;
std::cout << "CSC LCT strip type" << lctItr1->stripType() << std::endl;
}

csctpgbend->Fill(lctItr1->getBend());
csctpgbend->Fill(lctItr1->bend());
if (verbose_) {
std::cout << "CSC LCT bend " << lctItr1->getBend() << std::endl;
std::cout << "CSC LCT bend " << lctItr1->bend() << std::endl;
}

csctpgbx->Fill(lctItr1->getBX());
csctpgbx->Fill(lctItr1->bx());
if (verbose_) {
std::cout << "CSC LCT bx " << lctItr1->getBX() << std::endl;
std::cout << "CSC LCT bx " << lctItr1->bx() << std::endl;
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions DQM/L1TMonitor/src/L1TdeCSCTF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* written by J. Gartner
*
* 2011.03.11 expanded by GP Di Giovanni
*
*
* There is quality test allowing to check elements outside the
* diagonal, so I need to add the 1D plot with all elements in the diagonal
* in the first bin and all elements outside the diagonal in the second bin
*
*
* In such way we can run the ContentsXRange quality test...
*/

Expand Down Expand Up @@ -71,10 +71,10 @@ L1TdeCSCTF::L1TdeCSCTF(ParameterSet const& pset) {
{
for(int subsectorItr = 0; subsectorItr < 2; subsectorItr++)
{
srLUTs_[endcapItr-1][sectorItr-1][subsectorItr] = new CSCSectorReceiverLUT(endcapItr, sectorItr, subsectorItr+1, stationItr, srLUTset, TMB07);
srLUTs_[endcapItr-1][sectorItr-1][subsectorItr] = new CSCSectorReceiverLUT(endcapItr, sectorItr, subsectorItr+1, stationItr, srLUTset, TMB07);
}
} else {
srLUTs_[endcapItr-1][sectorItr-1][stationItr] = new CSCSectorReceiverLUT(endcapItr, sectorItr, 0, stationItr, srLUTset, TMB07);
srLUTs_[endcapItr-1][sectorItr-1][stationItr] = new CSCSectorReceiverLUT(endcapItr, sectorItr, 0, stationItr, srLUTset, TMB07);
} //if for station 1 or 234
} // stationItr loop
} // sectorItr loop
Expand Down Expand Up @@ -461,7 +461,7 @@ void L1TdeCSCTF::analyze(Event const& e, EventSetup const& es) {
break;
if ((stu->BX() > 4) && (stu->BX() < 9)) {
dDtStub[0][dDtCounter] = stu->phiPacked();
dDtStub[1][dDtCounter] = stu->getQuality();
dDtStub[1][dDtCounter] = stu->quality();
dDtStub[2][dDtCounter] = stu->endcap();
dDtStub[3][dDtCounter] = stu->sector();
dDtStub[4][dDtCounter] = stu->subsector();
Expand Down Expand Up @@ -489,7 +489,7 @@ void L1TdeCSCTF::analyze(Event const& e, EventSetup const& es) {
break;
if ((eStu->BX() > 4) && (eStu->BX() < 9)) {
eDtStub[0][eDtCounter] = eStu->phiPacked();
eDtStub[1][eDtCounter] = eStu->getQuality();
eDtStub[1][eDtCounter] = eStu->quality();
eDtStub[2][eDtCounter] = eStu->endcap();
eDtStub[3][eDtCounter] = eStu->sector();
eDtStub[4][eDtCounter] = eStu->subsector();
Expand Down
14 changes: 7 additions & 7 deletions DQMOffline/Muon/interface/CSCOfflineMonitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
#include "DataFormats/FEDRawData/interface/FEDNumbering.h"
#include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"

#include "EventFilter/CSCRawToDigi/interface/CSCCLCTData.h"
#include "EventFilter/CSCRawToDigi/interface/CSCComparatorData.h"
#include "EventFilter/CSCRawToDigi/interface/CSCDCCExaminer.h"
#include "EventFilter/CSCRawToDigi/interface/CSCDCCEventData.h"
#include "EventFilter/CSCRawToDigi/interface/CSCDDUEventData.h"
Expand Down Expand Up @@ -231,12 +231,12 @@ class CSCOfflineMonitor : public DQMEDAnalyzer {
MonitorElement *hSensitiveAreaEvt;

// BX monitoring
MonitorElement *hALCTgetBX;
MonitorElement *hALCTgetBXSerial;
// MonitorElement *hALCTgetBXChamberMeans;
// MonitorElement *hALCTgetBX2DMeans;
MonitorElement *hALCTgetBX2Denominator;
MonitorElement *hALCTgetBX2DNumerator;
MonitorElement *hALCTbx;
MonitorElement *hALCTbxSerial;
// MonitorElement *hALCTbxChamberMeans;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These name changes will probably need a PR in
https://github.com/dmwm/deployment/blob/master/dqmgui/style/CSCRenderPlugin.cc#L2684-L2686
to mantain the same style in DQM GUI

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jfernan2 I'll undo the changes in the histogram naming. Thanks for pointing this out.

// MonitorElement *hALCTbx2DMeans;
MonitorElement *hALCTbx2Denominator;
MonitorElement *hALCTbx2DNumerator;

MonitorElement *hALCTMatch;
MonitorElement *hALCTMatchSerial;
Expand Down
44 changes: 22 additions & 22 deletions DQMOffline/Muon/src/CSCOfflineMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -739,18 +739,18 @@ void CSCOfflineMonitor::bookHistograms(DQMStore::IBooker& ibooker,
// bx monitor for trigger synchronization
ibooker.setCurrentFolder("CSC/CSCOfflineMonitor/BXMonitor");

hALCTgetBX = ibooker.book1D("hALCTgetBX", "ALCT position in ALCT-L1A match window [BX]", 7, -0.5, 6.5);
// hALCTgetBXChamberMeans = ibooker.book1D("hALCTgetBXChamberMeans","Chamber Mean ALCT position in ALCT-L1A match window [BX]",60,0,6);
hALCTgetBXSerial =
ibooker.book2D("hALCTgetBXSerial", "ALCT position in ALCT-L1A match window [BX]", 601, -0.5, 600.5, 7, -0.5, 6.5);
hALCTgetBXSerial->setAxisTitle("Chamber Serial Number");
hALCTgetBX2DNumerator = ibooker.book2D(
"hALCTgetBX2DNumerator", "ALCT position in ALCT-L1A match window [BX] (sum)", 36, 0.5, 36.5, 20, 0.5, 20.5);
// hALCTgetBX2DMeans = ibooker.book2D("hALCTgetBX2DMeans","ALCT position in ALCT-L1A match window [BX]",36,0.5,36.5,20,0.5,20.5);
hALCTgetBX2Denominator =
ibooker.book2D("hALCTgetBX2Denominator", "Number of ALCT Digis checked", 36, 0.5, 36.5, 20, 0.5, 20.5);
// hALCTgetBX2DMeans->setAxisTitle("Chamber #");
hALCTgetBX2Denominator->setAxisTitle("Chamber #");
hALCTbx = ibooker.book1D("hALCTbx", "ALCT position in ALCT-L1A match window [BX]", 7, -0.5, 6.5);
// hALCTbxChamberMeans = ibooker.book1D("hALCTbxChamberMeans","Chamber Mean ALCT position in ALCT-L1A match window [BX]",60,0,6);
hALCTbxSerial =
ibooker.book2D("hALCTbxSerial", "ALCT position in ALCT-L1A match window [BX]", 601, -0.5, 600.5, 7, -0.5, 6.5);
hALCTbxSerial->setAxisTitle("Chamber Serial Number");
hALCTbx2DNumerator = ibooker.book2D(
"hALCTbx2DNumerator", "ALCT position in ALCT-L1A match window [BX] (sum)", 36, 0.5, 36.5, 20, 0.5, 20.5);
// hALCTbx2DMeans = ibooker.book2D("hALCTbx2DMeans","ALCT position in ALCT-L1A match window [BX]",36,0.5,36.5,20,0.5,20.5);
hALCTbx2Denominator =
ibooker.book2D("hALCTbx2Denominator", "Number of ALCT Digis checked", 36, 0.5, 36.5, 20, 0.5, 20.5);
// hALCTbx2DMeans->setAxisTitle("Chamber #");
hALCTbx2Denominator->setAxisTitle("Chamber #");
hALCTMatch = ibooker.book1D("hALCTMatch", "ALCT position in ALCT-CLCT match window [BX]", 7, -0.5, 6.5);
// hALCTMatchChamberMeans = ibooker.book1D("hALCTMatchChamberMeans","Chamber Mean ALCT position in ALCT-CLCT match window [BX]",60,0,6);
hALCTMatchSerial = ibooker.book2D(
Expand Down Expand Up @@ -794,8 +794,8 @@ void CSCOfflineMonitor::bookHistograms(DQMStore::IBooker& ibooker,
// applyCSClabels(hWireEff2, SMALL, Y);
applyCSClabels(hWireSTE2, EXTENDED, Y);
applyCSClabels(hSensitiveAreaEvt, EXTENDED, Y);
// applyCSClabels(hALCTgetBX2DMeans, EXTENDED, Y);
applyCSClabels(hALCTgetBX2Denominator, EXTENDED, Y);
// applyCSClabels(hALCTbx2DMeans, EXTENDED, Y);
applyCSClabels(hALCTbx2Denominator, EXTENDED, Y);
// applyCSClabels(hALCTMatch2DMeans, EXTENDED, Y);
applyCSClabels(hALCTMatch2Denominator, EXTENDED, Y);
// applyCSClabels(hCLCTL1A2DMeans, EXTENDED, Y);
Expand Down Expand Up @@ -886,7 +886,7 @@ void CSCOfflineMonitor::doOccupancies(edm::Handle<CSCStripDigiCollection> strips
// Valid digi in the chamber (or in neighbouring chamber)
if ((*digiIt).isValid()) {
//Check whether this CLCT came from ME11a
if (kStation == 1 && kRing == 1 && (*digiIt).getKeyStrip() > 128)
if (kStation == 1 && kRing == 1 && (*digiIt).keyStrip() > 128)
kRing = 4;
clcto[kEndcap - 1][kStation - 1][kRing - 1][kChamber - 1] = true;
}
Expand Down Expand Up @@ -1791,10 +1791,10 @@ void CSCOfflineMonitor::doBXMonitor(edm::Handle<CSCALCTDigiCollection> alcts,
for (CSCALCTDigiCollection::const_iterator digiIt = range.first; digiIt != range.second; ++digiIt) {
// Valid digi in the chamber (or in neighbouring chamber)
if ((*digiIt).isValid()) {
hALCTgetBX->Fill((*digiIt).getBX());
hALCTgetBXSerial->Fill(chamberSerial(idALCT), (*digiIt).getBX());
hALCTgetBX2DNumerator->Fill(idALCT.chamber(), typeIndex(idALCT, 2), (*digiIt).getBX());
hALCTgetBX2Denominator->Fill(idALCT.chamber(), typeIndex(idALCT, 2));
hALCTbx->Fill((*digiIt).bx());
hALCTbxSerial->Fill(chamberSerial(idALCT), (*digiIt).bx());
hALCTbx2DNumerator->Fill(idALCT.chamber(), typeIndex(idALCT, 2), (*digiIt).bx());
hALCTbx2Denominator->Fill(idALCT.chamber(), typeIndex(idALCT, 2));
}
}
} // end ALCT Digi loop
Expand Down Expand Up @@ -1932,7 +1932,7 @@ void CSCOfflineMonitor::doBXMonitor(edm::Handle<CSCALCTDigiCollection> alcts,
bool goodTMB = false;
if (nclct && cscData[iCSC].tmbData()) {
if (cscData[iCSC].tmbHeader()->check()) {
if (cscData[iCSC].clctData()->check())
if (cscData[iCSC].comparatorData()->check())
goodTMB = true;
}
}
Expand All @@ -1943,7 +1943,7 @@ void CSCOfflineMonitor::doBXMonitor(edm::Handle<CSCALCTDigiCollection> alcts,
if (clcts.empty() || !(clcts[0].isValid()))
continue;
// Check if the CLCT was in ME11a (ring 4)
if (layer.station() == 1 && layer.ring() == 1 && clcts[0].getKeyStrip() > 128) {
if (layer.station() == 1 && layer.ring() == 1 && clcts[0].keyStrip() > 128) {
layer = CSCDetId(layer.endcap(), layer.station(), 4, layer.chamber());
}
hALCTMatch->Fill(tmbHead->ALCTMatchTime());
Expand All @@ -1955,7 +1955,7 @@ void CSCOfflineMonitor::doBXMonitor(edm::Handle<CSCALCTDigiCollection> alcts,
hALCTMatch2Denominator->Fill(layer.chamber(), typeIndex(layer, 2));
}

int TMB_CLCTpre_rel_L1A = tmbHead->BXNCount() - clcts[0].getFullBX();
int TMB_CLCTpre_rel_L1A = tmbHead->BXNCount() - clcts[0].fullBX();
if (TMB_CLCTpre_rel_L1A > 3563)
TMB_CLCTpre_rel_L1A = TMB_CLCTpre_rel_L1A - 3564;
if (TMB_CLCTpre_rel_L1A < 0)
Expand Down
16 changes: 8 additions & 8 deletions DataFormats/CSCDigi/interface/CSCALCTDigi.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,52 +40,52 @@ class CSCALCTDigi {
void setValid(const uint16_t valid) { valid_ = valid; }

/// return quality of a pattern
uint16_t getQuality() const { return quality_; }
uint16_t quality() const { return quality_; }

/// set quality
void setQuality(const uint16_t quality) { quality_ = quality; }

/// return Accelerator bit
/// 1-Accelerator pattern, 0-CollisionA or CollisionB pattern
uint16_t getAccelerator() const { return accel_; }
uint16_t accelerator() const { return accel_; }

/// set accelerator bit
void setAccelerator(const uint16_t accelerator) { accel_ = accelerator; }

/// return Collision Pattern B bit
/// 1-CollisionB pattern (accel_ = 0),
/// 0-CollisionA pattern (accel_ = 0)
uint16_t getCollisionB() const { return patternb_; }
uint16_t collisionB() const { return patternb_; }

/// set Collision Pattern B bit
void setCollisionB(const uint16_t collision) { patternb_ = collision; }

/// return key wire group
uint16_t getKeyWG() const { return keywire_; }
uint16_t keyWireGroup() const { return keywire_; }

/// set key wire group
void setKeyWG(const uint16_t keyWG) { keywire_ = keyWG; }

/// return BX - five low bits of BXN counter tagged by the ALCT
uint16_t getBX() const { return bx_; }
uint16_t bx() const { return bx_; }

/// set BX
void setBX(const uint16_t BX) { bx_ = BX; }

/// return track number (1,2)
uint16_t getTrknmb() const { return trknmb_; }
uint16_t trackNumber() const { return trknmb_; }

/// Set track number (1,2) after sorting ALCTs.
void setTrknmb(const uint16_t number) { trknmb_ = number; }

/// return 12-bit full BX.
uint16_t getFullBX() const { return fullbx_; }
uint16_t fullBX() const { return fullbx_; }

/// Set 12-bit full BX.
void setFullBX(const uint16_t fullbx) { fullbx_ = fullbx; }

/// return the high multiplicity bits
uint16_t getHMT() const;
uint16_t hmt() const;

/// set the high multiplicity bits
void setHMT(const uint16_t hmt);
Expand Down
Loading