Geant4  10.02
Par01CalorimeterHit.hh
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 //
27 // $Id: Par01CalorimeterHit.hh 90093 2015-05-13 11:59:54Z gcosmo $
28 //
29 
30 #ifndef Par01CalorimeterHit_h
31 #define Par01CalorimeterHit_h 1
32 
33 #include "G4VHit.hh"
34 #include "G4THitsCollection.hh"
35 #include "G4Allocator.hh"
36 #include "G4ThreeVector.hh"
37 #include "G4LogicalVolume.hh"
38 #include "G4Transform3D.hh"
39 #include "G4RotationMatrix.hh"
40 
42 {
43 public:
44 
50  G4int operator==(const Par01CalorimeterHit &right) const;
51 
52 
53  inline void *operator new(size_t);
54  inline void operator delete(void *aHit);
55  void *operator new(size_t,void*p){return p;}
56 #ifndef G4NOT_ISO_DELETES
57  void operator delete(void *,void*){}
58 #endif
59 
60  // methods from base class
61  virtual void Draw();
62  virtual void Print();
63 
64 private:
69 
70 public:
71  inline void SetEdep(G4double de)
72  { fEdep = de; };
73  inline void AddEdep(G4double de)
74  { fEdep += de; };
75  inline G4double GetEdep()
76  { return fEdep; };
77  inline void SetPos(G4ThreeVector xyz)
78  { fPosition = xyz; };
80  { return fPosition; };
81  inline void SetRot(G4RotationMatrix rmat)
82  { fRot = rmat; };
84  { return fRot; };
85  inline const G4LogicalVolume * GetLogV()
86  { return fLogV; };
87 
88 };
89 
91 
93 
94 inline void* Par01CalorimeterHit::operator new(size_t)
95 {
98  return (void *) Par01CalorimeterHitAllocator->MallocSingle();
99 }
100 
101 inline void Par01CalorimeterHit::operator delete(void *aHit)
102 {
104 }
105 
106 #endif
const G4LogicalVolume * GetLogV()
G4ThreadLocal G4Allocator< Par01CalorimeterHit > * Par01CalorimeterHitAllocator
CLHEP::Hep3Vector G4ThreeVector
CLHEP::HepRotation G4RotationMatrix
G4THitsCollection< Par01CalorimeterHit > Par01CalorimeterHitsCollection
void SetEdep(G4double de)
Definition: G4VHit.hh:48
#define G4ThreadLocal
Definition: tls.hh:89
int G4int
Definition: G4Types.hh:78
void SetPos(G4ThreeVector xyz)
const Par01CalorimeterHit & operator=(const Par01CalorimeterHit &right)
const G4LogicalVolume * fLogV
G4RotationMatrix GetRot()
G4int operator==(const Par01CalorimeterHit &right) const
void SetRot(G4RotationMatrix rmat)
double G4double
Definition: G4Types.hh:76
void AddEdep(G4double de)