CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | Friends
L1GctWheelEnergyFpga Class Reference

Emulates the energy summing on a GCT Wheel card. More...

#include <L1GctWheelEnergyFpga.h>

Inheritance diagram for L1GctWheelEnergyFpga:
L1GctProcessor

Public Types

typedef L1GctTwosComplement
< L1GctInternEtSum::kMissExOrEyNBits
etComponentType
 
typedef L1GctUnsignedInt
< L1GctInternEtSum::kTotEtOrHtNBits
etHadType
 
typedef L1GctUnsignedInt
< L1GctInternEtSum::kTotEtOrHtNBits
etTotalType
 typedefs for energy values in fixed numbers of bits More...
 
enum  maxValues { etTotalMaxValue = L1GctInternEtSum::kTotEtOrHtMaxValue, htTotalMaxValue = L1GctInternEtSum::kTotEtOrHtMaxValue }
 

Public Member Functions

virtual void fetchInput ()
 get input data from sources; this is the standard way to provide input More...
 
etTotalType getInputEt (unsigned leafnum) const
 get input Et value from a Leaf card (0-2) More...
 
etComponentType getInputEx (unsigned leafnum) const
 get input Ex value from a Leaf card (0-2) More...
 
etComponentType getInputEy (unsigned leafnum) const
 get input Ey value from a Leaf card (0-2) More...
 
L1GctJetLeafCardgetinputLeafCard (unsigned leafnum) const
 provide access to input Leaf card pointer (0-2) More...
 
std::vector< L1GctInternEtSumgetInternalEtSums () const
 get the Et sums in internal component format More...
 
etTotalType getOutputEt () const
 get output Et value More...
 
etComponentType getOutputEx () const
 get output Ex value More...
 
etComponentType getOutputEy () const
 get output Ey value More...
 
etHadType getOutputHt () const
 get the output Ht More...
 
etHadType inputHt (unsigned leafnum) const
 get input Ht value from a Leaf card (0-2) More...
 
 L1GctWheelEnergyFpga (int id, const std::vector< L1GctJetLeafCard * > &leafCards)
 Constructor, needs the Leaf cards to be set up first. id should be 0 or 1. More...
 
virtual void process ()
 process the data, fill output buffers More...
 
void setInputEnergy (unsigned i, int ex, int ey, unsigned et, unsigned ht)
 set input data; not used in normal operation More...
 
bool setupOk () const
 check the setup More...
 
 ~L1GctWheelEnergyFpga ()
 Destructor. More...
 
- Public Member Functions inherited from L1GctProcessor
 L1GctProcessor ()
 
void reset ()
 complete reset of processor More...
 
void setBxRange (const int firstBx, const int numberOfBx)
 define the bunch crossing range to process More...
 
void setNextBx (const int bxnum)
 clear input data buffers and process a new bunch crossing More...
 
void setTerse ()
 
bool setupOk () const
 Method to check the setup for this processor. Returns true by default. More...
 
void setVerbose ()
 control output messages More...
 
virtual ~L1GctProcessor ()
 

Static Public Attributes

static const unsigned int MAX_LEAF_CARDS = L1GctWheelJetFpga::MAX_LEAF_CARDS
 Max number of leaf card pointers. More...
 

Protected Member Functions

virtual void resetPipelines ()
 
virtual void resetProcessor ()
 Separate reset methods for the processor itself and any data stored in pipelines. More...
 
virtual void setupObjects ()
 Initialise inputs with null objects for the correct bunch crossing if required. More...
 
- Protected Member Functions inherited from L1GctProcessor
int bxAbs () const
 
int bxMax () const
 
int bxMin () const
 Support for multiple beam crossing operation. More...
 
int bxRel () const
 
int numOfBx () const
 

Private Attributes

int m_id
 algo ID More...
 
std::vector< etTotalTypem_inputEt
 
std::vector< etComponentTypem_inputEx
 the input components from each input card More...
 
std::vector< etComponentTypem_inputEy
 
std::vector< etHadTypem_inputHt
 
std::vector< L1GctJetLeafCard * > m_inputLeafCards
 the jet leaf card More...
 
etTotalType m_outputEt
 
Pipeline< etTotalTypem_outputEtPipe
 
etComponentType m_outputEx
 output data More...
 
Pipeline< etComponentTypem_outputExPipe
 record the output data history More...
 
etComponentType m_outputEy
 
Pipeline< etComponentTypem_outputEyPipe
 
etHadType m_outputHt
 
Pipeline< etHadTypem_outputHtPipe
 
bool m_setupOk
 check the setup More...
 

Friends

