source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/common/root/src/EPhoton.cc @ 117

Last change on this file since 117 was 117, checked in by moretto, 11 years ago

ESAF version compilable on mac OS

File size: 2.2 KB
Line 
1// ESAF : Euso Simulation and Analysis Framework
2// $Id: EPhoton.cc 2918 2011-06-10 22:22:31Z mabl $
3// Author: A.Thea
4
5/*****************************************************************************
6 * ESAF: Euso Simulation and Analysis Framework                              *
7 *                                                                           *
8 *  Id: EPhoton                                                              *
9 *  Package: SimuEvent                                                       *
10 *  Coordinator: Alessandro.Thea                                             *
11 *                                                                           *
12 *****************************************************************************/
13
14#include "EPhoton.hh"
15#include "Etypes.hh"
16
17ClassImp(EPhoton)
18
19//_____________________________________________________________________________
20EPhoton::EPhoton(): TObject() {
21    //
22    // Constructor
23    //
24
25    Clear();
26}
27
28//_____________________________________________________________________________
29EPhoton::~EPhoton() {
30    //
31    // Destructor
32    //
33}
34
35//_____________________________________________________________________________
36EPhoton::EPhoton(const EPhoton& other) : TObject() {
37    //
38    // Copy ctor
39    //
40   
41    other.Copy( *this );
42}
43
44//_____________________________________________________________________________
45void EPhoton::Copy( TObject& other) const {
46    //
47    // Copy
48    //
49   
50    ((EPhoton&)other).fType           = fType;
51    ((EPhoton&)other).fTheta          = fTheta;           
52    ((EPhoton&)other).fPhi            = fPhi;           
53    ((EPhoton&)other).fLambda         = fLambda;       
54    ((EPhoton&)other).fTime           = fTime;         
55
56    ((EPhoton&)other).fPosX           = fPosX;     
57    ((EPhoton&)other).fPosY           = fPosY;     
58    ((EPhoton&)other).fPosZ           = fPosZ;
59}
60
61//_____________________________________________________________________________
62void EPhoton::Clear( Option_t* opt) {
63
64    fType           = 0; 
65    fTheta          = -100; 
66    fPhi            = -100;
67    fLambda         = -100;
68    fTime           = -100;
69    fPosX           = -kHuge;
70    fPosY           = -kHuge;
71    fPosZ           = -kHuge;
72
73}
74
75
Note: See TracBrowser for help on using the repository browser.