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