1 /**************************************************************************
2 * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 //-------------------------------------------------------------------------
19 // AOD class for photons
20 // Author: Yves Schutz, CERN
21 //-------------------------------------------------------------------------
23 #include <TLorentzVector.h>
24 #include "AliAODPhoton.h"
26 ClassImp(AliAODPhoton)
29 //______________________________________________________________________________
30 AliAODPhoton::AliAODPhoton() :
37 AliAODPhoton::AliAODPhoton(Double_t px, Double_t py, Double_t pz, Double_t e):
42 fMomentum = new TLorentzVector(px, py, pz, e);
45 AliAODPhoton::AliAODPhoton(TLorentzVector & p):
50 fMomentum = new TLorentzVector(p);
54 //______________________________________________________________________________
55 AliAODPhoton::~AliAODPhoton()
61 //______________________________________________________________________________
62 AliAODPhoton::AliAODPhoton(const AliAODPhoton& photon) :
67 fMomentum = new TLorentzVector(*photon.fMomentum);
71 //______________________________________________________________________________
72 AliAODPhoton& AliAODPhoton::operator=(const AliAODPhoton& photon)
74 // Assignment operator
81 void AliAODPhoton::Print(Option_t* /*option*/) const
83 // Print information of all data members
84 printf("Photon 4-vector:\n");
85 printf(" E = %13.3f\n", E() );
86 printf(" Px = %13.3f\n", Px());
87 printf(" Py = %13.3f\n", Py());
88 printf(" Pz = %13.3f\n", Pz());