Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
parallel/TopC/ParN04/src/ExN04CalorimeterHit.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: ExN04CalorimeterHit.cc 66587 2012-12-21 11:06:44Z ihrivnac $
27 //
28 /// \file parallel/ParN04/src/ExN04CalorimeterHit.cc
29 /// \brief Implementation of the ExN04CalorimeterHit class
30 //
31 
32 #include "ExN04CalorimeterHit.hh"
33 #include "G4ios.hh"
34 #include "G4VVisManager.hh"
35 #include "G4Colour.hh"
36 #include "G4VisAttributes.hh"
37 #include "G4LogicalVolume.hh"
38 
40 
42 {pLogV=0;}
43 
45 : ZCellID(z), PhiCellID(phi), pLogV(logVol)
46 {;}
47 
49 {;}
50 
52  : G4VHit()
53 {
54  ZCellID = right.ZCellID;
55  PhiCellID = right.PhiCellID;
56  edep = right.edep;
57  pos = right.pos;
58  rot = right.rot;
59  pLogV = right.pLogV;
60 }
61 
63 {
64  ZCellID = right.ZCellID;
65  PhiCellID = right.PhiCellID;
66  edep = right.edep;
67  pos = right.pos;
68  rot = right.rot;
69  pLogV = right.pLogV;
70  return *this;
71 }
72 
74 {
75  return ((ZCellID==right.ZCellID)&&(PhiCellID==right.PhiCellID));
76 }
77 
79 {
81  if(pVVisManager)
82  {
83  G4Transform3D trans(rot,pos);
84  G4VisAttributes attribs;
85  const G4VisAttributes* pVA = pLogV->GetVisAttributes();
86  if(pVA) attribs = *pVA;
87  G4Colour colour(1.,0.,0.);
88  attribs.SetColour(colour);
89  attribs.SetForceWireframe(false);
90  attribs.SetForceSolid(true);
91  pVVisManager->Draw(*pLogV,attribs,trans);
92  }
93 }
94 
96 {;}
97 
98 
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
void SetColour(const G4Colour &)
void SetForceWireframe(G4bool)
G4Allocator< ExN04CalorimeterHit > ExN04CalorimeterHitAllocator
static G4VVisManager * GetConcreteInstance()
G4double z
Definition: TRTMaterials.hh:39
Definition: G4VHit.hh:48
void SetForceSolid(G4bool)
int G4int
Definition: G4Types.hh:78
G4int operator==(const ExN04CalorimeterHit &right) const
const ExN04CalorimeterHit & operator=(const ExN04CalorimeterHit &right)
const G4VisAttributes * GetVisAttributes() const