#include <ostream>
#include <vector>
#include "DataFormats/DetId/interface/DetId.h"
Go to the source code of this file.
Classes | |
class | CaloSamples |
Functions | |
std::ostream & | operator<< (std::ostream &s, const CaloSamples &samps) |
std::ostream& operator<< | ( | std::ostream & | s, |
const CaloSamples & | samps | ||
) |
Definition at line 104 of file CaloSamples.cc.
References i, CaloSamples::id(), CaloSamples::preciseSize(), alignCSCRings::s, and CaloSamples::size().
{ s << "DetId=" << samples.id(); // print out every so many precise samples float preciseStep = samples.preciseSize()/samples.size(); s << ", "<< samples.size() << " samples"; if (preciseStep > 0) s << ", " << samples.preciseSize() << " preciseSamples" << ", " << preciseStep << " precise step"; s << '\n'; for (int i=0; i<samples.size(); i++) { s << i << ":" << samples[i]; int precisei = i*preciseStep; if(precisei < samples.preciseSize()) { s << " " << samples.preciseAt(precisei) ; } s << std::endl; } return s; }