CMS 3D CMS Logo

Functions
OMTFConfiguration.cc File Reference
#include <iostream>
#include <algorithm>
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include "DataFormats/MuonDetId/interface/RPCDetId.h"
#include "DataFormats/MuonDetId/interface/DTChamberId.h"
#include "DataFormats/MuonDetId/interface/MuonSubdetId.h"
#include "L1Trigger/L1TMuonOverlap/interface/OMTFConfiguration.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const RefHitDef &aRefHitDef)
 
std::ostream & operator<< (std::ostream &out, const OMTFConfiguration &aConfig)
 

Function Documentation

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  out,
const RefHitDef aRefHitDef 
)

Definition at line 23 of file OMTFConfiguration.cc.

References RefHitDef::iInput, RefHitDef::iRefLayer, RefHitDef::iRegion, MillePedeFileConverter_cfg::out, and RefHitDef::range.

23  {
24  out << "iRefLayer: " << aRefHitDef.iRefLayer << " iInput: " << aRefHitDef.iInput << " iRegion: " << aRefHitDef.iRegion
25  << " range: (" << aRefHitDef.range.first << ", " << aRefHitDef.range.second << std::endl;
26 
27  return out;
28 }
unsigned int iInput
Hit input number within a cone.
std::pair< int, int > range
unsigned int iRefLayer
Reference layer logic number (0-7)
unsigned int iRegion
Region number assigned to this referecne hit.

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  out,
const OMTFConfiguration aConfig 
)

Definition at line 154 of file OMTFConfiguration.cc.

References OMTFConfiguration::nHitsPerLayer(), OMTFConfiguration::nLayers(), OMTFConfiguration::nPdfAddrBits(), OMTFConfiguration::nPdfValBits(), OMTFConfiguration::nProcessors(), OMTFConfiguration::nRefLayers(), MillePedeFileConverter_cfg::out, and OMTFConfiguration::processorPhiVsRefLayer.

154  {
155  out << "nLayers(): " << aConfig.nLayers() << " nHitsPerLayer(): " << aConfig.nHitsPerLayer()
156  << " nRefLayers(): " << aConfig.nRefLayers() << " nPdfAddrBits: " << aConfig.nPdfAddrBits()
157  << " nPdfValBits: " << aConfig.nPdfValBits() << std::endl;
158 
159  for (unsigned int iProcessor = 0; iProcessor < aConfig.nProcessors(); ++iProcessor) {
160  out << "Processor: " << iProcessor;
161  for (unsigned int iRefLayer = 0; iRefLayer < aConfig.nRefLayers(); ++iRefLayer) {
162  out << " " << aConfig.processorPhiVsRefLayer[iProcessor][iRefLayer];
163  }
164  out << std::endl;
165  }
166 
167  return out;
168 }
unsigned int nPdfValBits() const
unsigned int nHitsPerLayer() const
unsigned int nPdfAddrBits() const
std::vector< std::vector< int > > processorPhiVsRefLayer
unsigned int nLayers() const
unsigned int nRefLayers() const
unsigned int nProcessors() const