File indexing completed on 2024-04-06 12:20:25
0001
0002
0003
0004
0005
0006
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
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 }