CMS 3D CMS Logo

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 77 of file OMTFResult.cc.

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

77  {
78 
79  for(unsigned int iLogicLayer=0;iLogicLayer<aResult.results.size();++iLogicLayer){
80  out<<"Logic layer: "<<iLogicLayer<<" results: ";
81  for(unsigned int iRefLayer=0;iRefLayer<aResult.results[iLogicLayer].size();++iRefLayer){
82  out<<aResult.results[iLogicLayer][iRefLayer]<<"\t";
83  }
84  out<<std::endl;
85  }
86 
87  out<<" Sum over layers: ";
88  for(unsigned int iRefLayer=0;iRefLayer<aResult.results1D.size();++iRefLayer){
89  out<<aResult.results1D[iRefLayer]<<"\t";
90  }
91 
92  out<<std::endl;
93 
94  out<<" Number of hits: ";
95  for(unsigned int iRefLayer=0;iRefLayer<aResult.hits1D.size();++iRefLayer){
96  out<<aResult.hits1D[iRefLayer]<<"\t";
97  }
98 
99  return out;
100 }
vector2D results
Definition: OMTFResult.h:54
vector1D results1D
Sum of pdf weights for each reference layer.
Definition: OMTFResult.h:63
vector1D hits1D
Number of hits for each reference layer.
Definition: OMTFResult.h:66