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

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

83  {
84 
85  for(unsigned int iLogicLayer=0;iLogicLayer<aResult.results.size();++iLogicLayer){
86  out<<"Logic layer: "<<iLogicLayer<<" results: ";
87  for(unsigned int iRefLayer=0;iRefLayer<aResult.results[iLogicLayer].size();++iRefLayer){
88  out<<aResult.results[iLogicLayer][iRefLayer]<<"\t";
89  }
90  out<<std::endl;
91  }
92 
93  out<<" Sum over layers: ";
94  for(unsigned int iRefLayer=0;iRefLayer<aResult.results1D.size();++iRefLayer){
95  out<<aResult.results1D[iRefLayer]<<"\t";
96  }
97 
98  out<<std::endl;
99 
100  out<<" Number of hits: ";
101  for(unsigned int iRefLayer=0;iRefLayer<aResult.hits1D.size();++iRefLayer){
102  out<<aResult.hits1D[iRefLayer]<<"\t";
103  }
104 
105  return out;
106 }
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