00001
00002
00003 #include "StjFourVecPrint.h"
00004
00005 #include <iostream>
00006 #include <iomanip>
00007
00008 ClassImp(StjFourVecPrint)
00009
00010 using namespace std;
00011
00012 void StjFourVecPrint::operator()(const StjFourVecList &fourList)
00013 {
00014 for(StjFourVecList::const_iterator it = fourList.begin(); it != fourList.end(); ++it) {
00015 print(*it);
00016 }
00017 }
00018
00019 void StjFourVecPrint::print(const StjFourVec& four)
00020 {
00021 cout
00022 << setw(7) << four.runNumber << ", "
00023 << setw(7) << four.eventId << ", "
00024 << setw(4) << four.fourvecId << ", "
00025 << setw(1) << four.type << ", "
00026 << setw(1) << four.detectorId << ", "
00027 << setw(4) << four.trackId << ", "
00028 << setw(4) << four.towerId << ", "
00029 << setw(4) << four.mcparticleId << ", "
00030 << setw(10) << four.pt << ", "
00031 << setw(10) << four.eta << ", "
00032 << setw(10) << four.phi << ", "
00033 << setw(14) << four.m << ", "
00034 << setw(10) << four.vertexZ
00035 << endl;
00036
00037 }