00001
00002
00003 #include "StjJetPrint.h"
00004
00005 #include "StjFourVecPrint.h"
00006
00007 #include <iostream>
00008 #include <iomanip>
00009
00010 ClassImp(StjJetPrint)
00011
00012 using namespace std;
00013
00014 void StjJetPrint::operator()(const StjJetList &jetList)
00015 {
00016 for(StjJetList::const_iterator it = jetList.begin(); it != jetList.end(); ++it) {
00017 print(*it);
00018 }
00019 }
00020
00021 void StjJetPrint::print(const StjJet& jet)
00022 {
00023 cout
00024 << "jet "
00025 << setw(7) << jet.runNumber << ", "
00026 << setw(7) << jet.eventId << ", "
00027 << setw(4) << jet.jetId << ", "
00028 << setw(10) << jet.pt << ", "
00029 << setw(10) << jet.eta << ", "
00030 << setw(10) << jet.phi << ", "
00031 << setw(14) << jet.m << ", "
00032 << setw(10) << jet.neuRt << ", "
00033 << setw(10) << jet.vertexZ << ", "
00034 << setw(10) << jet.detectorEta
00035 << endl;
00036
00037 StjFourVecPrint fourprint;
00038
00039 fourprint(jet.fourVecList);
00040
00041
00042 }