CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/SimMuon/CSCDigitizer/src/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 CSCAnalogSignal::getBinSize(), CSCAnalogSignal::getTimeOffset(), i, CSCAnalogSignal::theBinValues, CSCAnalogSignal::theElement, and CSCAnalogSignal::theTotal.

                                                                             {
  stream << "CSCAnalogSignal: Element " << signal.theElement
         << "   Total " << signal.theTotal << std::endl;
  for ( int i = 0; i < int( signal.theBinValues.size() ); ++i ) { 

    //@@ ptc 26-Feb-02 Don't both with very small amplitudes

    if ( signal.theBinValues[i] > 1.E-10 ) {
       stream << i*signal.getBinSize()+signal.getTimeOffset() << 
       "\t" << signal.theBinValues[i] << std::endl;
    }
  }
  return stream;
}