CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
CSCUpgradeMotherboard::LCTContainer Class Reference

#include <CSCUpgradeMotherboard.h>

Public Member Functions

void getMatched (std::vector< CSCCorrelatedLCTDigi > &) const
 
void getTimeMatched (const int bx, std::vector< CSCCorrelatedLCTDigi > &) const
 
 LCTContainer (unsigned int trig_window_size)
 
CSCCorrelatedLCTDigioperator() (int bx, int match_bx, int lct)
 

Public Attributes

CSCCorrelatedLCTDigi data [CSCConstants::MAX_LCT_TBINS][15][2]
 
const unsigned int match_trig_window_size
 

Detailed Description

for the case when more than 2 LCTs/BX are allowed; maximum match window = 15

Definition at line 44 of file CSCUpgradeMotherboard.h.

Constructor & Destructor Documentation

CSCUpgradeMotherboard::LCTContainer::LCTContainer ( unsigned int  trig_window_size)

Definition at line 4 of file CSCUpgradeMotherboard.cc.

5  : match_trig_window_size(trig_window_size)
6 {
7 }

Member Function Documentation

void CSCUpgradeMotherboard::LCTContainer::getMatched ( std::vector< CSCCorrelatedLCTDigi > &  lcts) const

Definition at line 26 of file CSCUpgradeMotherboard.cc.

References begin, end, getTimeMatched(), and CSCConstants::MAX_LCT_TBINS.

Referenced by CSCMotherboardME3141::readoutLCTs(), CSCGEMMotherboardME21::readoutLCTs(), and CSCGEMMotherboardME11::readoutLCTs().

27 {
28  for (int bx = 0; bx < CSCConstants::MAX_LCT_TBINS; bx++){
29  std::vector<CSCCorrelatedLCTDigi> temp_lcts;
31  lcts.insert(std::end(lcts), std::begin(temp_lcts), std::end(temp_lcts));
32  }
33 }
#define end
Definition: vmac.h:39
void getTimeMatched(const int bx, std::vector< CSCCorrelatedLCTDigi > &) const
#define begin
Definition: vmac.h:32
void CSCUpgradeMotherboard::LCTContainer::getTimeMatched ( const int  bx,
std::vector< CSCCorrelatedLCTDigi > &  lcts 
) const

Definition at line 16 of file CSCUpgradeMotherboard.cc.

References data, mps_fire::i, and match_trig_window_size.

Referenced by getMatched().

18 {
19  for (unsigned int mbx = 0; mbx < match_trig_window_size; mbx++)
20  for (int i=0;i<2;i++)
21  if (data[bx][mbx][i].isValid())
22  lcts.push_back(data[bx][mbx][i]);
23 }
CSCCorrelatedLCTDigi data[CSCConstants::MAX_LCT_TBINS][15][2]
CSCCorrelatedLCTDigi & CSCUpgradeMotherboard::LCTContainer::operator() ( int  bx,
int  match_bx,
int  lct 
)

Definition at line 10 of file CSCUpgradeMotherboard.cc.

References data.

11 {
12  return data[bx][match_bx][lct];
13 }
CSCCorrelatedLCTDigi data[CSCConstants::MAX_LCT_TBINS][15][2]

Member Data Documentation

CSCCorrelatedLCTDigi CSCUpgradeMotherboard::LCTContainer::data[CSCConstants::MAX_LCT_TBINS][15][2]
const unsigned int CSCUpgradeMotherboard::LCTContainer::match_trig_window_size

Definition at line 63 of file CSCUpgradeMotherboard.h.

Referenced by getTimeMatched().