std::ostream & operator<< (std::ostream &os, const L1GctWheelEnergyFpga &fpga)
 Overload << operator. More...
 

Additional Inherited Members

- Protected Attributes inherited from L1GctProcessor
bool m_verbose
 Flag to control output messages. More...
 

Detailed Description

Emulates the energy summing on a GCT Wheel card.

This class carries out the summing of total Et, and missing Et components Ex and Ey, for a single Wheel. The inputs come from the three Leaf cards and the outputs are sent to the L1GctGlobalEnergyAlgos class.

Author
Jim Brooke & Greg Heath
Date
20/2/2006

Definition at line 30 of file L1GctWheelEnergyFpga.h.

Member Typedef Documentation

Definition at line 36 of file L1GctWheelEnergyFpga.h.

Definition at line 35 of file L1GctWheelEnergyFpga.h.

typedefs for energy values in fixed numbers of bits

Definition at line 34 of file L1GctWheelEnergyFpga.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

L1GctWheelEnergyFpga::L1GctWheelEnergyFpga ( int  id,
const std::vector< L1GctJetLeafCard * > &  leafCards 
)

Constructor, needs the Leaf cards to be set up first. id should be 0 or 1.

Definition at line 15 of file L1GctWheelEnergyFpga.cc.

L1GctWheelEnergyFpga::~L1GctWheelEnergyFpga ( )

Destructor.

Definition at line 66 of file L1GctWheelEnergyFpga.cc.

Member Function Documentation

void L1GctWheelEnergyFpga::fetchInput ( )
virtual

get input data from sources; this is the standard way to provide input

Implements L1GctProcessor.

Definition at line 129 of file L1GctWheelEnergyFpga.cc.

etTotalType L1GctWheelEnergyFpga::getInputEt ( unsigned  leafnum) const
inline

get input Et value from a Leaf card (0-2)

Definition at line 71 of file L1GctWheelEnergyFpga.h.

References m_inputEt.

71 { return m_inputEt.at(leafnum); }
std::vector< etTotalType > m_inputEt
etComponentType L1GctWheelEnergyFpga::getInputEx ( unsigned  leafnum) const
inline

get input Ex value from a Leaf card (0-2)

Definition at line 67 of file L1GctWheelEnergyFpga.h.

References m_inputEx.

67 { return m_inputEx.at(leafnum); }
std::vector< etComponentType > m_inputEx
the input components from each input card
etComponentType L1GctWheelEnergyFpga::getInputEy ( unsigned  leafnum) const
inline

get input Ey value from a Leaf card (0-2)

Definition at line 69 of file L1GctWheelEnergyFpga.h.

References m_inputEy.

69 { return m_inputEy.at(leafnum); }
std::vector< etComponentType > m_inputEy
L1GctJetLeafCard* L1GctWheelEnergyFpga::getinputLeafCard ( unsigned  leafnum) const
inline

provide access to input Leaf card pointer (0-2)

Definition at line 64 of file L1GctWheelEnergyFpga.h.

References m_inputLeafCards.

64 { return m_inputLeafCards.at(leafnum); }
std::vector< L1GctJetLeafCard * > m_inputLeafCards
the jet leaf card
std::vector< L1GctInternEtSum > L1GctWheelEnergyFpga::getInternalEtSums ( ) const

get the Et sums in internal component format

Definition at line 175 of file L1GctWheelEnergyFpga.cc.

etTotalType L1GctWheelEnergyFpga::getOutputEt ( ) const
inline

get output Et value

Definition at line 80 of file L1GctWheelEnergyFpga.h.

References m_outputEt.

80 { return m_outputEt; }
etComponentType L1GctWheelEnergyFpga::getOutputEx ( ) const
inline

get output Ex value

Definition at line 76 of file L1GctWheelEnergyFpga.h.

References m_outputEx.

76 { return m_outputEx; }
etComponentType m_outputEx
output data
etComponentType L1GctWheelEnergyFpga::getOutputEy ( ) const
inline

get output Ey value

Definition at line 78 of file L1GctWheelEnergyFpga.h.

References m_outputEy.

78 { return m_outputEy; }
etHadType L1GctWheelEnergyFpga::getOutputHt ( ) const
inline

get the output Ht

Definition at line 82 of file L1GctWheelEnergyFpga.h.

References m_outputHt.

82 { return m_outputHt; }
etHadType L1GctWheelEnergyFpga::inputHt ( unsigned  leafnum) const
inline

get input Ht value from a Leaf card (0-2)

Definition at line 73 of file L1GctWheelEnergyFpga.h.

References m_inputHt.

