CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
L1GctGlobalEnergyAlgos.h File Reference
#include "DataFormats/L1GlobalCaloTrigger/interface/L1GctEtTotal.h"
#include "DataFormats/L1GlobalCaloTrigger/interface/L1GctEtHad.h"
#include "DataFormats/L1GlobalCaloTrigger/interface/L1GctEtMiss.h"
#include "L1Trigger/GlobalCaloTrigger/interface/L1GctProcessor.h"
#include "L1Trigger/GlobalCaloTrigger/interface/L1GctMet.h"
#include <vector>

Go to the source code of this file.

Classes

class  L1GctGlobalEnergyAlgos
 Emulates the GCT global energy algorithms. More...
 

Functions

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

Function Documentation

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

Definition at line 121 of file L1GctGlobalEnergyAlgos.cc.

References L1GctProcessor::bxMin(), L1GctGlobalEnergyAlgos::m_etValPlusWheel, L1GctGlobalEnergyAlgos::m_etVlMinusWheel, L1GctGlobalEnergyAlgos::m_exValPlusWheel, L1GctGlobalEnergyAlgos::m_exVlMinusWheel, L1GctGlobalEnergyAlgos::m_eyValPlusWheel, L1GctGlobalEnergyAlgos::m_eyVlMinusWheel, L1GctGlobalEnergyAlgos::m_hfSumProcessor, L1GctGlobalEnergyAlgos::m_htValPlusWheel, L1GctGlobalEnergyAlgos::m_htVlMinusWheel, L1GctGlobalEnergyAlgos::m_minusWheelFpga, L1GctGlobalEnergyAlgos::m_minusWheelJetFpga, L1GctGlobalEnergyAlgos::m_outputEtHad, L1GctGlobalEnergyAlgos::m_outputEtMiss, L1GctGlobalEnergyAlgos::m_outputEtMissPhi, L1GctGlobalEnergyAlgos::m_outputEtSum, L1GctGlobalEnergyAlgos::m_plusWheelFpga, L1GctGlobalEnergyAlgos::m_plusWheelJetFpga, and L1GctProcessor::numOfBx().

122 {
123  os << "===L1GctGlobalEnergyAlgos===" << endl;
124  os << "WheelEnergyFpga* minus = " << fpga.m_minusWheelFpga << endl;
125  os << "WheelEnergyFpga* plus = " << fpga.m_plusWheelFpga << endl;
126  os << "WheelJetFpga* minus = " << fpga.m_minusWheelJetFpga << endl;
127  os << "WheelJetFpga* plus = " << fpga.m_plusWheelJetFpga << endl;
128  os << "Inputs from Plus wheel:" << endl;
129  os << " Ex " << fpga.m_exValPlusWheel << "\n Ey " << fpga.m_eyValPlusWheel << endl;
130  os << " Et " << fpga.m_etValPlusWheel << "\n Ht " << fpga.m_htValPlusWheel << endl;
131  os << "Inputs from Minus wheel:" << endl;
132  os << " Ex " << fpga.m_exVlMinusWheel << "\n Ey " << fpga.m_eyVlMinusWheel << endl;
133  os << " Et " << fpga.m_etVlMinusWheel << "\n Ht " << fpga.m_htVlMinusWheel << endl;
134  int bxZero = -fpga.bxMin();
135  if (bxZero>=0 && bxZero<fpga.numOfBx()) {
136  os << "Output Etmiss " << fpga.m_outputEtMiss.contents.at(bxZero) << endl;
137  os << "Output Etmiss Phi " << fpga.m_outputEtMissPhi.contents.at(bxZero) << endl;
138  os << "Output EtSum " << fpga.m_outputEtSum.contents.at(bxZero) << endl;
139  os << "Output EtHad " << fpga.m_outputEtHad.contents.at(bxZero) << endl;
140  }
141  os << *fpga.m_hfSumProcessor;
142 
143  return os;
144 }
int bxMin() const
Support for multiple beam crossing operation.
L1GctWheelJetFpga * m_plusWheelJetFpga
int numOfBx() const
Pipeline< etHadType > m_outputEtHad
L1GctWheelEnergyFpga * m_minusWheelFpga
L1GctGlobalHfSumAlgos * m_hfSumProcessor
L1GctWheelJetFpga * m_minusWheelJetFpga
Pipeline< etMissPhiType > m_outputEtMissPhi
L1GctWheelEnergyFpga * m_plusWheelFpga
Pipeline< etMissType > m_outputEtMiss
Pipeline< etTotalType > m_outputEtSum