00001
00002
00003 #include "StjTrackPrint.h"
00004
00005 #include <iostream>
00006
00007 ClassImp(StjTrackPrint)
00008
00009 using namespace std;
00010
00011 void StjTrackPrint::operator()(const StjTrackList &trackList)
00012 {
00013 for(StjTrackList::const_iterator it = trackList.begin(); it != trackList.end(); ++it) {
00014 print(*it);
00015 }
00016 }
00017
00018 void StjTrackPrint::print(const StjTrack& track)
00019 {
00020 cout
00021 << track.runNumber << " "
00022 << track.eventId << " "
00023 << track.detectorId << " "
00024 << track.pt << " "
00025 << track.eta << " "
00026 << track.phi << " "
00027 << track.flag << " "
00028 << track.nHits << " "
00029 << track.charge << " "
00030 << track.nHitsPoss << " "
00031 << track.nHitsDedx << " "
00032 << track.nHitsFit << " "
00033 << track.nSigmaPion << " "
00034 << track.Tdca << " "
00035 << track.dcaZ << " "
00036 << track.dcaD << " "
00037 << track.BField << " "
00038 << track.bemcRadius << " "
00039 << track.vertexZ << " "
00040 << track.exitDetectorId << " "
00041 << track.exitTowerId << " "
00042 << track.exitEta << " "
00043 << track.exitPhi << " "
00044 << track.dEdx << " "
00045 << track.trackIndex << " "
00046 << track.id << " "
00047 << endl;
00048
00049 }