]>
Commit | Line | Data |
---|---|---|
2f4cac02 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, 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 notifce * | |
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: AliPhJPhoton.cxx,v 1.4 2008/05/08 13:44:45 djkim Exp $ | |
17 | ||
18 | //////////////////////////////////////////////////// | |
19 | // | |
20 | // \file AliPhJPhoton.cxx | |
21 | // \brief | |
22 | // \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla) | |
23 | // \email: djkim@jyu.fi | |
24 | // \version $Revision: 1.4 $ | |
25 | // \date $Date: 2008/05/08 13:44:45 $ | |
26 | // | |
27 | // Class encapsulation photon information from aliroot | |
28 | //////////////////////////////////////////////////// | |
29 | ||
30 | #include "AliPhJBaseTrack.h" | |
31 | #include "AliPhJPhoton.h" | |
32 | ||
33 | ClassImp(AliPhJPhoton) | |
34 | ||
35 | //______________________________________________________________________________ | |
36 | AliPhJPhoton::AliPhJPhoton() : | |
37 | AliPhJBaseTrack(), | |
38 | fChi2(-999), | |
39 | fTof(-999), | |
40 | fX(-999), | |
41 | fY(-999), | |
42 | fZ(-999), | |
43 | fProbPhot(-999) | |
44 | { | |
45 | // default constructor | |
46 | } | |
47 | ||
48 | //_____________________________________________________________________________ | |
49 | AliPhJPhoton::AliPhJPhoton(const AliPhJPhoton& a) : | |
50 | AliPhJBaseTrack(a), | |
51 | fChi2(a.fChi2), | |
52 | fTof(a.fTof), | |
53 | fX(a.fX), | |
54 | fY(a.fY), | |
55 | fZ(a.fZ), | |
56 | fProbPhot(a.fProbPhot) | |
57 | { | |
58 | //copy constructor | |
59 | } | |
60 | ||
61 | ||
62 | //_____________________________________________________________________________ | |
63 | AliPhJPhoton& AliPhJPhoton::operator=(const AliPhJPhoton& photon){ | |
64 | //operator= | |
65 | if(this != &photon){ | |
66 | AliPhJBaseTrack::operator=(photon); | |
67 | fChi2 = photon.fChi2; | |
68 | fTof = photon.fTof; | |
69 | fX = photon.fX; | |
70 | fY = photon.fY; | |
71 | fZ = photon.fZ; | |
72 | fProbPhot = photon.fProbPhot; | |
73 | } | |
74 | ||
75 | return *this; | |
76 | } |