QwAnalysis
QwDetectorInfo.cc File Reference
#include "QwDetectorInfo.h"
#include <cstdlib>
#include "QwParameterFile.h"
+ Include dependency graph for QwDetectorInfo.cc:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &stream, const QwDetectorInfo &det)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const QwDetectorInfo det 
)

Output stream operator

Parameters
streamOutput stream
detDetector info object
Returns
Output stream

Definition at line 291 of file QwDetectorInfo.cc.

References Qw::cm, QwDetectorInfo::fDetectorName, QwDetectorInfo::fOctant, QwDetectorInfo::fPackage, QwDetectorInfo::fPlane, QwDetectorInfo::fRegion, QwDetectorInfo::fType, QwDetectorInfo::GetElementDirection(), QwDetectorInfo::GetXPosition(), and QwDetectorInfo::GetZPosition().

292 {
293  stream << det.fDetectorName << ": ";
294  stream << "type " << det.fType << ", ";
295  stream << "package " << det.fPackage << ", ";
296  stream << "region " << det.fRegion << ", ";
297  stream << "plane " << det.fPlane << ", ";
298  stream << "octant " << det.fOctant << ", ";
299  stream << "dir " << det.GetElementDirection() << " ";
300  stream << "(y = " << det.GetXPosition() / Qw::cm << " cm)";
301  stream << "(z = " << det.GetZPosition() / Qw::cm << " cm)";
302  return stream;
303 }
EQwRegionID fRegion
EQwDetectorPackage fPackage
std::string fDetectorName
EQwDirectionID GetElementDirection() const
EQwDetectorType fType
double GetZPosition() const
double GetXPosition() const
static const double cm
Length units: base unit is mm.
Definition: QwUnits.h:61

+ Here is the call graph for this function: