Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
SimG4Core
Notification
interface
TrackInformation.h
Go to the documentation of this file.
1
#ifndef SimG4Core_TrackInformation_H
2
#define SimG4Core_TrackInformation_H
3
4
#include "G4VUserTrackInformation.hh"
5
6
#include "G4Allocator.hh"
7
8
class
TrackInformation
:
public
G4VUserTrackInformation {
9
10
public
:
11
virtual
~TrackInformation
() {}
12
inline
void
*
operator
new
(size_t);
13
inline
void
operator
delete
(
void
*
TrackInformation
);
14
15
bool
storeTrack
()
const
{
return
storeTrack_
; }
17
void
storeTrack
(
bool
v
)
18
{
if
(v)
storeTrack_
=
v
;
if
(v ==
true
)
putInHistory
(); }
19
20
bool
isPrimary
()
const
{
return
isPrimary_
; }
21
void
isPrimary
(
bool
v
) {
isPrimary_
=
v
; }
22
23
bool
hasHits
()
const
{
return
hasHits_
; }
24
void
hasHits
(
bool
v
) {
hasHits_
=
v
; }
25
26
bool
isGeneratedSecondary
()
const
{
return
isGeneratedSecondary_
; }
27
void
isGeneratedSecondary
(
bool
v
) {
isGeneratedSecondary_
=
v
; }
28
29
bool
isInHistory
()
const
{
return
isInHistory_
; }
30
void
putInHistory
() {
isInHistory_
=
true
; }
31
32
bool
isAncestor
()
const
{
return
flagAncestor_
; }
33
void
setAncestor
() {
flagAncestor_
=
true
; }
34
35
// Calo section
36
int
getIDonCaloSurface
()
const
{
return
idOnCaloSurface_
; }
37
void
setIDonCaloSurface
(
int
id
,
int
ical,
int
last
,
int
pdgID,
double
p
) {
38
idOnCaloSurface_
=
id
;
idCaloVolume_
= ical;
idLastVolume_
=
last
;
39
caloSurfaceParticlePID_
= pdgID;
caloSurfaceParticleP_
=
p
;}
40
int
getIDCaloVolume
()
const
{
return
idCaloVolume_
; }
41
int
getIDLastVolume
()
const
{
return
idLastVolume_
; }
42
bool
caloIDChecked
()
const
{
return
caloIDChecked_
; }
43
void
setCaloIDChecked
(
bool
f
) {
caloIDChecked_
=
f
; }
44
int
caloSurfaceParticlePID
()
const
{
return
caloSurfaceParticlePID_
; }
45
void
setCaloSurfaceParticlePID
(
int
id
) {
caloSurfaceParticlePID_
=
id
; }
46
double
caloSurfaceParticleP
()
const
{
return
caloSurfaceParticleP_
; }
47
void
setCaloSurfaceParticleP
(
double
p
) {
caloSurfaceParticleP_
=
p
; }
48
49
// Generator information
50
int
genParticlePID
()
const
{
return
genParticlePID_
; }
51
void
setGenParticlePID
(
int
id
) {
genParticlePID_
=
id
; }
52
double
genParticleP
()
const
{
return
genParticleP_
; }
53
void
setGenParticleP
(
double
p
) {
genParticleP_
=
p
; }
54
55
virtual
void
Print
()
const
;
56
private
:
57
bool
storeTrack_
;
58
bool
isPrimary_
;
59
bool
hasHits_
;
60
bool
isGeneratedSecondary_
;
61
bool
isInHistory_
;
62
bool
flagAncestor_
;
63
int
idOnCaloSurface_
;
64
int
idCaloVolume_
;
65
int
idLastVolume_
;
66
bool
caloIDChecked_
;
67
int
genParticlePID_
,
caloSurfaceParticlePID_
;
68
double
genParticleP_
,
caloSurfaceParticleP_
;
69
70
// Restrict construction to friends
71
TrackInformation
() :G4VUserTrackInformation(),
storeTrack_
(
false
),
isPrimary_
(
false
),
72
hasHits_
(
false
),
isGeneratedSecondary_
(
false
),
isInHistory_
(
false
),
73
flagAncestor_
(
false
),
idOnCaloSurface_
(0),
idCaloVolume_
(-1),
74
idLastVolume_
(-1),
caloIDChecked_
(
false
),
genParticlePID_
(-1),
75
caloSurfaceParticlePID_
(0),
genParticleP_
(0),
caloSurfaceParticleP_
(0) {}
76
friend
class
NewTrackAction
;
77
};
78
79
extern
G4Allocator<TrackInformation>
TrackInformationAllocator
;
80
81
inline
void
*
TrackInformation::operator
new
(size_t)
82
{
83
void
* trkInfo;
84
trkInfo = (
void
*)
TrackInformationAllocator
.MallocSingle();
85
return
trkInfo;
86
}
87
88
inline
void
TrackInformation::operator
delete
(
void
* trkInfo)
89
{
TrackInformationAllocator
.FreeSingle((
TrackInformation
*) trkInfo); }
90
91
#endif
TrackInformation::isGeneratedSecondary_
bool isGeneratedSecondary_
Definition:
TrackInformation.h:60
TrackInformation::genParticlePID_
int genParticlePID_
Definition:
TrackInformation.h:67
TrackInformation::storeTrack
bool storeTrack() const
Definition:
TrackInformation.h:15
TrackInformation::getIDonCaloSurface
int getIDonCaloSurface() const
Definition:
TrackInformation.h:36
TrackInformation::isPrimary_
bool isPrimary_
Definition:
TrackInformation.h:58
TrackInformation::~TrackInformation
virtual ~TrackInformation()
Definition:
TrackInformation.h:11
cppFunctionSkipper.operator
string operator
Definition:
cppFunctionSkipper.py:10
funct::false
false
Definition:
Factorize.h:34
TrackInformation::storeTrack
void storeTrack(bool v)
can only be set to true, cannot be reset to false!
Definition:
TrackInformation.h:17
TrackInformation::isInHistory_
bool isInHistory_
Definition:
TrackInformation.h:61
TrackInformation::genParticleP
double genParticleP() const
Definition:
TrackInformation.h:52
TrackInformation::setGenParticlePID
void setGenParticlePID(int id)
Definition:
TrackInformation.h:51
TrackInformation::hasHits
void hasHits(bool v)
Definition:
TrackInformation.h:24
TrackInformation::isGeneratedSecondary
void isGeneratedSecondary(bool v)
Definition:
TrackInformation.h:27
TrackInformation::hasHits
bool hasHits() const
Definition:
TrackInformation.h:23
TrackInformation::getIDCaloVolume
int getIDCaloVolume() const
Definition:
TrackInformation.h:40
errorMatrix2Lands_multiChannel.id
tuple id
Definition:
errorMatrix2Lands_multiChannel.py:151
TrackInformation::isGeneratedSecondary
bool isGeneratedSecondary() const
Definition:
TrackInformation.h:26
TrackInformation::genParticlePID
int genParticlePID() const
Definition:
TrackInformation.h:50
TrackInformation::setCaloSurfaceParticlePID
void setCaloSurfaceParticlePID(int id)
Definition:
TrackInformation.h:45
TrackInformation::setAncestor
void setAncestor()
Definition:
TrackInformation.h:33
TrackInformation::flagAncestor_
bool flagAncestor_
Definition:
TrackInformation.h:62
TrackInformation::isAncestor
bool isAncestor() const
Definition:
TrackInformation.h:32
TrackInformation::setCaloSurfaceParticleP
void setCaloSurfaceParticleP(double p)
Definition:
TrackInformation.h:47
TrackInformation::caloSurfaceParticlePID
int caloSurfaceParticlePID() const
Definition:
TrackInformation.h:44
f
double f[11][100]
Definition:
MuScleFitUtils.cc:80
TrackInformation::idCaloVolume_
int idCaloVolume_
Definition:
TrackInformation.h:64
TrackInformation::isPrimary
void isPrimary(bool v)
Definition:
TrackInformation.h:21
TrackInformation::caloIDChecked_
bool caloIDChecked_
Definition:
TrackInformation.h:66
TrackInformation::getIDLastVolume
int getIDLastVolume() const
Definition:
TrackInformation.h:41
TrackInformation::isInHistory
bool isInHistory() const
Definition:
TrackInformation.h:29
TrackInformation::idOnCaloSurface_
int idOnCaloSurface_
Definition:
TrackInformation.h:63
TrackInformation::caloSurfaceParticleP_
double caloSurfaceParticleP_
Definition:
TrackInformation.h:68
TrackInformation::Print
virtual void Print() const
Definition:
TrackInformation.cc:8
TrackInformation::setGenParticleP
void setGenParticleP(double p)
Definition:
TrackInformation.h:53
TrackInformation
Definition:
TrackInformation.h:8
TrackInformation::isPrimary
bool isPrimary() const
Definition:
TrackInformation.h:20
TrackInformationAllocator
G4Allocator< TrackInformation > TrackInformationAllocator
Definition:
TrackInformation.cc:6
prof2calltree.last
tuple last
Definition:
prof2calltree.py:122
TrackInformation::caloIDChecked
bool caloIDChecked() const
Definition:
TrackInformation.h:42
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
TrackInformation::setCaloIDChecked
void setCaloIDChecked(bool f)
Definition:
TrackInformation.h:43
TrackInformation::putInHistory
void putInHistory()
Definition:
TrackInformation.h:30
TrackInformation::setIDonCaloSurface
void setIDonCaloSurface(int id, int ical, int last, int pdgID, double p)
Definition:
TrackInformation.h:37
TrackInformation::hasHits_
bool hasHits_
Definition:
TrackInformation.h:59
TrackInformation::caloSurfaceParticleP
double caloSurfaceParticleP() const
Definition:
TrackInformation.h:46
TrackInformation::storeTrack_
bool storeTrack_
Definition:
TrackInformation.h:57
TrackInformation::genParticleP_
double genParticleP_
Definition:
TrackInformation.h:68
v
mathSSE::Vec4< T > v
Definition:
newBasic3DVector.h:354
NewTrackAction
Definition:
NewTrackAction.h:14
TrackInformation::TrackInformation
TrackInformation()
Definition:
TrackInformation.h:71
TrackInformation::caloSurfaceParticlePID_
int caloSurfaceParticlePID_
Definition:
TrackInformation.h:67
TrackInformation::idLastVolume_
int idLastVolume_
Definition:
TrackInformation.h:65
Generated for CMSSW Reference Manual by
1.8.5