Functions | |
template<typename LCTCollection > | |
bool | accept (const CSCDetId &cscId, const LCTCollection &lcts, int bxMin, int bxMax) |
template<> | |
bool | accept (const CSCDetId &cscId, const CSCCLCTPreTriggerCollection &lcts, int bxMin, int bxMax) |
CSCDetId | chamberID (const CSCDetId &cscDetId) |
takes layer ID, converts to chamber ID, switching ME1A to ME11 |
bool cscd2r::accept | ( | const CSCDetId & | cscId, |
const LCTCollection & | lcts, | ||
int | bxMin, | ||
int | bxMax | ||
) |
Definition at line 42 of file CSCDigiToRaw.cc.
References chamberID(), and query::result.
Referenced by CSCDigiToRaw::add().
{ if(bxMin == -999) return true; int nominalBX = 6; CSCDetId chamberId = chamberID(cscId); typename LCTCollection::Range lctRange = lcts.get(chamberId); bool result = false; for(typename LCTCollection::const_iterator lctItr = lctRange.first; lctItr != lctRange.second; ++lctItr) { int bx = lctItr->getBX() - nominalBX; if(bx >= bxMin && bx <= bxMax) { result = true; break; } } return result; }
bool cscd2r::accept | ( | const CSCDetId & | cscId, |
const CSCCLCTPreTriggerCollection & | lcts, | ||
int | bxMin, | ||
int | bxMax | ||
) |
Definition at line 65 of file CSCDigiToRaw.cc.
References chamberID(), and query::result.
{ if(bxMin == -999) return true; int nominalBX = 6; CSCDetId chamberId = chamberID(cscId); CSCCLCTPreTriggerCollection::Range lctRange = lcts.get(chamberId); bool result = false; for(CSCCLCTPreTriggerCollection::const_iterator lctItr = lctRange.first; lctItr != lctRange.second; ++lctItr) { int bx = *lctItr - nominalBX; if(bx >= bxMin && bx <= bxMax) { result = true; break; } } return result; }
takes layer ID, converts to chamber ID, switching ME1A to ME11
Definition at line 32 of file CSCDigiToRaw.cc.
References CSCDetId::chamber(), CSCDetId::chamberId(), CSCDetId, CSCDetId::endcap(), CSCDetId::ring(), and CSCDetId::station().
Referenced by accept(), DTDigiToRaw::createFedBuffers(), CSCDigiToRaw::findEventData(), cscdqm::EventProcessor::processCSC(), and cscdqm::EventProcessor::processExaminer().