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 OMTFConfiguration &aConfig)
 
std::ostream & operator<< (std::ostream &out, const RefHitDef &aRefHitDef)
 

Function Documentation

◆ operator<<() [1/2]

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

Definition at line 154 of file OMTFConfiguration.cc.

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 }

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

◆ operator<<() [2/2]

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

Definition at line 23 of file OMTFConfiguration.cc.

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 }

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

OMTFConfiguration::nPdfValBits
unsigned int nPdfValBits() const
Definition: OMTFConfiguration.h:92
RefHitDef::iInput
unsigned int iInput
Hit input number within a cone.
Definition: OMTFConfiguration.h:29
RefHitDef::range
std::pair< int, int > range
Definition: OMTFConfiguration.h:39
OMTFConfiguration::nHitsPerLayer
unsigned int nHitsPerLayer() const
Definition: OMTFConfiguration.h:88
OMTFConfiguration::nPdfAddrBits
unsigned int nPdfAddrBits() const
Definition: OMTFConfiguration.h:91
OMTFConfiguration::processorPhiVsRefLayer
std::vector< std::vector< int > > processorPhiVsRefLayer
Definition: OMTFConfiguration.h:153
OMTFConfiguration::nLayers
unsigned int nLayers() const
Definition: OMTFConfiguration.h:87
RefHitDef::iRefLayer
unsigned int iRefLayer
Reference layer logic number (0-7)
Definition: OMTFConfiguration.h:35
OMTFConfiguration::nProcessors
unsigned int nProcessors() const
Definition: OMTFConfiguration.h:96
OMTFConfiguration::nRefLayers
unsigned int nRefLayers() const
Definition: OMTFConfiguration.h:89
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
RefHitDef::iRegion
unsigned int iRegion
Region number assigned to this referecne hit.
Definition: OMTFConfiguration.h:32