CMS 3D CMS Logo

L1GctGlobalHfSumAlgos.h File Reference

#include "L1Trigger/GlobalCaloTrigger/interface/L1GctProcessor.h"
#include "L1Trigger/GlobalCaloTrigger/interface/L1GctJetFinderBase.h"
#include <vector>
#include <map>

Go to the source code of this file.

Classes

class  L1GctGlobalHfSumAlgos
 Emulates the GCT summing and packing of Hf Et sums and tower-over-threshold counts. More...

Functions

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


Function Documentation

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

Definition at line 68 of file L1GctGlobalHfSumAlgos.cc.

References L1GctProcessor::bxMin(), lat::endl(), L1GctJetFinderBase::hfTowerSumsType::etSum0, L1GctJetFinderBase::hfTowerSumsType::etSum1, L1GctGlobalHfSumAlgos::hfSumsWord(), L1GctGlobalHfSumAlgos::m_hfInputSumsMinusWheel, L1GctGlobalHfSumAlgos::m_hfInputSumsPlusWheel, L1GctGlobalHfSumAlgos::m_minusWheelJetFpga, L1GctGlobalHfSumAlgos::m_plusWheelJetFpga, L1GctJetFinderBase::hfTowerSumsType::nOverThreshold0, L1GctJetFinderBase::hfTowerSumsType::nOverThreshold1, and L1GctProcessor::numOfBx().

00069 {
00070   os << "===L1GctGlobalHfSumAlgos===" << std::endl;
00071   os << "WheelJetFpga* plus  = " << fpga.m_plusWheelJetFpga << std::endl;
00072   os << "Plus wheel inputs:" << std::endl;
00073   os << "Bit counts ring 1: " << fpga.m_hfInputSumsPlusWheel.nOverThreshold0 
00074      << ", ring 2: " << fpga.m_hfInputSumsPlusWheel.nOverThreshold1 << std::endl;
00075   os << "Et sums ring 1: " << fpga.m_hfInputSumsPlusWheel.etSum0 
00076      << ", ring 2: " << fpga.m_hfInputSumsPlusWheel.etSum1 << std::endl;
00077   os << "WheelJetFpga* minus = " << fpga.m_minusWheelJetFpga << std::endl;
00078   os << "Minus wheel inputs:" << std::endl;
00079   os << "Bit counts ring 1: " << fpga.m_hfInputSumsMinusWheel.nOverThreshold0 
00080      << ", ring 2: " << fpga.m_hfInputSumsMinusWheel.nOverThreshold1 << std::endl;
00081   os << "Et sums ring 1: " << fpga.m_hfInputSumsMinusWheel.etSum0 
00082      << ", ring 2: " << fpga.m_hfInputSumsMinusWheel.etSum1 << std::endl;
00083 
00084   int bxZero = -fpga.bxMin();
00085   if (bxZero>=0 && bxZero<fpga.numOfBx()) {
00086     os << "Output word " << std::hex << fpga.hfSumsWord().at(bxZero) << std::dec << std::endl;
00087   }
00088 
00089   return os;
00090 }


Generated on Tue Jun 9 17:54:36 2009 for CMSSW by  doxygen 1.5.4