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 87 of file L1GctProcessor.h.

Constructor & Destructor Documentation

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

Definition at line 92 of file L1GctProcessor.h.

92 : contents(1), entriesPerBx(1) {}
std::vector< T > contents
template<class T>
L1GctProcessor::Pipeline< T >::Pipeline ( const unsigned  size)
inline

Definition at line 93 of file L1GctProcessor.h.

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

Member Function Documentation

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

Definition at line 99 of file L1GctProcessor.h.

Referenced by L1GctJetFinalStage::resetPipelines(), and L1GctJetFinderBase::resetPipelines().

99  {
100  contents.clear();
101  contents.resize(nBx*entriesPerBx);
102  }
std::vector< T > contents
template<class T>
void L1GctProcessor::Pipeline< T >::resize ( const unsigned  size)
inline
template<class T>
void L1GctProcessor::Pipeline< T >::store ( const T thisBx,
const int  bxNum 
)
inline

Definition at line 104 of file L1GctProcessor.h.

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

104  {
105  contents.at(bxNum) = thisBx;
106  }
std::vector< T > contents
template<class T>
void L1GctProcessor::Pipeline< T >::store ( const std::vector< T > &  thisBx,
const int  bxNum 
)
inline

Definition at line 108 of file L1GctProcessor.h.

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

108  {
109  unsigned pos = entriesPerBx*bxNum;
110  for (unsigned i=0; i<entriesPerBx; i++) {
111  contents.at(pos++) = thisBx.at(i);
112  }
113  }
std::vector< T > contents

Member Data Documentation

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

Definition at line 90 of file L1GctProcessor.h.

Referenced by L1GctProcessor::Pipeline< T >::store().