#include <ostream>
#include <vector>
#include "DataFormats/DetId/interface/DetId.h"
Go to the source code of this file.
std::ostream& operator<< |
( |
std::ostream & |
s, |
|
|
const CaloSamples & |
samps |
|
) |
| |
Definition at line 106 of file CaloSamples.cc.
References i, CaloSamples::id(), j, CaloSamples::preciseSize(), alignCSCRings::s, and CaloSamples::size().
107 s <<
"DetId " << samples.id();
109 float preciseStep = samples.preciseSize()/samples.size();
110 s <<
", "<< samples.size() <<
" samples";
112 s <<
", " << samples.preciseSize() <<
" preciseSamples"
113 <<
", " << preciseStep <<
" preciseStep";
115 for (
int i=0;
i<samples.size();
i++) {
116 s <<
i <<
":" << samples[
i] <<
" precise:";
117 int precise_start(
i*preciseStep), precise_end(precise_start + preciseStep);
118 for (
int j(precise_start); ((
j<precise_end) && (
j< samples.preciseSize()));
120 s <<
" " << samples.preciseAt(
j);