QwAnalysis
QwTreeLine.cc File Reference

Definition of the one-dimensional track stubs. More...

#include "QwTreeLine.h"
#include <cmath>
#include "QwHit.h"
#include "QwHitPattern.h"
#include "QwHitContainer.h"
+ Include dependency graph for QwTreeLine.cc:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &stream, const QwTreeLine &tl)
 

Detailed Description

Definition of the one-dimensional track stubs.

Author
Wouter Deconinck wdcon.nosp@m.inc@.nosp@m.mit.e.nosp@m.du
Jie Pan jpan@.nosp@m.jlab.nosp@m..org
Date
Sun May 24 11:05:29 CDT 2009

Definition in file QwTreeLine.cc.

Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const QwTreeLine tl 
)

Stream some info about the tree line

Parameters
streamStream as lhs of the operator
tlTree line as rhs of the operator
Returns
Stream as result of the operator

Definition at line 340 of file QwTreeLine.cc.

References QwTreeLine::a_beg, QwTreeLine::a_end, QwTreeLine::b_beg, QwTreeLine::b_end, Qw::cm, QwTreeLine::fAverageResidual, QwTreeLine::fChi, QwTreeLine::fOffset, QwTreeLine::fQwHits, QwTreeLine::fSlope, VQwTrackingElement::GetDirection(), VQwTrackingElement::GetPackage(), VQwTrackingElement::GetPlane(), VQwTrackingElement::GetRegion(), QwTreeLine::IsVoid(), and kRegionIDNull.

340  {
341  stream << "tl: ";
342  if (tl.a_beg + tl.a_end + tl.b_beg + tl.b_end != 0) {
343  stream << tl.a_beg << "," << tl.a_end << " -- ";
344  stream << tl.b_beg << "," << tl.b_end << " ";
345  }
346  if (tl.GetRegion() != kRegionIDNull) { // treeline has geometry identification
347  stream << "(" << tl.GetRegion() << "/" << "?UD"[tl.GetPackage()];
348  stream << "/" << "?xyuvrq"[tl.GetDirection()];
349  if (tl.GetPlane() > 0)
350  stream << "/" << tl.GetPlane() << ")";
351  else
352  stream << ")";
353  }
354  if (tl.fChi > 0.0) { // treeline has been fitted
355  stream << "; fOffset = " << tl.fOffset/Qw::cm << " cm";
356  stream << ", fSlope = " << tl.fSlope;
357  stream << ", fResidual = " << tl.fAverageResidual/Qw::cm << " cm";
358  stream << ", fChi = " << tl.fChi;
359  stream << "; hits (" << tl.fQwHits.size() << "):";
360  for (size_t hit = 0; hit < tl.fQwHits.size(); hit++)
361  stream << " " << tl.fQwHits.at(hit)->GetPlane() << ":" << tl.fQwHits.at(hit)->GetElement();
362  }
363  if (tl.IsVoid()) stream << " (void)";
364  return stream;
365 }
double fChi
chi squared(?)
Definition: QwTreeLine.h:215
double fOffset
track offset
Definition: QwTreeLine.h:213
double fAverageResidual
///&lt; link to next list element
Definition: QwTreeLine.h:235
std::vector< QwHit * > fQwHits
List of hits in this tree line.
Definition: QwTreeLine.h:58
double fSlope
track slope
Definition: QwTreeLine.h:214
EQwRegionID GetRegion() const
Get the region.
int GetPlane() const
Get the plane number.
int b_end
bin in last layer
Definition: QwTreeLine.h:219
bool IsVoid() const
Is this tree line void?
Definition: QwTreeLine.h:87
int a_end
bin in first layer
Definition: QwTreeLine.h:218
EQwDirectionID GetDirection() const
Get the direction.
EQwDetectorPackage GetPackage() const
Get the package.
static const double cm
Length units: base unit is mm.
Definition: QwUnits.h:61

+ Here is the call graph for this function: