Geant4  10.00.p01
ExGflashHit.cc
Go to the documentation of this file.
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: ExGflashHit.cc 72372 2013-07-16 14:30:39Z gcosmo $
27 //
30 //
31 
32 #include "ExGflashHit.hh"
33 
34 #include "G4VVisManager.hh"
35 #include "G4Colour.hh"
36 #include "G4VisAttributes.hh"
37 #include "G4LogicalVolume.hh"
38 #include "G4ios.hh"
39 
41 
43 {fLogV=NULL;}
44 
46 :fLogV(logVol)
47 {;}
48 
50 {;}
51 
53 :G4VHit()
54 //@@@ ExGflashHit:Is it right with the init?
55 {
56  fEdep = right.fEdep;
57  fPos = right.fPos;
58  fStart =right.fStart;
59  fRot = right.fRot;
60  fLogV = right.fLogV;
62 }
63 
65 {
66  fEdep = right.fEdep;
67  fStart =right.fStart;
68  fPos = right.fPos;
69  fRot = right.fRot;
70  fLogV = right.fLogV;
73  return *this;
74 }
75 
77 {
78 // @@@@ return 0;
79  if ((fPos==right.fPos) && (fEdep == right.fEdep)) return true;
80  else return false;
81 
82 }
83 
85 {
87  if(pVVisManager)
88  {
89  G4Transform3D trans(fRot,fPos);
90  G4VisAttributes attribs;
91  const G4VisAttributes* pVA = fLogV->GetVisAttributes();
92  if(pVA) attribs = *pVA;
93  G4Colour colour(1.,0.,0.);
94  attribs.SetColour(colour);
95  attribs.SetForceWireframe(false);
96  attribs.SetForceSolid(true);
97  pVVisManager->Draw(*fLogV,attribs,trans);
98  }
99 }
100 
102 {
103 }
104 
105 
106 
107 
108 
109 
110 
111 
112 
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
void SetColour(const G4Colour &)
void SetForceWireframe(G4bool)
int operator==(const ExGflashHit &right) const
Definition: ExGflashHit.cc:76
static G4VVisManager * GetConcreteInstance()
void Draw()
Definition: ExGflashHit.cc:84
Definition: G4VHit.hh:48
G4ThreeVector fPos
Definition: ExGflashHit.hh:66
void SetForceSolid(G4bool)
#define G4ThreadLocal
Definition: tls.hh:52
const G4LogicalVolume * fLogV
Definition: ExGflashHit.hh:70
G4ThreadLocal G4Allocator< ExGflashHit > * ExGflashHitAllocator
Definition: ExGflashHit.cc:40
const G4VisAttributes * GetVisAttributes() const
HepGeom::Transform3D G4Transform3D
Definition of the ExGflashHit class.
void Print()
Definition: ExGflashHit.cc:101
G4int fCrystalNumber
Definition: ExGflashHit.hh:67
const ExGflashHit & operator=(const ExGflashHit &right)
Definition: ExGflashHit.cc:64
G4double fEdep
Definition: ExGflashHit.hh:65
G4ThreeVector fStart
Definition: ExGflashHit.hh:68
G4RotationMatrix fRot
Definition: ExGflashHit.hh:69