source: trunk/examples/advanced/medical_linac/src/MedLinacPhantomHit.cc

Last change on this file was 807, checked in by garnier, 16 years ago

update

File size: 3.4 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// $Id: MedLinacPhantomHit.cc,v 1.5 2006/06/29 16:04:31 gunter Exp $
27//
28//
29// Code developed by: M. Piergentili
30
31//
32#include "MedLinacPhantomHit.hh"
33#include "G4ios.hh"
34#include "G4VVisManager.hh"
35#include "G4Colour.hh"
36#include "G4VisAttributes.hh"
37#include "G4LogicalVolume.hh"
38
39G4Allocator<MedLinacPhantomHit> MedLinacPhantomHitAllocator;
40
41MedLinacPhantomHit::MedLinacPhantomHit(G4LogicalVolume* logVol,G4int XID,G4int YID,G4int ZID)
42  :logicalVolume(logVol),xHitPosition(XID),zHitPosition(ZID),yHitPosition(YID)
43{
44 energyDeposit = 0;
45
46 //G4cout << "Hit generated1" << G4endl;
47
48}
49
50MedLinacPhantomHit::~MedLinacPhantomHit()
51{
52}
53
54MedLinacPhantomHit::MedLinacPhantomHit(const MedLinacPhantomHit &right)
55  : G4VHit()
56{
57 xHitPosition = right.xHitPosition;
58 zHitPosition = right.zHitPosition;
59 yHitPosition = right.yHitPosition;
60 energyDeposit = right.energyDeposit;
61 //G4cout << "=====energyDeposit in ImrtPhantomHit1 e'" << energyDeposit << G4endl;
62 hitPosition = right.hitPosition;
63 rotation = right.rotation;
64 logicalVolume = right.logicalVolume;
65
66 //G4cout << "Hit generated2" << G4endl;
67
68}
69
70const MedLinacPhantomHit& MedLinacPhantomHit::operator=(const MedLinacPhantomHit &right)
71{
72 xHitPosition = right.xHitPosition;
73 zHitPosition = right.zHitPosition;
74 yHitPosition = right.yHitPosition;
75 energyDeposit = right.energyDeposit;
76 hitPosition = right.hitPosition;
77 rotation = right.rotation;
78 logicalVolume = right.logicalVolume;
79 //G4cout << " EnergyDep in PhantomHit2 e' "<<" " << energyDeposit  <<G4endl;
80 return *this;
81}
82
83int MedLinacPhantomHit::operator==(const MedLinacPhantomHit &right) const
84{
85 return((xHitPosition==right.xHitPosition)&&(zHitPosition==right.zHitPosition)&&(yHitPosition==right.yHitPosition));
86}
87
88void MedLinacPhantomHit::Draw()
89{
90}
91
92void MedLinacPhantomHit::Print()
93{
94}
Note: See TracBrowser for help on using the repository browser.