CMS 3D CMS Logo

CSCAnalogSignal.cc File Reference

#include "SimMuon/CSCDigitizer/src/CSCAnalogSignal.h"
#include <iostream>
#include <algorithm>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &stream, const CSCAnalogSignal &signal)


Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const CSCAnalogSignal signal 
)

Definition at line 12 of file CSCAnalogSignal.cc.

References lat::endl(), CSCAnalogSignal::getBinSize(), CSCAnalogSignal::getTimeOffset(), i, int, CSCAnalogSignal::theBinValues, CSCAnalogSignal::theElement, and CSCAnalogSignal::theTotal.

00012                                                                              {
00013   stream << "CSCAnalogSignal: Element " << signal.theElement
00014          << "   Total " << signal.theTotal << std::endl;
00015   for ( int i = 0; i < int( signal.theBinValues.size() ); ++i ) { 
00016 
00017     //@@ ptc 26-Feb-02 Don't both with very small amplitudes
00018 
00019     if ( signal.theBinValues[i] > 1.E-10 ) {
00020        stream << i*signal.getBinSize()+signal.getTimeOffset() << 
00021        "\t" << signal.theBinValues[i] << std::endl;
00022     }
00023   }
00024   return stream;
00025 }


Generated on Tue Jun 9 17:55:50 2009 for CMSSW by  doxygen 1.5.4