source: trunk/source/digits_hits/utils/test/test2/src/Test2PhantomHit.cc@ 1354

Last change on this file since 1354 was 1350, checked in by garnier, 15 years ago

update to last version 4.9.4

File size: 3.3 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26
27#include "Test2PhantomHit.hh"
28#include "G4UIcommand.hh"
29#include "G4UnitsTable.hh"
30
31
32G4Allocator<Test2PhantomHit> Test2PhantomHitAllocator;
33
34Test2PhantomHit::Test2PhantomHit() {
35fSegment[0]=1;
36fSegment[1]=1;
37fSegment[2]=1;
38}
39
40Test2PhantomHit::Test2PhantomHit(G4int & x, G4int & y, G4int & z,
41 G4int segment[3])
42 : fXCellID(x), fYCellID(y), fZCellID(z){
43 fSegment[0]=segment[0];
44 fSegment[1]=segment[1];
45 fSegment[2]=segment[2];
46
47 fEdep = 0.0;
48 fDose = 0.0;
49 fTrackLength = 0.0;
50 flatSurfCurr=0.0;
51 passageCellCurr = 0.0;
52 flatSurfaceFlux = 0.0;
53 cellFlux = 0.0;
54 passageCellFlux = 0.0;
55 noOfSecondary = 0.0;
56 cellCharge = 0.0;
57
58}
59
60Test2PhantomHit::~Test2PhantomHit() {
61 ;
62}
63
64Test2PhantomHit::Test2PhantomHit(const Test2PhantomHit & right)
65 : G4VHit() {
66
67 fXCellID = right.fXCellID;
68 fYCellID = right.fYCellID;
69 fZCellID = right.fZCellID;
70 fSegment[0] = right.fSegment[0];
71 fSegment[1] = right.fSegment[1];
72 fSegment[2] = right.fSegment[2];
73 fEdep = right.fEdep;
74 fTrackLength = right.fTrackLength;
75 fParticleName = right.fParticleName;
76}
77
78const Test2PhantomHit & Test2PhantomHit::operator=(const Test2PhantomHit & right) {
79
80 fXCellID = right.fXCellID;
81 fYCellID = right.fYCellID;
82 fZCellID = right.fZCellID;
83 fSegment[0] = right.fSegment[0];
84 fSegment[1] = right.fSegment[1];
85 fSegment[2] = right.fSegment[2];
86 fEdep = right.fEdep;
87 fTrackLength = right.fTrackLength;
88 fParticleName = right.fParticleName;
89
90 return *this;
91}
92
93
94G4int Test2PhantomHit::operator==(const Test2PhantomHit &right) const {
95
96 return ((fXCellID == right.fXCellID) &&
97 (fYCellID == right.fYCellID) &&
98 (fZCellID == right.fZCellID));
99}
100
101void Test2PhantomHit::Print() {
102 ;
103}
104
105
Note: See TracBrowser for help on using the repository browser.