Hall-D Software
alpha
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
DCCALTruthShower.h
Go to the documentation of this file.
1
// $Id$
2
//
3
// File: DCCALTruthShower.h
4
// Created: Tue Nov 30 15:02:26 EST 2010
5
// Creator: davidl (on Linux ifarml6 2.6.18-128.el5 x86_64)
6
//
7
8
#ifndef _DCCALTruthShower_
9
#define _DCCALTruthShower_
10
11
#include <JANA/JObject.h>
12
#include <JANA/JFactory.h>
13
14
class
DCCALTruthShower
:
public
jana::JObject{
15
public
:
16
JOBJECT_PUBLIC
(
DCCALTruthShower
);
17
18
DCCALTruthShower
(){}
19
20
DCCALTruthShower
( oid_t
id
,
21
float
x
,
float
y
,
float
z
,
22
float
px
,
float
py
,
float
pz
,
23
float
E
,
float
t
,
24
bool
primary
,
int
track
,
int
type
,
25
int
itrack
=0) :
26
JObject( id ),
27
m_x
( x ),
28
m_y
( y ),
29
m_z
( z ),
30
m_px
( px ),
31
m_py
( py ),
32
m_pz
( pz ),
33
m_E
( E ),
34
m_t
( t ),
35
m_primary
(primary),
36
m_track
(track),
37
m_type
(type),
38
m_itrack
(
itrack
){}
39
40
float
x
()
const
{
return
m_x
; }
41
float
y
()
const
{
return
m_y
; }
42
float
z
()
const
{
return
m_z
; }
43
float
t
()
const
{
return
m_t
; }
44
float
px
()
const
{
return
m_px
; }
45
float
py
()
const
{
return
m_py
; }
46
float
pz
()
const
{
return
m_pz
; }
47
float
E
()
const
{
return
m_E
; }
48
bool
primary
()
const
{
return
m_primary
; }
49
int
track
()
const
{
return
m_track
; }
50
int
type
()
const
{
return
m_type
; }
51
int
itrack
()
const
{
return
m_itrack
; }
52
53
void
toStrings
(vector<pair<string,string> > &items)
const
{
54
AddString(items,
"x(cm)"
,
"%3.1f"
,
x
());
55
AddString(items,
"y(cm)"
,
"%3.1f"
,
y
());
56
AddString(items,
"z(cm)"
,
"%3.1f"
,
z
());
57
AddString(items,
"px(MeV/c)"
,
"%3.1f"
,
px
()*1000);
58
AddString(items,
"py(MeV/c)"
,
"%3.1f"
,
py
()*1000);
59
AddString(items,
"pz(MeV/c)"
,
"%3.1f"
,
pz
()*1000);
60
AddString(items,
"E(MeV)"
,
"%3.3f"
,
E
()*1000.0);
61
AddString(items,
"t(ns)"
,
"%3.1f"
,
t
());
62
AddString(items,
"primary"
,
"%d"
,
primary
());
63
AddString(items,
"track"
,
"%d"
,
track
());
64
AddString(items,
"type"
,
"%d"
,
type
());
65
AddString(items,
"itrack"
,
"%d"
,
itrack
());
66
}
67
68
private
:
69
70
float
m_x
;
71
float
m_y
;
72
float
m_z
;
73
float
m_px
;
74
float
m_py
;
75
float
m_pz
;
76
float
m_E
;
77
float
m_t
;
78
bool
m_primary
;
79
int
m_track
;
80
int
m_type
;
81
int
m_itrack
;
82
};
83
84
#endif // _DCCALTruthShower_
85
track
Definition:
track.h:16
DCCALTruthShower::py
float py() const
Definition:
DCCALTruthShower.h:45
DCCALTruthShower::t
float t() const
Definition:
DCCALTruthShower.h:43
DCCALTruthShower::m_E
float m_E
Definition:
DCCALTruthShower.h:76
DCCALTruthShower::m_pz
float m_pz
Definition:
DCCALTruthShower.h:75
DCCALTruthShower::m_z
float m_z
Definition:
DCCALTruthShower.h:72
DCCALTruthShower::px
float px() const
Definition:
DCCALTruthShower.h:44
DCCALTruthShower::m_px
float m_px
Definition:
DCCALTruthShower.h:73
DCCALTruthShower::m_y
float m_y
Definition:
DCCALTruthShower.h:71
DCCALTruthShower::pz
float pz() const
Definition:
DCCALTruthShower.h:46
DCCALTruthShower::JOBJECT_PUBLIC
JOBJECT_PUBLIC(DCCALTruthShower)
DCCALTruthShower::itrack
int itrack() const
Definition:
DCCALTruthShower.h:51
DCCALTruthShower::m_x
float m_x
Definition:
DCCALTruthShower.h:70
DCCALTruthShower::m_itrack
int m_itrack
Definition:
DCCALTruthShower.h:81
DCCALTruthShower::type
int type() const
Definition:
DCCALTruthShower.h:50
DCCALTruthShower::x
float x() const
Definition:
DCCALTruthShower.h:40
DCCALTruthShower::track
int track() const
Definition:
DCCALTruthShower.h:49
DCCALTruthShower::toStrings
void toStrings(vector< pair< string, string > > &items) const
Definition:
DCCALTruthShower.h:53
DCCALTruthShower::m_t
float m_t
Definition:
DCCALTruthShower.h:77
DCCALTruthShower::y
float y() const
Definition:
DCCALTruthShower.h:41
DCCALTruthShower::m_py
float m_py
Definition:
DCCALTruthShower.h:74
DCCALTruthShower
Definition:
DCCALTruthShower.h:14
DCCALTruthShower::z
float z() const
Definition:
DCCALTruthShower.h:42
DCCALTruthShower::primary
bool primary() const
Definition:
DCCALTruthShower.h:48
DCCALTruthShower::DCCALTruthShower
DCCALTruthShower()
Definition:
DCCALTruthShower.h:18
DCCALTruthShower::m_primary
bool m_primary
Definition:
DCCALTruthShower.h:78
DCCALTruthShower::DCCALTruthShower
DCCALTruthShower(oid_t id, float x, float y, float z, float px, float py, float pz, float E, float t, bool primary, int track, int type, int itrack=0)
Definition:
DCCALTruthShower.h:20
DCCALTruthShower::m_track
int m_track
Definition:
DCCALTruthShower.h:79
DCCALTruthShower::m_type
int m_type
Definition:
DCCALTruthShower.h:80
DCCALTruthShower::E
float E() const
Definition:
DCCALTruthShower.h:47
libraries
CCAL
DCCALTruthShower.h
Generated on Fri Jul 26 2019 14:00:25 for Hall-D Software by
1.8.5