#ifndef ATLAS_AtlFastMuon
#include <AtlFastMuon.h>
#endif
#include <iostream>
using namespace std;
#ifndef __CINT__
ClassImp(AtlFastMuon);
#endif
AtlFastMuon::AtlFastMuon() {
}
AtlFastMuon::AtlFastMuon(Int_t Id, Float_t Px, Float_t Py, Float_t Pz,
Float_t E, Bool_t IsMuPlus) :
HepMuon(Id, Px, Py, Pz, E, IsMuPlus) {
}
AtlFastMuon::~AtlFastMuon() {
}
void AtlFastMuon::Clear(Option_t *option) {
HepMuon::Clear(option);
}
void AtlFastMuon::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(3); cout << (( IsPositive() ) ? "+" : "-");
cout.width(12); cout << Et();
cout.precision(6);
cout.width(12); cout << M("REC");
cout.precision(3);
cout.width(12);
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 AtlFastMuon::PrintHeader() {
cout << "-------------------------------------------------------------------"
<< endl
<< " Id Chg Et Minv Theta Phi Eta "
<< endl
<< "-------------------------------------------------------------------"
<< endl;
}
void AtlFastMuon::PrintFooter() {
cout << "-------------------------------------------------------------------"
<< endl;
}