BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkDirection.cxx
Go to the documentation of this file.
1// -----------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkDirection.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// This defines an output operator to write the strings "trkIn" and "trkOut"
6// for the trkDirection enumeration values.
7//
8// Michael Kelsey <[email protected]>
9//
10// Copyright Information:
11// Copyright (C) 1999 Princeton University
12//
13//------------------------------------------------------------------------
14
16#include <iostream>
17using std::ostream;
18
19ostream& operator<<(ostream& os, const trkDirection& dir) {
20 if (dir==trkIn) return os << "trkIn";
21 if (dir==trkOut) return os << "trkOut";
22 return os << (int)dir;
23}
ostream & operator<<(ostream &os, const trkDirection &dir)
trkDirection
Definition: TrkDirection.h:23
@ trkOut
Definition: TrkDirection.h:23
@ trkIn
Definition: TrkDirection.h:23