CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
OMTFResult.cc File Reference
#include <iostream>
#include <ostream>
#include <cmath>
#include "L1Trigger/L1TMuonOverlap/interface/OMTFResult.h"
#include "L1Trigger/L1TMuonOverlap/interface/OMTFConfiguration.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const OMTFResult &aResult)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const OMTFResult aResult 
)

Definition at line 70 of file OMTFResult.cc.

References OMTFResult::hits1D, submitPVResolutionJobs::out, OMTFResult::results, and OMTFResult::results1D.

70  {
71  for (unsigned int iLogicLayer = 0; iLogicLayer < aResult.results.size(); ++iLogicLayer) {
72  out << "Logic layer: " << iLogicLayer << " results: ";
73  for (unsigned int iRefLayer = 0; iRefLayer < aResult.results[iLogicLayer].size(); ++iRefLayer) {
74  out << aResult.results[iLogicLayer][iRefLayer] << "\t";
75  }
76  out << std::endl;
77  }
78 
79  out << " Sum over layers: ";
80  for (unsigned int iRefLayer = 0; iRefLayer < aResult.results1D.size(); ++iRefLayer) {
81  out << aResult.results1D[iRefLayer] << "\t";
82  }
83 
84  out << std::endl;
85 
86  out << " Number of hits: ";
87  for (unsigned int iRefLayer = 0; iRefLayer < aResult.hits1D.size(); ++iRefLayer) {
88  out << aResult.hits1D[iRefLayer] << "\t";
89  }
90 
91  return out;
92 }
vector2D results
Definition: OMTFResult.h:48
vector1D results1D
Sum of pdf weights for each reference layer.
Definition: OMTFResult.h:57
vector1D hits1D
Number of hits for each reference layer.
Definition: OMTFResult.h:60