GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Hits.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2004 by Olivier Stezowski *
3  * stezow(AT)ipnl.in2p3.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 
23 #include "Hits.h"
24 
25 using namespace ADF;
26 
27 void Hit::SetHit(const Hit &ahit)
28 {
29  // position
30  SetXYZ(ahit.GetX(),ahit.GetY(),ahit.GetZ());
31  // error on position
32  SetDXYZ(ahit.GetDX(),ahit.GetDY(),ahit.GetDZ());
33 
34  // energy and time
35  SetE(ahit.GetE()); SetDE(ahit.GetDE());
36  SetT(ahit.GetT()); SetDT(ahit.GetDT());
37 
38  // status and ID
39  SetStatus(ahit.GetStatus());
40  SetID(ahit.GetID());
41 }
42 
43 
44 
45 
46 
47 
virtual Double_t GetY() const
Definition: Hits.h:57
virtual Double_t GetDY() const
Definition: Hits.h:86
virtual Double_t GetE() const
Definition: Hits.h:67
virtual void SetE(Double_t)
Definition: Hits.h:69
virtual void SetStatus(UShort_t)
Definition: Hits.h:108
header file for Hits.cpp
virtual Double_t GetDT() const
Definition: Hits.h:101
virtual void SetDE(Double_t)
Definition: Hits.h:98
virtual Int_t GetID(Int_t=0) const
Definition: Hits.h:111
virtual Double_t GetDZ() const
Definition: Hits.h:88
virtual void SetT(Double_t)
Definition: Hits.h:74
virtual Double_t GetT() const
Definition: Hits.h:72
virtual void SetDXYZ(Double_t, Double_t, Double_t)
Definition: Hits.h:91
Base class for a Hit.
Definition: Hits.h:35
virtual UShort_t GetStatus() const
Definition: Hits.h:106
virtual void SetID(Int_t, Int_t=0)
Definition: Hits.h:113
virtual Double_t GetDX() const
Definition: Hits.h:84
virtual Double_t GetX() const
Definition: Hits.h:55
virtual void SetDT(Double_t)
Definition: Hits.h:103
virtual Double_t GetZ() const
Definition: Hits.h:59
virtual Double_t GetDE() const
Definition: Hits.h:96
virtual void SetHit(const Hit &)
to fully copy a Hit into another one. In principle, no need to overwritte it as soon as the interface...
Definition: Hits.cpp:27
virtual void SetXYZ(Double_t, Double_t, Double_t)
Definition: Hits.h:62