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
DTOFTruth.h
Go to the documentation of this file.
1
// $Id$
2
//
3
// File: DTOFTruth.h
4
// Created: Mon Oct 17 13:58:02 EST 2005
5
// Creator: remitche (on Linux mantrid00 2.4.20-18.8smp i686)
6
//
7
8
#ifndef _DTOFTruth_
9
#define _DTOFTruth_
10
11
#include <JANA/JObject.h>
12
#include <JANA/JFactory.h>
13
using namespace
jana;
14
15
class
DTOFTruth
:
public
JObject{
16
17
public
:
18
JOBJECT_PUBLIC(
DTOFTruth
);
19
20
int
track
;
// track index
21
int
itrack
;
// MCThrown track index
22
int
primary
;
// 0: secondary, 1: primary
23
float
x
,
y
,
z
;
// true point of intersection
24
float
px,
py
,
pz
;
// momentum of the particle
25
float
t
;
// true time
26
float
E
;
// energy of the particle
27
int
ptype
;
// GEANT particle type
28
29
void
toStrings
(vector<pair<string,string> > &items)
const
{
30
AddString(items,
"track"
,
"%d"
,
track
);
31
AddString(items,
"itrack"
,
"%d"
, itrack);
32
AddString(items,
"primary"
,
"%d"
, primary);
33
AddString(items,
"ptype"
,
"%d"
, ptype);
34
AddString(items,
"x"
,
"%1.3f"
,
x
);
35
AddString(items,
"y"
,
"%1.3f"
,
y
);
36
AddString(items,
"z"
,
"%1.3f"
, z);
37
AddString(items,
"t"
,
"%1.3f"
, t);
38
AddString(items,
"px"
,
"%1.3f"
, px);
39
AddString(items,
"py"
,
"%1.3f"
,
py
);
40
AddString(items,
"pz"
,
"%1.3f"
, pz);
41
AddString(items,
"E"
,
"%1.3f"
, E);
42
}
43
};
44
45
#endif // _DTOFTruth_
46
track
Definition:
track.h:16
DTOFTruth::z
float z
Definition:
DTOFTruth.h:23
x
Double_t x[NCHANNELS]
Definition:
st_tw_resols.C:39
DTOFTruth::E
float E
Definition:
DTOFTruth.h:26
y
#define y
DTOFTruth::primary
int primary
Definition:
DTOFTruth.h:22
DTOFTruth::track
int track
Definition:
DTOFTruth.h:20
DTOFTruth::toStrings
void toStrings(vector< pair< string, string > > &items) const
Definition:
DTOFTruth.h:29
py
TH1D * py[NCHANNELS]
Definition:
ST_Propagation_Time/macros/Resolution.C:72
DTOFTruth::pz
float pz
Definition:
DTOFTruth.h:24
DTOFTruth::t
float t
Definition:
DTOFTruth.h:25
DTOFTruth::itrack
int itrack
Definition:
DTOFTruth.h:21
DTOFTruth
Definition:
DTOFTruth.h:15
DTOFTruth::ptype
int ptype
Definition:
DTOFTruth.h:27
libraries
TOF
DTOFTruth.h
Generated on Fri Jul 26 2019 14:01:29 for Hall-D Software by
1.8.5