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
DDIRCTruthBarHit.h
Go to the documentation of this file.
1
// -----------------------------------------
2
// DDIRCTruthBarHit.h
3
// created on: 05.04.2017
4
// initial athor: r.dzhygadlo at gsi.de
5
// -----------------------------------------
6
7
#ifndef DDIRCTRUTHBARHIT_H_
8
#define DDIRCTRUTHBARHIT_H_
9
10
#include <JANA/JObject.h>
11
#include <JANA/JFactory.h>
12
using namespace
jana;
13
14
class
DDIRCTruthBarHit
:
public
JObject {
15
16
public
:
17
JOBJECT_PUBLIC (
DDIRCTruthBarHit
);
18
19
float
x
,
y
,
z
;
// coordinate where ch. track hits the radiator
20
float
px,
py
,
pz
;
// components of the track momentum
21
float
t
;
// time
22
float
E
;
// energy
23
24
int
pdg
;
// PDG of the particle
25
int
bar
;
// index of the bar
26
int
track
;
// index of the MC track
27
28
void
toStrings
(vector<pair<string, string> >&items)
const
{
29
AddString(items,
"x"
,
"%1.3f"
,
x
);
30
AddString(items,
"y"
,
"%1.3f"
,
y
);
31
AddString(items,
"z"
,
"%1.3f"
, z);
32
AddString(items,
"px"
,
"%1.3f"
, px);
33
AddString(items,
"py"
,
"%1.3f"
,
py
);
34
AddString(items,
"pz"
,
"%1.3f"
, pz);
35
AddString(items,
"t"
,
"%1.3f"
, t);
36
AddString(items,
"E"
,
"%1.3f"
, E);
37
AddString(items,
"pdg"
,
"%d"
, pdg);
38
AddString(items,
"bar"
,
"%d"
, bar);
39
AddString(items,
"track"
,
"%d"
,
track
);
40
}
41
};
42
43
#endif
/* DDIRCTRUTHBARHIT_H_ */
track
Definition:
track.h:16
x
Double_t x[NCHANNELS]
Definition:
st_tw_resols.C:39
DDIRCTruthBarHit::toStrings
void toStrings(vector< pair< string, string > > &items) const
Definition:
DDIRCTruthBarHit.h:28
y
#define y
DDIRCTruthBarHit
Definition:
DDIRCTruthBarHit.h:14
DDIRCTruthBarHit::pdg
int pdg
Definition:
DDIRCTruthBarHit.h:24
DDIRCTruthBarHit::E
float E
Definition:
DDIRCTruthBarHit.h:22
py
TH1D * py[NCHANNELS]
Definition:
ST_Propagation_Time/macros/Resolution.C:72
DDIRCTruthBarHit::t
float t
Definition:
DDIRCTruthBarHit.h:21
DDIRCTruthBarHit::track
int track
Definition:
DDIRCTruthBarHit.h:26
DDIRCTruthBarHit::z
float z
Definition:
DDIRCTruthBarHit.h:19
DDIRCTruthBarHit::pz
float pz
Definition:
DDIRCTruthBarHit.h:20
DDIRCTruthBarHit::bar
int bar
Definition:
DDIRCTruthBarHit.h:25
libraries
DIRC
DDIRCTruthBarHit.h
Generated on Fri Jul 26 2019 14:00:30 for Hall-D Software by
1.8.5