CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

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

Variables

const int inputsPerLayer = 14
 

Function Documentation

◆ operator<<()

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

Definition at line 68 of file OMTFinput.cc.

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

68  {
69  for (unsigned int iLogicLayer = 0; iLogicLayer < aInput.muonStubsInLayers.size(); ++iLogicLayer) {
70  out << "Logic layer: " << std::setw(2) << iLogicLayer << " Hits: ";
71  for (unsigned int iHit = 0; iHit < aInput.muonStubsInLayers[iLogicLayer].size(); ++iHit) {
72  //out<<aInput.muonStubsInLayers[iLogicLayer][iHit]<<"\t";
73  int phi = aInput.getPhiHw(iLogicLayer, iHit);
74  if (phi == 5400)
75  out << std::setw(4) << "...."
76  << " ";
77  else
78  out << std::setw(4) << phi << " ";
79  //TODO print other value?
80  }
81  out << std::endl;
82  }
83  return out;
84 }
int getPhiHw(unsigned int iLayer, unsigned int iInput) const override
Definition: OMTFinput.cc:18
MuonStubPtrs2D muonStubsInLayers

Variable Documentation

◆ inputsPerLayer

const int inputsPerLayer = 14

Definition at line 8 of file OMTFinput.cc.