00001
00002
00003 #include "StjDijetPrint.h"
00004
00005 #include "StjJetPrint.h"
00006
00007 #include <iostream>
00008 #include <iomanip>
00009
00010 ClassImp(StjDijetPrint)
00011
00012 using namespace std;
00013
00014 void StjDijetPrint::operator()(const StjDijetList &dijetList)
00015 {
00016 for(StjDijetList::const_iterator it = dijetList.begin(); it != dijetList.end(); ++it) {
00017 print(*it);
00018 }
00019 }
00020
00021 void StjDijetPrint::print(const StjDijet& dijet)
00022 {
00023 cout
00024 << "run: " << setw(7) << dijet.runNumber << ", "
00025 << "event: " << setw(7) << dijet.eventId << ", "
00026 << "dijet: " << setw(2) << dijet.dijetId << ", "
00027 << "m: " << setw(8) << dijet.m << ", "
00028 << "eta: " << setw(8) << dijet.eta << ", "
00029 << "costh: " << setw(8) << dijet.costh << ", "
00030 << "dphi: " << setw(8) << dijet.dphi << ", "
00031 << "Rt3: " << setw(8) << dijet.neuRt3 << ", "
00032 << "Rt4: " << setw(8) << dijet.neuRt4 << ", "
00033 << "vertexZ: " << setw(8) << dijet.vertexZ
00034 << endl;
00035
00036 StjJetPrint jetprint;
00037 StjJetList jetList;
00038 jetList.push_back(dijet.jet3);
00039 jetList.push_back(dijet.jet4);
00040 jetprint(jetList);
00041 }