HGCal Test Beam
03a93d6239a951948e06fb3ef8dae4cbdebfad30
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
TBStandaloneSimulator
interface
HGCSSTrackSegment.h
Go to the documentation of this file.
1
#ifndef HGCSSTRACKSEGMENT_H
2
#define HGCSSTRACKSEGMENT_H
3
4
#include "Rtypes.h"
5
#include "G4ThreeVector.hh"
6
7
class
HGCSSTrackSegment
8
{
9
public
:
10
typedef
int
key_type
;
11
12
HGCSSTrackSegment
()
13
: track(0),
14
pdgid(0),
15
time(0),
16
x1(0),
17
y1(0),
18
z1(0),
19
x2(0),
20
y2(0),
21
z2(0),
22
px(0),
23
py(0),
24
pz(0)
25
{
26
};
27
28
HGCSSTrackSegment
(
int
track_,
int
pdgid_,
double
time_,
29
const
G4ThreeVector& p1,
30
const
G4ThreeVector& p2,
31
const
G4ThreeVector& p)
32
: track(track_),
33
pdgid(pdgid_),
34
time(time_),
35
x1(p1[0]),
36
y1(p1[1]),
37
z1(p1[2]),
38
x2(p2[0]),
39
y2(p2[1]),
40
z2(p2[2]),
41
px(p[0]),
42
py(p[1]),
43
pz(p[2])
44
{
45
}
46
47
int
id
()
const
48
{
49
return
track;
50
}
51
52
virtual
~HGCSSTrackSegment
() {}
53
54
private
:
55
int
track, pdgid;
56
double
time;
57
double
x1, y1, z1;
58
double
x2, y2, z2;
59
double
px, py, pz;
60
61
ClassDef(
HGCSSTrackSegment
, 1);
62
};
63
64
65
typedef
std::vector<HGCSSTrackSegment>
HGCSSTrackSegmentVec
;
66
67
#endif
HGCSSTrackSegment::HGCSSTrackSegment
HGCSSTrackSegment(int track_, int pdgid_, double time_, const G4ThreeVector &p1, const G4ThreeVector &p2, const G4ThreeVector &p)
Definition:
HGCSSTrackSegment.h:28
HGCSSTrackSegmentVec
std::vector< HGCSSTrackSegment > HGCSSTrackSegmentVec
Definition:
HGCSSTrackSegment.h:65
HGCSSTrackSegment::id
int id() const
Definition:
HGCSSTrackSegment.h:47
HGCSSTrackSegment
Definition:
HGCSSTrackSegment.h:7
HGCSSTrackSegment::~HGCSSTrackSegment
virtual ~HGCSSTrackSegment()
Definition:
HGCSSTrackSegment.h:52
HGCSSTrackSegment::key_type
int key_type
Definition:
HGCSSTrackSegment.h:10
HGCSSTrackSegment::HGCSSTrackSegment
HGCSSTrackSegment()
Definition:
HGCSSTrackSegment.h:12
Generated on Mon Aug 29 2016 11:29:32 for HGCal Test Beam by
1.8.5