CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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
template<class T>
L1GctProcessor::Pipeline< T >::Pipeline ( const unsigned  size)
inline

Definition at line 89 of file L1GctProcessor.h.

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

Member Function Documentation

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

Definition at line 91 of file L1GctProcessor.h.

References L1GctProcessor::Pipeline< T >::entriesPerBx, and findQualityFiles::size.

91 { entriesPerBx = size; }
tuple size
Write out results.
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
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

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