CMS 3D CMS Logo

Functions
OMTFConfiguration.cc File Reference
#include "L1Trigger/L1TMuonOverlapPhase1/interface/Omtf/OMTFConfiguration.h"
#include "CondFormats/L1TObjects/interface/LUT.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include "DataFormats/MuonDetId/interface/DTChamberId.h"
#include "DataFormats/MuonDetId/interface/MuonSubdetId.h"
#include "DataFormats/MuonDetId/interface/RPCDetId.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <iostream>
#include <iterator>
#include <utility>

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 28 of file OMTFConfiguration.cc.

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

28  {
29  out << "iRefLayer: " << aRefHitDef.iRefLayer << " iInput: " << aRefHitDef.iInput << " iRegion: " << aRefHitDef.iRegion
30  << " range: (" << aRefHitDef.range.first << ", " << aRefHitDef.range.second << std::endl;
31 
32  return out;
33 }
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 231 of file OMTFConfiguration.cc.

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

231  {
232  out << "nLayers(): " << aConfig.nLayers() << std::endl
233  << " nHitsPerLayer(): " << aConfig.nHitsPerLayer() << std::endl
234  << " nRefLayers(): " << aConfig.nRefLayers() << std::endl
235  << " nPdfAddrBits: " << aConfig.nPdfAddrBits() << std::endl
236  << " nPdfValBits: " << aConfig.nPdfValBits() << std::endl
237  << " nPhiBins(): " << aConfig.nPhiBins() << std::endl
238  << " nPdfAddrBits(): " << aConfig.nPdfAddrBits() << std::endl
239  << std::endl;
240 
241  for (unsigned int iProcessor = 0; iProcessor < aConfig.nProcessors(); ++iProcessor) {
242  out << "Processor: " << iProcessor;
243  for (unsigned int iRefLayer = 0; iRefLayer < aConfig.nRefLayers(); ++iRefLayer) {
244  out << " " << aConfig.processorPhiVsRefLayer[iProcessor][iRefLayer];
245  }
246  out << std::endl;
247  }
248 
249  return out;
250 }
unsigned int nPdfValBits() const
unsigned int nHitsPerLayer() const
unsigned int nPhiBins() const
unsigned int nPdfAddrBits() const
std::vector< std::vector< int > > processorPhiVsRefLayer
unsigned int nLayers() const
unsigned int nRefLayers() const
unsigned int nProcessors() const