73 { return m_inputHt.at(leafnum); }
std::vector< etHadType > m_inputHt
void L1GctWheelEnergyFpga::process ( )
virtual

process the data, fill output buffers

Implements L1GctProcessor.

Definition at line 142 of file L1GctWheelEnergyFpga.cc.

void L1GctWheelEnergyFpga::resetPipelines ( )
protectedvirtual

Implements L1GctProcessor.

Definition at line 121 of file L1GctWheelEnergyFpga.cc.

void L1GctWheelEnergyFpga::resetProcessor ( )
protectedvirtual

Separate reset methods for the processor itself and any data stored in pipelines.

Implements L1GctProcessor.

Definition at line 107 of file L1GctWheelEnergyFpga.cc.

void L1GctWheelEnergyFpga::setInputEnergy ( unsigned  i,
int  ex,
int  ey,
unsigned  et,
unsigned  ht 
)

set input data; not used in normal operation

set input data

Definition at line 162 of file L1GctWheelEnergyFpga.cc.

virtual void L1GctWheelEnergyFpga::setupObjects ( )
inlineprotectedvirtual

Initialise inputs with null objects for the correct bunch crossing if required.

Implements L1GctProcessor.

Definition at line 97 of file L1GctWheelEnergyFpga.h.

97 {}
bool L1GctWheelEnergyFpga::setupOk ( ) const
inline

check the setup

Definition at line 88 of file L1GctWheelEnergyFpga.h.

References m_setupOk.

88 { return m_setupOk; }
bool m_setupOk
check the setup

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const L1GctWheelEnergyFpga fpga 
)
friend

Overload << operator.

Member Data Documentation

int L1GctWheelEnergyFpga::m_id
private

algo ID

Definition at line 103 of file L1GctWheelEnergyFpga.h.

std::vector< etTotalType > L1GctWheelEnergyFpga::m_inputEt
private

Definition at line 111 of file L1GctWheelEnergyFpga.h.

Referenced by getInputEt().

std::vector< etComponentType > L1GctWheelEnergyFpga::m_inputEx
private

the input components from each input card

Definition at line 109 of file L1GctWheelEnergyFpga.h.

Referenced by getInputEx().

std::vector< etComponentType > L1GctWheelEnergyFpga::m_inputEy
private

Definition at line 110 of file L1GctWheelEnergyFpga.h.

Referenced by getInputEy().

std::vector< etHadType > L1GctWheelEnergyFpga::m_inputHt
private

Definition at line 112 of file L1GctWheelEnergyFpga.h.

Referenced by inputHt().

std::vector<L1GctJetLeafCard*> L1GctWheelEnergyFpga::m_inputLeafCards
private

the jet leaf card

Definition at line 106 of file L1GctWheelEnergyFpga.h.

Referenced by getinputLeafCard().

etTotalType L1GctWheelEnergyFpga::m_outputEt
private

Definition at line 117 of file L1GctWheelEnergyFpga.h.

Referenced by getOutputEt().

Pipeline< etTotalType > L1GctWheelEnergyFpga::m_outputEtPipe
private

Definition at line 126 of file L1GctWheelEnergyFpga.h.

etComponentType L1GctWheelEnergyFpga::m_outputEx
private

output data

Definition at line 115 of file L1GctWheelEnergyFpga.h.

Referenced by getOutputEx().

Pipeline< etComponentType > L1GctWheelEnergyFpga::m_outputExPipe
private

record the output data history

Definition at line 124 of file L1GctWheelEnergyFpga.h.

etComponentType L1GctWheelEnergyFpga::m_outputEy
private

Definition at line 116 of file L1GctWheelEnergyFpga.h.

Referenced by getOutputEy().

Pipeline< etComponentType > L1GctWheelEnergyFpga::m_outputEyPipe
private

Definition at line 125 of file L1GctWheelEnergyFpga.h.

etHadType L1GctWheelEnergyFpga::m_outputHt
private

Definition at line 118 of file L1GctWheelEnergyFpga.h.

Referenced by getOutputHt().

Pipeline< etHadType > L1GctWheelEnergyFpga::m_outputHtPipe
private

Definition at line 127 of file L1GctWheelEnergyFpga.h.

bool L1GctWheelEnergyFpga::m_setupOk
private

check the setup

Definition at line 121 of file L1GctWheelEnergyFpga.h.

Referenced by setupOk().

const unsigned int L1GctWheelEnergyFpga::MAX_LEAF_CARDS = L1GctWheelJetFpga::MAX_LEAF_CARDS
static

Max number of leaf card pointers.

Definition at line 44 of file L1GctWheelEnergyFpga.h.