ROOT logo
/**************************************************************************
 * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
 *                                                                        *
 * Author: The ALICE Off-line Project.                                    *
 * Contributors are mentioned in the code where appropriate.              *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/

/* $Id$ */

//-------------------------------------------------------------------------
//     AOD class for photons
//     Author: Yves Schutz, CERN
//-------------------------------------------------------------------------

#include <TLorentzVector.h>
#include "AliAODPhoton.h"

ClassImp(AliAODPhoton)


//______________________________________________________________________________
AliAODPhoton::AliAODPhoton() :
    AliVParticle(),
    fMomentum(0)
{
  // constructor
}

AliAODPhoton::AliAODPhoton(Double_t px, Double_t py, Double_t pz, Double_t e):
    AliVParticle(),
    fMomentum(0)
{
  // constructor
    fMomentum = new TLorentzVector(px, py, pz, e);
}

AliAODPhoton::AliAODPhoton(TLorentzVector & p):
    AliVParticle(),
    fMomentum(0)
{
  // constructor
    fMomentum = new TLorentzVector(p);
}


//______________________________________________________________________________
AliAODPhoton::~AliAODPhoton() 
{
  // destructor
    delete fMomentum;
}

//______________________________________________________________________________
AliAODPhoton::AliAODPhoton(const AliAODPhoton& photon) :
    AliVParticle(photon),
    fMomentum(0)
{
  // Copy constructor
    fMomentum = new TLorentzVector(*photon.fMomentum);
    
}

//______________________________________________________________________________
AliAODPhoton& AliAODPhoton::operator=(const AliAODPhoton& photon)
{
  // Assignment operator
  if(this!=&photon) {
  }

  return *this;
}

void AliAODPhoton::Print(Option_t* /*option*/) const 
{
  // Print information of all data members
  printf("Photon 4-vector:\n");
  printf("     E  = %13.3f\n", E() );
  printf("     Px = %13.3f\n", Px());
  printf("     Py = %13.3f\n", Py());
  printf("     Pz = %13.3f\n", Pz());
}
 AliAODPhoton.cxx:1
 AliAODPhoton.cxx:2
 AliAODPhoton.cxx:3
 AliAODPhoton.cxx:4
 AliAODPhoton.cxx:5
 AliAODPhoton.cxx:6
 AliAODPhoton.cxx:7
 AliAODPhoton.cxx:8
 AliAODPhoton.cxx:9
 AliAODPhoton.cxx:10
 AliAODPhoton.cxx:11
 AliAODPhoton.cxx:12
 AliAODPhoton.cxx:13
 AliAODPhoton.cxx:14
 AliAODPhoton.cxx:15
 AliAODPhoton.cxx:16
 AliAODPhoton.cxx:17
 AliAODPhoton.cxx:18
 AliAODPhoton.cxx:19
 AliAODPhoton.cxx:20
 AliAODPhoton.cxx:21
 AliAODPhoton.cxx:22
 AliAODPhoton.cxx:23
 AliAODPhoton.cxx:24
 AliAODPhoton.cxx:25
 AliAODPhoton.cxx:26
 AliAODPhoton.cxx:27
 AliAODPhoton.cxx:28
 AliAODPhoton.cxx:29
 AliAODPhoton.cxx:30
 AliAODPhoton.cxx:31
 AliAODPhoton.cxx:32
 AliAODPhoton.cxx:33
 AliAODPhoton.cxx:34
 AliAODPhoton.cxx:35
 AliAODPhoton.cxx:36
 AliAODPhoton.cxx:37
 AliAODPhoton.cxx:38
 AliAODPhoton.cxx:39
 AliAODPhoton.cxx:40
 AliAODPhoton.cxx:41
 AliAODPhoton.cxx:42
 AliAODPhoton.cxx:43
 AliAODPhoton.cxx:44
 AliAODPhoton.cxx:45
 AliAODPhoton.cxx:46
 AliAODPhoton.cxx:47
 AliAODPhoton.cxx:48
 AliAODPhoton.cxx:49
 AliAODPhoton.cxx:50
 AliAODPhoton.cxx:51
 AliAODPhoton.cxx:52
 AliAODPhoton.cxx:53
 AliAODPhoton.cxx:54
 AliAODPhoton.cxx:55
 AliAODPhoton.cxx:56
 AliAODPhoton.cxx:57
 AliAODPhoton.cxx:58
 AliAODPhoton.cxx:59
 AliAODPhoton.cxx:60
 AliAODPhoton.cxx:61
 AliAODPhoton.cxx:62
 AliAODPhoton.cxx:63
 AliAODPhoton.cxx:64
 AliAODPhoton.cxx:65
 AliAODPhoton.cxx:66
 AliAODPhoton.cxx:67
 AliAODPhoton.cxx:68
 AliAODPhoton.cxx:69
 AliAODPhoton.cxx:70
 AliAODPhoton.cxx:71
 AliAODPhoton.cxx:72
 AliAODPhoton.cxx:73
 AliAODPhoton.cxx:74
 AliAODPhoton.cxx:75
 AliAODPhoton.cxx:76
 AliAODPhoton.cxx:77
 AliAODPhoton.cxx:78
 AliAODPhoton.cxx:79
 AliAODPhoton.cxx:80
 AliAODPhoton.cxx:81
 AliAODPhoton.cxx:82
 AliAODPhoton.cxx:83
 AliAODPhoton.cxx:84
 AliAODPhoton.cxx:85
 AliAODPhoton.cxx:86
 AliAODPhoton.cxx:87
 AliAODPhoton.cxx:88
 AliAODPhoton.cxx:89