#ifndef ATLAS_AtlFastTau
#include <AtlFastTau.h>
#endif
#include <iostream>
using namespace std;
#ifndef __CINT__
ClassImp(AtlFastTau);
#endif
AtlFastTau::AtlFastTau() {
}
AtlFastTau::AtlFastTau(Int_t Id, Float_t Px, Float_t Py, Float_t Pz,
Float_t E, Bool_t IsTauPlus) :
HepTau(Id, Px, Py, Pz, E, IsTauPlus) {
}
AtlFastTau::~AtlFastTau() {
}
void AtlFastTau::Clear(Option_t *option) {
HepTau::Clear(option);
}
void AtlFastTau::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 AtlFastTau::PrintHeader() {
cout << "-------------------------------------------------------------------"
<< endl
<< " Id Chg Et Minv Theta Phi Eta "
<< endl
<< "-------------------------------------------------------------------"
<< endl;
}
void AtlFastTau::PrintFooter() {
cout << "-------------------------------------------------------------------"
<< endl;
}