// For details see the <a href="https://twiki.cern.ch/twiki/bin/view/Atlas/JetS#Truth_Jets">Atlas Wiki</a>.
// END_HTML
#ifndef ATLAS_AtlMCJet
#include <AtlMCJet.h>
#endif
#ifndef HEP_Jet
#include <HepJet.h>
#endif
#include <iostream>
using namespace std;
#ifndef __CINT__
ClassImp(AtlMCJet);
#endif
AtlMCJet::AtlMCJet() {
}
AtlMCJet::AtlMCJet(Int_t Id, Float_t E, Float_t Px, Float_t Py, Float_t Pz) :
HepJet(Id, E, Px, Py, Pz) {
}
AtlMCJet::~AtlMCJet() {
}
void AtlMCJet::Print(Option_t *option) {
TString opt = option;
opt.ToLower();
if ( !opt.Contains("nohead") ) PrintHeader();
cout.setf(ios::showpoint | ios::fixed, ios::floatfield);
cout.precision(3);
cout.width(4); cout << fId;
cout.width(12); cout << Et();
cout.width(12); cout << M();
cout.width(12); cout << Theta()*180/TMath::Pi();
cout.width(12); cout << Phi()*180/TMath::Pi();
cout.width(12); cout << Eta();
cout << endl;
if ( !opt.Contains("nohead") ) PrintFooter();
}
void AtlMCJet::PrintHeader() {
cout << "----------------------------------------------------------------"
<< endl
<< " Id Et M Theta Phi Eta "
<< endl
<< "----------------------------------------------------------------"
<< endl;
}
void AtlMCJet::PrintFooter() {
cout << "----------------------------------------------------------------"
<< endl;
}