CMS 3D CMS Logo

Functions
CSCAnalogSignal.cc File Reference
#include "SimMuon/CSCDigitizer/src/CSCAnalogSignal.h"
#include <algorithm>
#include <iostream>

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 11 of file CSCAnalogSignal.cc.

References CSCAnalogSignal::getBinSize(), CSCAnalogSignal::getTimeOffset(), mps_fire::i, createfilelist::int, cms::cuda::stream, CSCAnalogSignal::theBinValues, CSCAnalogSignal::theElement, and CSCAnalogSignal::theTotal.

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