StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTrackPrint.cxx
1 // $Id: StjTrackPrint.cxx,v 1.1 2008/11/27 07:09:36 tai Exp $
2 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
3 #include "StjTrackPrint.h"
4 
5 #include <iostream>
6 
7 ClassImp(StjTrackPrint)
8 
9 using namespace std;
10 
11 void StjTrackPrint::operator()(const StjTrackList &trackList)
12 {
13  for(StjTrackList::const_iterator it = trackList.begin(); it != trackList.end(); ++it) {
14  print(*it);
15  }
16 }
17 
18 void StjTrackPrint::print(const StjTrack& track)
19 {
20  cout
21  << track.runNumber << " "
22  << track.eventId << " "
23  << track.detectorId << " "
24  << track.pt << " "
25  << track.eta << " "
26  << track.phi << " "
27  << track.flag << " "
28  << track.nHits << " "
29  << track.charge << " "
30  << track.nHitsPoss << " "
31  << track.nHitsDedx << " "
32  << track.nHitsFit << " "
33  << track.nSigmaPion << " "
34  << track.Tdca << " "
35  << track.dcaZ << " "
36  << track.dcaD << " "
37  << track.BField << " "
38  << track.bemcRadius << " "
39  << track.vertexZ << " "
40  << track.exitDetectorId << " "
41  << track.exitTowerId << " "
42  << track.exitEta << " "
43  << track.exitPhi << " "
44  << track.dEdx << " "
45  << track.trackIndex << " "
46  << track.id << " "
47  << endl;
48 
49 }