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 T &thisBx, const int bxNum)
 
void store (const std::vector< 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) {}
std::vector< T > contents

◆ Pipeline() [2/2]

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

Definition at line 89 of file L1GctProcessor.h.

size
Write out results.
std::vector< T > contents

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 T thisBx,
const int  bxNum 
)
inline

Definition at line 98 of file L1GctProcessor.h.

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

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

98 { contents.at(bxNum) = thisBx; }
std::vector< T > contents

◆ store() [2/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.

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

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

Member Data Documentation

◆ contents

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

◆ entriesPerBx

template<class T>
unsigned L1GctProcessor::Pipeline< T >::entriesPerBx