Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Par01CalorimeterHit.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 //
28 //
29 //
30 // $Id: Par01CalorimeterHit.cc 101151 2016-11-08 08:06:16Z gcosmo $
31 //
32 
33 #include "Par01CalorimeterHit.hh"
34 
35 #include "G4VVisManager.hh"
36 #include "G4Colour.hh"
37 #include "G4VisAttributes.hh"
38 #include "G4LogicalVolume.hh"
39 #include "G4ios.hh"
40 
42 
43 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
44 
46 {
47  fLogV = nullptr;
48 }
49 
50 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
51 
53  :fLogV(logVol)
54 {;}
55 
56 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
57 
59 {;}
60 
61 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
62 
64  : G4VHit()
65 {
66  fEdep = right.fEdep;
67  fPosition = right.fPosition;
68  fRot = right.fRot;
69  fLogV = right.fLogV;
70 }
71 
72 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
73 
75 {
76  fEdep = right.fEdep;
77  fPosition = right.fPosition;
78  fRot = right.fRot;
79  fLogV = right.fLogV;
80  return *this;
81 }
82 
83 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
84 
86 {
87  return (this==&right) ? 1 : 0;
88 }
89 
90 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
91 
93 {
95  if(pVVisManager)
96  {
97  G4Transform3D trans(fRot,fPosition);
98  G4VisAttributes attribs;
99  const G4VisAttributes* pVA = fLogV->GetVisAttributes();
100  if(pVA) attribs = *pVA;
101  G4Colour colour(1.,0.,0.);
102  attribs.SetColour(colour);
103  attribs.SetForceWireframe(false);
104  attribs.SetForceSolid(true);
105  pVVisManager->Draw(*fLogV,attribs,trans);
106  }
107 }
108 
109 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
110 
112 {
113 }
114 
115 
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
void SetColour(const G4Colour &)
G4ThreadLocal G4Allocator< Par01CalorimeterHit > * Par01CalorimeterHitAllocator
static G4VVisManager * GetConcreteInstance()
Definition of the Par01CalorimeterHit class.
Definition: G4VHit.hh:48
#define G4ThreadLocal
Definition: tls.hh:89
int G4int
Definition: G4Types.hh:78
void SetForceSolid(G4bool=true)
const Par01CalorimeterHit & operator=(const Par01CalorimeterHit &right)
const G4VisAttributes * GetVisAttributes() const
G4int operator==(const Par01CalorimeterHit &right) const
void SetForceWireframe(G4bool=true)