StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjJetPrint.cxx
1 // $Id: StjJetPrint.cxx,v 1.2 2008/09/15 05:49:58 tai Exp $
2 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
3 #include "StjJetPrint.h"
4 
5 #include "StjFourVecPrint.h"
6 
7 #include <iostream>
8 #include <iomanip>
9 
10 ClassImp(StjJetPrint)
11 
12 using namespace std;
13 
14 void StjJetPrint::operator()(const StjJetList &jetList)
15 {
16  for(StjJetList::const_iterator it = jetList.begin(); it != jetList.end(); ++it) {
17  print(*it);
18  }
19 }
20 
21 void StjJetPrint::print(const StjJet& jet)
22 {
23  cout
24  << "jet "
25  << setw(7) << jet.runNumber << ", "
26  << setw(7) << jet.eventId << ", "
27  << setw(4) << jet.jetId << ", "
28  << setw(10) << jet.pt << ", "
29  << setw(10) << jet.eta << ", "
30  << setw(10) << jet.phi << ", "
31  << setw(14) << jet.m << ", "
32  << setw(10) << jet.neuRt << ", "
33  << setw(10) << jet.vertexZ << ", "
34  << setw(10) << jet.detectorEta
35  << endl;
36 
37  StjFourVecPrint fourprint;
38 
39  fourprint(jet.fourVecList);
40 
41 
42 }