QwAnalysis
QwGeometry.h File Reference
#include <vector>
#include <algorithm>
#include "QwDetectorInfo.h"
+ Include dependency graph for QwGeometry.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  QwGeometry
 Collection of QwDetectorInfo pointers that specifies an experimental geometry. More...
 
struct  QwGeometry::compare
 Functor for sorting QwDetectorInfo pointers. More...
 

Functions

std::ostream & operator<< (std::ostream &stream, const QwGeometry &detectors)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const QwGeometry detectors 
)
inline

Output stream operator

Parameters
streamOutput stream
detectorsDetector geometry object
Returns
Output stream

Definition at line 167 of file QwGeometry.h.

168 {
169  for (QwGeometry::const_iterator i = detectors.begin(); i != detectors.end(); i++) {
170  if (*i)
171  stream << *(*i) << std::endl;
172  else
173  stream << "(null)" << std::endl;
174  }
175  return stream;
176 }