//____________________________________________________________________
//
// Atlas photon class
// 

//  
// Author: Oliver Maria Kind <mailto: kind@mail.desy.de>
// Update: $Id: AtlFastPhoton.cxx,v 1.1 2009/01/05 17:26:56 mandry Exp $
// Copyright: 2008 (C) Oliver Maria Kind
//
#ifndef ATLAS_AtlFastPhoton
#include <AtlFastPhoton.h>
#endif
#include <iostream>

using namespace std;

#ifndef __CINT__
ClassImp(AtlFastPhoton);
#endif

//____________________________________________________________________

AtlFastPhoton::AtlFastPhoton() {
  //
  // Default constructor
  //
}

//____________________________________________________________________

AtlFastPhoton::AtlFastPhoton(Int_t Id, Float_t Px, Float_t Py, Float_t Pz,
			 Float_t E) :
    HepPhoton(Id, Px, Py, Pz, E) {
    //
    // Normal constructor
    //
}

//____________________________________________________________________

AtlFastPhoton::~AtlFastPhoton() {
    //
    // Default destructor
    //
}

//____________________________________________________________________

void AtlFastPhoton::Clear(Option_t *option) {
    //
    // Clear object
    //
    HepPhoton::Clear(option);
}

//_____________________________________________________________

void AtlFastPhoton::Print(Option_t *option) {
    //
    // Print photon information
    //
    // Options available:
    //   "nohead" - No header containing the variable names is
    //              displayed. Useful when printing a whole table
    //              for a list of photons
    //
    TString opt = option;
    opt.ToLower();
    
    // Print header
    if ( !opt.Contains("nohead") ) PrintHeader();
    
    // Print
    cout.setf(ios::showpoint | ios::fixed, ios::floatfield);
    cout.precision(3);
    cout.width(4);  cout << fId;
    cout.width(12); cout << Et();
    cout.precision(6);
    cout.width(12); cout << M("RECO");
    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;

    // Print footer
    if ( !opt.Contains("nohead") ) PrintFooter();
}

//____________________________________________________________________

void AtlFastPhoton::PrintHeader() {
    //
    // Print information header
    //
    cout << "-------------------------------------------------------------------"
	 << endl
	 << " Id         Et          Minv         Theta         Phi         Eta "
	 << endl
	 << "-------------------------------------------------------------------"
	 << endl;
}

//____________________________________________________________________

void AtlFastPhoton::PrintFooter() {
    //
    // Print footer
    //
    cout << "-------------------------------------------------------------------"
	 << endl;
}

 AtlFastPhoton.cxx:1
 AtlFastPhoton.cxx:2
 AtlFastPhoton.cxx:3
 AtlFastPhoton.cxx:4
 AtlFastPhoton.cxx:5
 AtlFastPhoton.cxx:6
 AtlFastPhoton.cxx:7
 AtlFastPhoton.cxx:8
 AtlFastPhoton.cxx:9
 AtlFastPhoton.cxx:10
 AtlFastPhoton.cxx:11
 AtlFastPhoton.cxx:12
 AtlFastPhoton.cxx:13
 AtlFastPhoton.cxx:14
 AtlFastPhoton.cxx:15
 AtlFastPhoton.cxx:16
 AtlFastPhoton.cxx:17
 AtlFastPhoton.cxx:18
 AtlFastPhoton.cxx:19
 AtlFastPhoton.cxx:20
 AtlFastPhoton.cxx:21
 AtlFastPhoton.cxx:22
 AtlFastPhoton.cxx:23
 AtlFastPhoton.cxx:24
 AtlFastPhoton.cxx:25
 AtlFastPhoton.cxx:26
 AtlFastPhoton.cxx:27
 AtlFastPhoton.cxx:28
 AtlFastPhoton.cxx:29
 AtlFastPhoton.cxx:30
 AtlFastPhoton.cxx:31
 AtlFastPhoton.cxx:32
 AtlFastPhoton.cxx:33
 AtlFastPhoton.cxx:34
 AtlFastPhoton.cxx:35
 AtlFastPhoton.cxx:36
 AtlFastPhoton.cxx:37
 AtlFastPhoton.cxx:38
 AtlFastPhoton.cxx:39
 AtlFastPhoton.cxx:40
 AtlFastPhoton.cxx:41
 AtlFastPhoton.cxx:42
 AtlFastPhoton.cxx:43
 AtlFastPhoton.cxx:44
 AtlFastPhoton.cxx:45
 AtlFastPhoton.cxx:46
 AtlFastPhoton.cxx:47
 AtlFastPhoton.cxx:48
 AtlFastPhoton.cxx:49
 AtlFastPhoton.cxx:50
 AtlFastPhoton.cxx:51
 AtlFastPhoton.cxx:52
 AtlFastPhoton.cxx:53
 AtlFastPhoton.cxx:54
 AtlFastPhoton.cxx:55
 AtlFastPhoton.cxx:56
 AtlFastPhoton.cxx:57
 AtlFastPhoton.cxx:58
 AtlFastPhoton.cxx:59
 AtlFastPhoton.cxx:60
 AtlFastPhoton.cxx:61
 AtlFastPhoton.cxx:62
 AtlFastPhoton.cxx:63
 AtlFastPhoton.cxx:64
 AtlFastPhoton.cxx:65
 AtlFastPhoton.cxx:66
 AtlFastPhoton.cxx:67
 AtlFastPhoton.cxx:68
 AtlFastPhoton.cxx:69
 AtlFastPhoton.cxx:70
 AtlFastPhoton.cxx:71
 AtlFastPhoton.cxx:72
 AtlFastPhoton.cxx:73
 AtlFastPhoton.cxx:74
 AtlFastPhoton.cxx:75
 AtlFastPhoton.cxx:76
 AtlFastPhoton.cxx:77
 AtlFastPhoton.cxx:78
 AtlFastPhoton.cxx:79
 AtlFastPhoton.cxx:80
 AtlFastPhoton.cxx:81
 AtlFastPhoton.cxx:82
 AtlFastPhoton.cxx:83
 AtlFastPhoton.cxx:84
 AtlFastPhoton.cxx:85
 AtlFastPhoton.cxx:86
 AtlFastPhoton.cxx:87
 AtlFastPhoton.cxx:88
 AtlFastPhoton.cxx:89
 AtlFastPhoton.cxx:90
 AtlFastPhoton.cxx:91
 AtlFastPhoton.cxx:92
 AtlFastPhoton.cxx:93
 AtlFastPhoton.cxx:94
 AtlFastPhoton.cxx:95
 AtlFastPhoton.cxx:96
 AtlFastPhoton.cxx:97
 AtlFastPhoton.cxx:98
 AtlFastPhoton.cxx:99
 AtlFastPhoton.cxx:100
 AtlFastPhoton.cxx:101
 AtlFastPhoton.cxx:102
 AtlFastPhoton.cxx:103
 AtlFastPhoton.cxx:104
 AtlFastPhoton.cxx:105
 AtlFastPhoton.cxx:106
 AtlFastPhoton.cxx:107
 AtlFastPhoton.cxx:108
 AtlFastPhoton.cxx:109
 AtlFastPhoton.cxx:110
 AtlFastPhoton.cxx:111
 AtlFastPhoton.cxx:112
 AtlFastPhoton.cxx:113
 AtlFastPhoton.cxx:114