Geant4  10.03
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 //
28 //
29 //
30 // $Id: Par01CalorimeterHit.hh 100936 2016-11-03 11:07:41Z gcosmo $
31 //
32 
33 #ifndef Par01CalorimeterHit_h
34 #define Par01CalorimeterHit_h 1
35 
36 #include "G4VHit.hh"
37 #include "G4THitsCollection.hh"
38 #include "G4Allocator.hh"
39 #include "G4ThreeVector.hh"
40 #include "G4LogicalVolume.hh"
41 #include "G4Transform3D.hh"
42 #include "G4RotationMatrix.hh"
43 
45 {
46 public:
47 
53  G4int operator==(const Par01CalorimeterHit &right) const;
54 
55 
56  inline void *operator new(size_t);
57  inline void operator delete(void *aHit);
58  void *operator new(size_t,void*p){return p;}
59 #ifndef G4NOT_ISO_DELETES
60  void operator delete(void *,void*){}
61 #endif
62 
63  // methods from base class
64  virtual void Draw();
65  virtual void Print();
66 
67 private:
72 
73 public:
74  inline void SetEdep(G4double de)
75  { fEdep = de; };
76  inline void AddEdep(G4double de)
77  { fEdep += de; };
78  inline G4double GetEdep()
79  { return fEdep; };
80  inline void SetPos(G4ThreeVector xyz)
81  { fPosition = xyz; };
83  { return fPosition; };
84  inline void SetRot(G4RotationMatrix rmat)
85  { fRot = rmat; };
87  { return fRot; };
88  inline const G4LogicalVolume * GetLogV()
89  { return fLogV; };
90 
91 };
92 
94 
96 
97 inline void* Par01CalorimeterHit::operator new(size_t)
98 {
101  return (void *) Par01CalorimeterHitAllocator->MallocSingle();
102 }
103 
104 inline void Par01CalorimeterHit::operator delete(void *aHit)
105 {
107 }
108 
109 #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)