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 }