CMS 3D CMS Logo

Public Member Functions | Public Attributes

L1GctProcessor::Pipeline< T > Struct Template Reference

#include <L1GctProcessor.h>

List of all members.

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


Constructor & Destructor Documentation

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

Definition at line 92 of file L1GctProcessor.h.

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

Definition at line 93 of file L1GctProcessor.h.


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]
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.

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

                                                   {
        contents.at(bxNum) = thisBx;
      }
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, i, and pos.

                                                              {
        unsigned pos = entriesPerBx*bxNum;
        for (unsigned i=0; i<entriesPerBx; i++) {
          contents.at(pos++) = thisBx.at(i);
        }
      }

Member Data Documentation

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