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