CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
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.

12  {
13  stream << "CSCAnalogSignal: Element " << signal.theElement
14  << " Total " << signal.theTotal << std::endl;
15  for ( int i = 0; i < int( signal.theBinValues.size() ); ++i ) {
16 
17  //@@ ptc 26-Feb-02 Don't both with very small amplitudes
18 
19  if ( signal.theBinValues[i] > 1.E-10 ) {
20  stream << i*signal.getBinSize()+signal.getTimeOffset() <<
21  "\t" << signal.theBinValues[i] << std::endl;
22  }
23  }
24  return stream;
25 }
int i
Definition: DBlmapReader.cc:9
float getBinSize() const
std::vector< float > theBinValues
float getTimeOffset() const