Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc
이 파일의 문서화 페이지로 가기
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 // $Id: ExN04CalorimeterHit.cc 77801 2013-11-28 13:33:20Z gcosmo $
30 //
31 
32 #include "G4Colour.hh"
33 #include "G4LogicalVolume.hh"
34 #include "G4VisAttributes.hh"
35 #include "G4VVisManager.hh"
36 #include "ExN04CalorimeterHit.hh"
37 
39 
40 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
42  : fpLogV(NULL)
43 {
44 }
45 
46 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
48  G4int z, G4int phi)
49  : fZCellID(z), fPhiCellID(phi), fpLogV(logVol)
50 {
51 }
52 
53 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
55  : G4VHit()
56 {
57  fZCellID = right.fZCellID;
58  fPhiCellID = right.fPhiCellID;
59  fedep = right.fedep;
60  fpos = right.fpos;
61  frot = right.frot;
62  fpLogV = right.fpLogV;
63 }
64 
65 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
67 {
68 }
69 
70 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
71 const ExN04CalorimeterHit& ExN04CalorimeterHit::operator=
73 {
74  fZCellID = right.fZCellID;
75  fPhiCellID = right.fPhiCellID;
76  fedep = right.fedep;
77  fpos = right.fpos;
78  frot = right.frot;
79  fpLogV = right.fpLogV;
80 
81  return *this;
82 }
83 
84 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
86 {
87  return ( (fZCellID == right.fZCellID) &&
88  (fPhiCellID == right.fPhiCellID) );
89 }
90 
91 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
93 {
95 
96  if(pVVisManager) {
97  G4Transform3D trans(frot, fpos);
98  G4VisAttributes attribs;
99  const G4VisAttributes* pVA = fpLogV-> 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(*fpLogV, attribs, trans);
106  }
107 }
108 
109 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
111 {
112 }
Definition: G4VHit.hh:48
Double_t z
G4Allocator< ExN04CalorimeterHit > ExN04CalorimeterHitAllocator
G4int operator==(const ExN04CalorimeterHit &right) const
static G4VVisManager * GetConcreteInstance()
void SetForceSolid(G4bool=true)
int G4int
Definition: G4Types.hh:78
void SetColour(const G4Colour &)
void SetForceWireframe(G4bool=true)