CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
L1GctProcessor::Pipeline< T > Struct Template Reference

#include <L1GctProcessor.h>

Public Member Functions

 Pipeline ()
 
 Pipeline (const unsigned size)
 
void reset (const unsigned nBx)
 
void resize (const unsigned size)
 
void store (const std::vector< T > &thisBx, const int bxNum)
 
void store (const T &thisBx, const int bxNum)
 

Public Attributes

std::vector< Tcontents
 
unsigned entriesPerBx
 

Detailed Description

template<class T>
struct L1GctProcessor::Pipeline< T >

Definition at line 84 of file L1GctProcessor.h.

Constructor & Destructor Documentation

◆ Pipeline() [1/2]

template<class T>
L1GctProcessor::Pipeline< T >::Pipeline ( )
inline

Definition at line 88 of file L1GctProcessor.h.

88 : contents(1), entriesPerBx(1) {}

◆ Pipeline() [2/2]

template<class T>
L1GctProcessor::Pipeline< T >::Pipeline ( const unsigned  size)
inline

Definition at line 89 of file L1GctProcessor.h.

Member Function Documentation

◆ reset()

template<class T>
void L1GctProcessor::Pipeline< T >::reset ( const unsigned  nBx)
inline

◆ resize()

template<class T>
void L1GctProcessor::Pipeline< T >::resize ( const unsigned  size)
inline

◆ store() [1/2]

template<class T>
void L1GctProcessor::Pipeline< T >::store ( const std::vector< T > &  thisBx,
const int  bxNum 
)
inline

Definition at line 100 of file L1GctProcessor.h.

100  {
101  unsigned pos = entriesPerBx * bxNum;
102  for (unsigned i = 0; i < entriesPerBx; i++) {
103  contents.at(pos++) = thisBx.at(i);
104  }
105  }

References L1GctProcessor::Pipeline< T >::contents, L1GctProcessor::Pipeline< T >::entriesPerBx, and mps_fire::i.

◆ store() [2/2]

template<class T>
void L1GctProcessor::Pipeline< T >::store ( const T thisBx,
const int  bxNum 
)
inline

Definition at line 98 of file L1GctProcessor.h.

98 { contents.at(bxNum) = thisBx; }

References L1GctProcessor::Pipeline< T >::contents.

Referenced by L1GctJetFinalStage::process(), and L1GctJetFinderBase::sortJets().

Member Data Documentation

◆ contents

template<class T>
std::vector<T> L1GctProcessor::Pipeline< T >::contents

◆ entriesPerBx

template<class T>
unsigned L1GctProcessor::Pipeline< T >::entriesPerBx
mps_fire.i
i
Definition: mps_fire.py:355
pos
Definition: PixelAliasList.h:18
L1GctProcessor::Pipeline::entriesPerBx
unsigned entriesPerBx
Definition: L1GctProcessor.h:86
L1GctProcessor::Pipeline::contents
std::vector< T > contents
Definition: L1GctProcessor.h:85
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443