CMS 3D CMS Logo

L1GctProcessor::Pipeline< T > Struct Template Reference

#include <L1Trigger/GlobalCaloTrigger/interface/L1GctProcessor.h>

List of all members.

Public Member Functions

 Pipeline (const unsigned size)
 Pipeline ()
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< T > contents
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.

00092 : 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]

Definition at line 99 of file L1GctProcessor.h.

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

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

00099                                      {
00100         contents.clear();
00101         contents.resize(nBx*entriesPerBx);
00102       }

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.

00095                                        {
00096         entriesPerBx = size;
00097       }

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.

00108                                                               {
00109         unsigned pos = entriesPerBx*bxNum;
00110         for (unsigned i=0; i<entriesPerBx; i++) {
00111           contents.at(pos++) = thisBx.at(i);
00112         }
00113       }

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().

00104                                                    {
00105         contents.at(bxNum) = thisBx;
00106       }


Member Data Documentation

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

Definition at line 89 of file L1GctProcessor.h.

Referenced by L1GctJetFinalStage::getCentralJets(), L1GctJetFinalStage::getForwardJets(), L1GctJetFinderBase::getRawJets(), L1GctJetFinalStage::getTauJets(), operator<<(), L1GctProcessor::Pipeline< T >::reset(), and L1GctProcessor::Pipeline< T >::store().

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

Definition at line 90 of file L1GctProcessor.h.

Referenced by L1GctProcessor::Pipeline< T >::reset(), L1GctProcessor::Pipeline< T >::resize(), and L1GctProcessor::Pipeline< T >::store().


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:26:39 2009 for CMSSW by  doxygen 1.5.4