CMS 3D CMS Logo

Functions
OMTFinput.cc File Reference
#include "L1Trigger/L1TMuonOverlapPhase1/interface/Omtf/OMTFConfiguration.h"
#include "L1Trigger/L1TMuonOverlapPhase1/interface/Omtf/OMTFinput.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iomanip>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const OMTFinput &aInput)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  out,
const OMTFinput aInput 
)

Definition at line 91 of file OMTFinput.cc.

References OMTFinput::getPhiHw(), MuonStubsInput::muonStubsInLayers, MillePedeFileConverter_cfg::out, and PVValHelper::phi.

91  {
92  for (unsigned int iLogicLayer = 0; iLogicLayer < aInput.muonStubsInLayers.size(); ++iLogicLayer) {
93  out << "Logic layer: " << std::setw(2) << iLogicLayer << " Hits: ";
94  for (unsigned int iHit = 0; iHit < aInput.muonStubsInLayers[iLogicLayer].size(); ++iHit) {
95  //out<<aInput.muonStubsInLayers[iLogicLayer][iHit]<<"\t";
96  int phi = aInput.getPhiHw(iLogicLayer, iHit);
97  if (phi == 5400)
98  out << std::setw(4) << "...."
99  << " ";
100  else
101  out << std::setw(4) << phi << " ";
102  //TODO print other value?
103  }
104  out << std::endl;
105  }
106  return out;
107 }
int getPhiHw(unsigned int iLayer, unsigned int iInput) const override
Definition: OMTFinput.cc:20
MuonStubPtrs2D muonStubsInLayers