/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/src/TrkDirection.cxx

Go to the documentation of this file.
00001 // -----------------------------------------------------------------------
00002 // File and Version Information:
00003 // $Id: TrkDirection.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
00004 //
00005 // This defines an output operator to write the strings "trkIn" and "trkOut"
00006 // for the trkDirection enumeration values.
00007 //
00008 // Michael Kelsey <kelsey@slac.stanford.edu>
00009 //
00010 // Copyright Information:
00011 //      Copyright (C) 1999  Princeton University
00012 //
00013 //------------------------------------------------------------------------
00014 
00015 #include "TrkBase/TrkDirection.h"
00016 #include <iostream>
00017 using std::ostream;
00018 
00019 ostream& operator<<(ostream& os, const trkDirection& dir) {
00020   if (dir==trkIn) return os << "trkIn";
00021   if (dir==trkOut) return os << "trkOut";
00022   return os << (int)dir;
00023 }

Generated on Tue Nov 29 23:13:40 2016 for BOSS_7.0.2 by  doxygen 1.4.7