Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:22:45

0001 ///
0002 /// \class l1t::Stage2PreProcessorFirmwareImp1
0003 ///
0004 /// \author: Jim Brooke
0005 ///
0006 /// Description: first iteration of stage 2 processing
0007 
0008 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0009 #include "L1Trigger/L1TCalorimeter/interface/Stage2PreProcessorFirmware.h"
0010 #include "L1Trigger/L1TCalorimeter/interface/Stage2TowerCompressAlgorithmFirmware.h"
0011 
0012 #include "L1Trigger/L1TCalorimeter/interface/CaloParamsHelper.h"
0013 
0014 using namespace std;
0015 
0016 l1t::Stage2PreProcessorFirmwareImp1::Stage2PreProcessorFirmwareImp1(unsigned fwv, CaloParamsHelper const* params)
0017     : m_towerAlgo{std::make_unique<Stage2TowerCompressAlgorithmFirmwareImp1>(params)} {}
0018 
0019 //need to switch to BXVector
0020 void l1t::Stage2PreProcessorFirmwareImp1::processEvent(const std::vector<l1t::CaloTower>& inTowers,
0021                                                        std::vector<l1t::CaloTower>& outTowers) {
0022   m_towerAlgo->processEvent(inTowers, outTowers);
0023 }
0024 
0025 void l1t::Stage2PreProcessorFirmwareImp1::print(std::ostream& out) const {
0026   out << "Stage 2 Pre Processor" << std::endl;
0027 
0028   out << "  Tower compress algo  : " << (m_towerAlgo ? 1 : 0) << std::endl;
0029 }