test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
GoldenPattern.cc File Reference
#include <iostream>
#include <iomanip>
#include <cmath>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "L1Trigger/L1TMuonOverlap/interface/GoldenPattern.h"
#include "L1Trigger/L1TMuonOverlap/interface/OMTFConfiguration.h"
#include "L1Trigger/L1TMuonOverlap/interface/OMTFinput.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const GoldenPattern &aPattern)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const GoldenPattern aPattern 
)

Definition at line 88 of file GoldenPattern.cc.

References GoldenPattern::meanDistPhi, GoldenPattern::meanDistPhiCounts, GenerateHcalLaserBadRunList::out, GoldenPattern::pdfAllRef, and GoldenPattern::theKey.

88  {
89 
90  out <<"GoldenPattern "<< aPattern.theKey <<std::endl;
91  out <<"Number of reference layers: "<<aPattern.meanDistPhi[0].size()
92  <<", number of measurement layers: "<<aPattern.pdfAllRef.size()
93  <<std::endl;
94 
95  if(!aPattern.meanDistPhi.size()) return out;
96  if(!aPattern.pdfAllRef.size()) return out;
97 
98  out<<"Mean dist phi per layer:"<<std::endl;
99  for (unsigned int iRefLayer=0;iRefLayer<aPattern.meanDistPhi[0].size();++iRefLayer){
100  out<<"Ref layer: "<<iRefLayer<<" (";
101  for (unsigned int iLayer=0;iLayer<aPattern.meanDistPhi.size();++iLayer){
102  out<<std::setw(3)<<aPattern.meanDistPhi[iLayer][iRefLayer]<<"\t";
103  }
104  out<<")"<<std::endl;
105  }
106 
107  if(aPattern.meanDistPhiCounts.size()){
108  out<<"Counts number per layer:"<<std::endl;
109  for (unsigned int iRefLayer=0;iRefLayer<aPattern.meanDistPhi[0].size();++iRefLayer){
110  out<<"Ref layer: "<<iRefLayer<<" (";
111  for (unsigned int iLayer=0;iLayer<aPattern.meanDistPhi.size();++iLayer){
112  out<<aPattern.meanDistPhiCounts[iLayer][iRefLayer]<<"\t";
113  }
114  out<<")"<<std::endl;
115  }
116  }
117 /*
118  out<<"PDF per layer:"<<std::endl;
119  for (unsigned int iRefLayer=0;iRefLayer<aPattern.pdfAllRef[0].size();++iRefLayer){
120  out<<"Ref layer: "<<iRefLayer;
121  for (unsigned int iLayer=0;iLayer<aPattern.pdfAllRef.size();++iLayer){
122  out<<", measurement layer: "<<iLayer<<std::endl;
123  for (unsigned int iPdf=0;iPdf<exp2(myOmtfConfig->nPdfAddrBits());++iPdf){
124  out<<std::setw(2)<<aPattern.pdfAllRef[iLayer][iRefLayer][iPdf]<<" ";
125  }
126  out<<std::endl;
127  }
128  }
129 */
130  return out;
131 }
vector2D meanDistPhiCounts
vector2D meanDistPhi
Key theKey
Pattern kinematical identification (iEta,iPt,iCharge)
vector3D pdfAllRef