]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliAODPhoton.cxx
move macro to macro dir
[u/mrichter/AliRoot.git] / STEER / AliAODPhoton.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
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  **************************************************************************/
15
16 /* $Id$ */
17
18 //-------------------------------------------------------------------------
19 //     AOD class for photons
20 //     Author: Yves Schutz, CERN
21 //-------------------------------------------------------------------------
22
23 #include <TLorentzVector.h>
24 #include "AliAODPhoton.h"
25
26 ClassImp(AliAODPhoton)
27
28
29 //______________________________________________________________________________
30 AliAODPhoton::AliAODPhoton() :
31     AliVParticle(),
32     fMomentum(0)
33 {
34   // constructor
35 }
36
37 AliAODPhoton::AliAODPhoton(Double_t px, Double_t py, Double_t pz, Double_t e):
38     AliVParticle(),
39     fMomentum(0)
40 {
41   // constructor
42     fMomentum = new TLorentzVector(px, py, pz, e);
43 }
44
45 AliAODPhoton::AliAODPhoton(TLorentzVector & p):
46     AliVParticle(),
47     fMomentum(0)
48 {
49   // constructor
50     fMomentum = new TLorentzVector(p);
51 }
52
53
54 //______________________________________________________________________________
55 AliAODPhoton::~AliAODPhoton() 
56 {
57   // destructor
58     delete fMomentum;
59 }
60
61 //______________________________________________________________________________
62 AliAODPhoton::AliAODPhoton(const AliAODPhoton& photon) :
63     AliVParticle(photon),
64     fMomentum(0)
65 {
66   // Copy constructor
67     fMomentum = new TLorentzVector(*photon.fMomentum);
68     
69 }
70
71 //______________________________________________________________________________
72 AliAODPhoton& AliAODPhoton::operator=(const AliAODPhoton& photon)
73 {
74   // Assignment operator
75   if(this!=&photon) {
76   }
77
78   return *this;
79 }
80
81 void AliAODPhoton::Print(Option_t* /*option*/) const 
82 {
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());
89 }