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
DTAGHHit.h
Go to the documentation of this file.
1
// $Id$
2
//
3
// File: DTAGHHit.h
4
// Created: Sat Jul 5 07:49:15 EDT 2014
5
// Creator: jonesrt (on gluey.phys.uconn.edu)
6
//
7
8
#ifndef _DTAGHhit_
9
#define _DTAGHhit_
10
11
#include <JANA/JObject.h>
12
#include <JANA/JFactory.h>
13
14
class
DTAGHHit
:
public
jana::JObject{
15
public
:
16
JOBJECT_PUBLIC
(
DTAGHHit
);
17
18
double
E
;
19
double
t
;
20
int
counter_id
;
21
double
integral
;
22
double
pulse_peak
;
23
double
time_tdc
;
24
double
time_fadc
;
25
double
npe_fadc
;
26
bool
has_fADC
,
has_TDC
,
is_double
;
27
int
bg
= -1;
//if MC, 0 for the photon that generated the event, nonzero otherwise //ignore if not MC
28
29
void
toStrings
(vector<pair<string,string> > &items)
const
{
30
AddString(items,
"counter_id"
,
"%d"
,
counter_id
);
31
AddString(items,
"E(GeV)"
,
"%f"
,
E
);
32
AddString(items,
"t(ns)"
,
"%f"
,
t
);
33
AddString(items,
"time_tdc(ns)"
,
"%f"
,
time_tdc
);
34
AddString(items,
"time_fadc(ns)"
,
"%f"
,
time_fadc
);
35
AddString(items,
"integral"
,
"%f"
,
integral
);
36
AddString(items,
"pulse_peak"
,
"%f"
,
pulse_peak
);
37
AddString(items,
"npe_fadc"
,
"%f"
,
npe_fadc
);
38
AddString(items,
"has_fADC"
,
"%d"
, (
int
)
has_fADC
);
39
AddString(items,
"has_TDC"
,
"%d"
, (
int
)
has_TDC
);
40
AddString(items,
"is_double"
,
"%d"
, (
int
)
is_double
);
41
AddString(items,
"bg"
,
"%d"
,
bg
);
42
}
43
};
44
45
#endif // _DTAGHHit_
DTAGHHit::t
double t
Definition:
DTAGHHit.h:19
DTAGHHit::E
double E
Definition:
DTAGHHit.h:18
DTAGHHit::npe_fadc
double npe_fadc
Definition:
DTAGHHit.h:25
DTAGHHit::toStrings
void toStrings(vector< pair< string, string > > &items) const
Definition:
DTAGHHit.h:29
DTAGHHit::bg
int bg
Definition:
DTAGHHit.h:27
DTAGHHit::is_double
bool is_double
Definition:
DTAGHHit.h:26
DTAGHHit::has_TDC
bool has_TDC
Definition:
DTAGHHit.h:26
DTAGHHit::counter_id
int counter_id
Definition:
DTAGHHit.h:20
DTAGHHit::time_tdc
double time_tdc
Definition:
DTAGHHit.h:23
DTAGHHit::JOBJECT_PUBLIC
JOBJECT_PUBLIC(DTAGHHit)
DTAGHHit
Definition:
DTAGHHit.h:14
DTAGHHit::has_fADC
bool has_fADC
Definition:
DTAGHHit.h:26
DTAGHHit::time_fadc
double time_fadc
Definition:
DTAGHHit.h:24
DTAGHHit::integral
double integral
Definition:
DTAGHHit.h:21
DTAGHHit::pulse_peak
double pulse_peak
Definition:
DTAGHHit.h:22
libraries
TAGGER
DTAGHHit.h
Generated on Fri Jul 26 2019 14:01:28 for Hall-D Software by
1.8.5