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 match_trig_window_size)
 
CSCCorrelatedLCTDigioperator() (int bx, int match_bx, int lct)
 

Public Attributes

CSCCorrelatedLCTDigi data [CSCMotherboard::MAX_LCT_BINS][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 32 of file CSCUpgradeMotherboard.h.

Constructor & Destructor Documentation

CSCUpgradeMotherboard::LCTContainer::LCTContainer ( unsigned int  match_trig_window_size)
inline

Member Function Documentation

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

Definition at line 12 of file CSCUpgradeMotherboard.cc.

References begin, end, getTimeMatched(), and CSCMotherboard::MAX_LCT_BINS.

Referenced by operator()().

13 {
14  for (int bx = 0; bx < MAX_LCT_BINS; bx++){
15  std::vector<CSCCorrelatedLCTDigi> temp_lcts;
17  lcts.insert(std::end(lcts), std::begin(temp_lcts), std::end(temp_lcts));
18  }
19 }
#define end
Definition: vmac.h:37
void getTimeMatched(const int bx, std::vector< CSCCorrelatedLCTDigi > &) const
#define begin
Definition: vmac.h:30
void CSCUpgradeMotherboard::LCTContainer::getTimeMatched ( const int  bx,
std::vector< CSCCorrelatedLCTDigi > &  lcts 
) const

Definition at line 4 of file CSCUpgradeMotherboard.cc.

References data, mps_fire::i, and match_trig_window_size.

Referenced by getMatched(), and operator()().

5 {
6  for (unsigned int mbx = 0; mbx < match_trig_window_size; mbx++)
7  for (int i=0;i<2;i++)
8  if (data[bx][mbx][i].isValid())
9  lcts.push_back(data[bx][mbx][i]);
10 }
CSCCorrelatedLCTDigi data[CSCMotherboard::MAX_LCT_BINS][15][2]
CSCCorrelatedLCTDigi& CSCUpgradeMotherboard::LCTContainer::operator() ( int  bx,
int  match_bx,
int  lct 
)
inline

Definition at line 35 of file CSCUpgradeMotherboard.h.

References data, getMatched(), and getTimeMatched().

35 { return data[bx][match_bx][lct]; }
CSCCorrelatedLCTDigi data[CSCMotherboard::MAX_LCT_BINS][15][2]

Member Data Documentation

CSCCorrelatedLCTDigi CSCUpgradeMotherboard::LCTContainer::data[CSCMotherboard::MAX_LCT_BINS][15][2]
const unsigned int CSCUpgradeMotherboard::LCTContainer::match_trig_window_size

Definition at line 39 of file CSCUpgradeMotherboard.h.

Referenced by getTimeMatched().