CMS 3D CMS Logo

Functions
CSCDigiToRawAccept Namespace Reference

Functions

template<typename LCTCollection >
bool accept (const CSCDetId &cscId, const LCTCollection &lcts, int bxMin, int bxMax, int nominalBX)
 
bool accept (const CSCDetId &cscId, const CSCCLCTPreTriggerCollection &lcts, int bxMin, int bxMax, int nominalBX)
 
bool accept (const CSCDetId &cscId, const CSCCLCTPreTriggerDigiCollection &lcts, int bxMin, int bxMax, int nominalBX, std::vector< bool > &preTriggerInCFEB)
 
CSCDetId chamberID (const CSCDetId &cscDetId)
 

Function Documentation

◆ accept() [1/3]

template<typename LCTCollection >
bool CSCDigiToRawAccept::accept ( const CSCDetId cscId,
const LCTCollection &  lcts,
int  bxMin,
int  bxMax,
int  nominalBX 
)

Definition at line 30 of file CSCDigiToRawAccept.h.

References simKBmtfDigis_cfi::bx, l1tstage1emulator_dqm_sourceclient-live_cfg::bxMax, l1tstage1emulator_dqm_sourceclient-live_cfg::bxMin, chamberID(), and mps_fire::result.

Referenced by CSCDigiToRaw::add().

30  {
31  if (bxMin == -999)
32  return true;
33  CSCDetId chamberId = chamberID(cscId);
34  typename LCTCollection::Range lctRange = lcts.get(chamberId);
35  bool result = false;
36  for (typename LCTCollection::const_iterator lctItr = lctRange.first; lctItr != lctRange.second; ++lctItr) {
37  int bx = lctItr->getBX() - nominalBX;
38  if (bx >= bxMin && bx <= bxMax) {
39  result = true;
40  break;
41  }
42  }
43  return result;
44  }
PixelRecoRange< float > Range
CSCDetId chamberID(const CSCDetId &cscDetId)

◆ accept() [2/3]

bool CSCDigiToRawAccept::accept ( const CSCDetId cscId,
const CSCCLCTPreTriggerCollection lcts,
int  bxMin,
int  bxMax,
int  nominalBX 
)

◆ accept() [3/3]

bool CSCDigiToRawAccept::accept ( const CSCDetId cscId,
const CSCCLCTPreTriggerDigiCollection lcts,
int  bxMin,
int  bxMax,
int  nominalBX,
std::vector< bool > &  preTriggerInCFEB 
)

◆ chamberID()

CSCDetId CSCDigiToRawAccept::chamberID ( const CSCDetId cscDetId)