FairRoot/PandaRoot
Functions
PndEmcWaveformData.cxx File Reference
#include "PndEmcWaveformData.h"
#include <map>
#include <ostream>
#include "assert.h"

Go to the source code of this file.

Functions

 ClassImp (PndEmcWaveformData)
 
std::ostreamoperator<< (std::ostream &out, PndEmcWaveformData &wfData)
 

Function Documentation

ClassImp ( PndEmcWaveformData  )
std::ostream& operator<< ( std::ostream out,
PndEmcWaveformData wfData 
)

Definition at line 31 of file PndEmcWaveformData.cxx.

References count, PndEmcWaveformData::fHitMap, and out.

31  {
32  out << "waveform links to " << wfData.fHitMap.size() <<" PndEmcHits:" << endl;
33 
34  int count =0;
35  for(map<Double_t,Double_t>::iterator it = wfData.fHitMap.begin(); it!=wfData.fHitMap.end(); ++it) {
36  out <<"\t#" << count++ << "\t time: " << it->first << "\t energy: " << it->second << endl;
37  }
38 
39  return out;
40 }
TFile * out
Definition: reco_muo.C:20
std::map< Double_t, Double_t > fHitMap
int count