CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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 makePileupJSON::bx, 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
tuple result
Definition: mps_fire.py:311
CSCDetId chamberID(const CSCDetId &cscDetId)
bool CSCDigiToRawAccept::accept ( const CSCDetId cscId,
const CSCCLCTPreTriggerCollection lcts,
int  bxMin,
int  bxMax,
int  nominalBX 
)
bool CSCDigiToRawAccept::accept ( const CSCDetId cscId,
const CSCCLCTPreTriggerDigiCollection lcts,
int  bxMin,
int  bxMax,
int  nominalBX,
std::vector< bool > &  preTriggerInCFEB 
)
CSCDetId CSCDigiToRawAccept::chamberID ( const CSCDetId cscDetId)