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
DDIRCTruthPmtHit.h
Go to the documentation of this file.
1
// -----------------------------------------
2
// DDIRCTruthPmtHit.h
3
// created on: 05.04.2017
4
// initial athor: r.dzhygadlo at gsi.de
5
// -----------------------------------------
6
7
#ifndef DDIRCTRUTHPMTHIT_H_
8
#define DDIRCTRUTHPMTHIT_H_
9
10
#include <JANA/JObject.h>
11
#include <JANA/JFactory.h>
12
using namespace
jana;
13
14
class
DDIRCTruthPmtHit
:
public
JObject {
15
16
public
:
17
JOBJECT_PUBLIC (
DDIRCTruthPmtHit
);
18
19
float
x
,
y
,
z
;
// hit position
20
float
t
;
// detection time
21
float
t_fixed
;
// fixed pathlength time
22
float
E
;
// poton energy
23
int
ch
;
// PMT channel of the hit
24
int
key_bar
;
// key of the corresponding bar hit
25
int64_t
path
;
// path id of the photon in the optical box
26
int
refl
;
// number of reflection in the optical box
27
bool
bbrefl
;
// reflected off far end mirror of bar box
28
int
track
;
// index of the MC track
29
30
void
toStrings
(vector<pair<string, string> >&items)
const
{
31
AddString(items,
"x"
,
"%1.3f"
,
x
);
32
AddString(items,
"y"
,
"%1.3f"
,
y
);
33
AddString(items,
"z"
,
"%1.3f"
, z);
34
AddString(items,
"t"
,
"%1.3f"
, t);
35
AddString(items,
"t_fixed"
,
"%1.3f"
, t_fixed);
36
AddString(items,
"E"
,
"%1.3f"
, E);
37
AddString(items,
"ch"
,
"%d"
, ch);
38
AddString(items,
"key_bar"
,
"%d"
, key_bar);
39
AddString(items,
"path"
,
"%ld"
, path);
40
AddString(items,
"refl"
,
"%d"
, refl);
41
AddString(items,
"bbrefl"
,
"%d"
, bbrefl ? 1 : 0);
42
}
43
};
44
45
#endif
/* DDIRCTRUTHPMTHIT_H_ */
DDIRCTruthPmtHit::key_bar
int key_bar
Definition:
DDIRCTruthPmtHit.h:24
x
Double_t x[NCHANNELS]
Definition:
st_tw_resols.C:39
DDIRCTruthPmtHit::ch
int ch
Definition:
DDIRCTruthPmtHit.h:23
y
#define y
DDIRCTruthPmtHit::refl
int refl
Definition:
DDIRCTruthPmtHit.h:26
DDIRCTruthPmtHit::bbrefl
bool bbrefl
Definition:
DDIRCTruthPmtHit.h:27
DDIRCTruthPmtHit::t
float t
Definition:
DDIRCTruthPmtHit.h:20
DDIRCTruthPmtHit::z
float z
Definition:
DDIRCTruthPmtHit.h:19
DDIRCTruthPmtHit::track
int track
Definition:
DDIRCTruthPmtHit.h:28
DDIRCTruthPmtHit::path
int64_t path
Definition:
DDIRCTruthPmtHit.h:25
DDIRCTruthPmtHit
Definition:
DDIRCTruthPmtHit.h:14
DDIRCTruthPmtHit::t_fixed
float t_fixed
Definition:
DDIRCTruthPmtHit.h:21
DDIRCTruthPmtHit::E
float E
Definition:
DDIRCTruthPmtHit.h:22
DDIRCTruthPmtHit::toStrings
void toStrings(vector< pair< string, string > > &items) const
Definition:
DDIRCTruthPmtHit.h:30
libraries
DIRC
DDIRCTruthPmtHit.h
Generated on Fri Jul 26 2019 14:00:30 for Hall-D Software by
1.8.5