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 306 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.

306  {
307  out << "nLayers(): " << aConfig.nLayers() << std::endl
308  << " nHitsPerLayer(): " << aConfig.nHitsPerLayer() << std::endl
309  << " nRefLayers(): " << aConfig.nRefLayers() << std::endl
310  << " nPdfAddrBits: " << aConfig.nPdfAddrBits() << std::endl
311  << " nPdfValBits: " << aConfig.nPdfValBits() << std::endl
312  << " nPhiBins(): " << aConfig.nPhiBins() << std::endl
313  << " nPdfAddrBits(): " << aConfig.nPdfAddrBits() << std::endl
314  << std::endl;
315 
316  for (unsigned int iProcessor = 0; iProcessor < aConfig.nProcessors(); ++iProcessor) {
317  out << "Processor: " << iProcessor;
318  for (unsigned int iRefLayer = 0; iRefLayer < aConfig.nRefLayers(); ++iRefLayer) {
319  out << " " << aConfig.processorPhiVsRefLayer[iProcessor][iRefLayer];
320  }
321  out << std::endl;
322  }
323 
324  return out;
325 }
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