Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
examples
extended
exoticphysics
phonon
include
XPhononTrackInformation.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
// $Id$
30
//
31
#ifndef XPhononTrackInformation_h
32
#define XPhononTrackInformation_h 1
33
34
#include "
globals.hh
"
35
#include "
G4ThreeVector.hh
"
36
#include "
G4ParticleDefinition.hh
"
37
#include "
G4Track.hh
"
38
#include "
G4Allocator.hh
"
39
#include "
G4VUserTrackInformation.hh
"
40
41
class
XPhononTrackInformation
:
public
G4VUserTrackInformation
42
{
43
44
public
:
45
XPhononTrackInformation
();
46
XPhononTrackInformation
(
const
G4Track
* aTrack);
47
XPhononTrackInformation
(
const
XPhononTrackInformation
* aTrackInfo);
48
XPhononTrackInformation
(
G4ThreeVector
kNew);
49
virtual
~XPhononTrackInformation
();
50
51
inline
void
*
operator
new
(size_t);
52
inline
void
operator
delete
(
void
*aTrackInfo);
53
inline
int
operator ==
(
const
XPhononTrackInformation
&
right
)
const
{
return
(
this
==&right);}
54
55
XPhononTrackInformation
&
operator =
(
const
XPhononTrackInformation
&
right
);
56
57
//void SetSourceTrackInformation(const G4Track* aTrack);
58
void
Print
()
const
;
59
60
private
:
61
G4ThreeVector
fK;
62
63
public
:
64
inline
G4ThreeVector
GetK
()
const
{
return
fK;}
65
inline
void
SetK
(
G4ThreeVector
kNew){fK=
G4ThreeVector
(kNew);}
66
67
};
68
69
extern
G4Allocator<XPhononTrackInformation>
aTrackInformationAllocator
;
70
71
inline
void
* XPhononTrackInformation::operator
new
(size_t)
72
{
void
* aTrackInfo;
73
aTrackInfo = (
void
*)aTrackInformationAllocator.
MallocSingle
();
74
return
aTrackInfo;
75
76
}
77
78
inline
void
XPhononTrackInformation::operator
delete
(
void
*aTrackInfo)
79
{ aTrackInformationAllocator.
FreeSingle
((
XPhononTrackInformation
*)aTrackInfo);}
80
81
#endif
Generated on Sat May 25 2013 14:32:24 for Geant4 by
1.8.4