CMS 3D CMS Logo

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

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

Member Function Documentation

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

Definition at line 99 of file L1GctProcessor.h.

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

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

Definition at line 95 of file L1GctProcessor.h.

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

Referenced by Vispa.Gui.TextDialog.TextDialog::__init__().

95  {
97  }
tuple size
Write out results.
template<class T >
void L1GctProcessor::Pipeline< T >::store ( const T thisBx,
const int  bxNum 
)
inline

Definition at line 104 of file L1GctProcessor.h.

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

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 >::contents, L1GctProcessor::Pipeline< T >::entriesPerBx, and i.

108  {
109  unsigned pos = entriesPerBx*bxNum;
110  for (unsigned i=0; i<entriesPerBx; i++) {
111  contents.at(pos++) = thisBx.at(i);
112  }
113  }
int i
Definition: DBlmapReader.cc:9
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