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
DSCHit.h
Go to the documentation of this file.
1
// $Id$
2
//
3
// File: DSCHit.h
4
// Created: Wed Feb 7 10:46:20 EST 2007
5
// Creator: davidl (on Linux megrez.jlab.org 2.6.9-42.0.2.ELsmp x86_64)
6
//
7
8
#ifndef _DSCHit_
9
#define _DSCHit_
10
11
#include <JANA/JObject.h>
12
#include <JANA/JFactory.h>
13
14
class
DSCHit
:
public
jana::JObject{
15
public
:
16
JOBJECT_PUBLIC
(
DSCHit
);
17
18
int
sector
;
// sector number 1-30
19
float
dE
;
// Energy loss in GeV
20
float
t
;
// best time (walk-corrected tdc)
21
float
t_TDC
;
// time from TDC, no walk correction
22
float
t_fADC
;
// time from fADC
23
float
pulse_height
;
// amplitude of pulse (used in time-walk corrections)
24
bool
has_fADC
;
25
bool
has_TDC
;
26
27
void
toStrings
(vector<pair<string,string> > &items)
const
{
28
AddString(items,
"sector"
,
"%d"
,
sector
);
29
AddString(items,
"dE"
,
"%3.3f"
,
dE
);
30
AddString(items,
"t"
,
"%3.3f"
,
t
);
31
AddString(items,
"t_TDC"
,
"%3.3f"
,
t_TDC
);
32
AddString(items,
"t_fADC"
,
"%3.3f"
,
t_fADC
);
33
AddString(items,
"has_fADC"
,
"%d"
, (
int
)
has_fADC
);
34
AddString(items,
"has_TDC"
,
"%d"
, (
int
)
has_TDC
);
35
}
36
};
37
38
#endif // _DSCHit_
39
DSCHit::pulse_height
float pulse_height
Definition:
DSCHit.h:23
DSCHit::has_TDC
bool has_TDC
Definition:
DSCHit.h:25
DSCHit::sector
int sector
Definition:
DSCHit.h:18
DSCHit
Definition:
DSCHit.h:14
DSCHit::t_fADC
float t_fADC
Definition:
DSCHit.h:22
DSCHit::t_TDC
float t_TDC
Definition:
DSCHit.h:21
DSCHit::toStrings
void toStrings(vector< pair< string, string > > &items) const
Definition:
DSCHit.h:27
DSCHit::dE
float dE
Definition:
DSCHit.h:19
DSCHit::has_fADC
bool has_fADC
Definition:
DSCHit.h:24
DSCHit::t
float t
Definition:
DSCHit.h:20
DSCHit::JOBJECT_PUBLIC
JOBJECT_PUBLIC(DSCHit)
libraries
START_COUNTER
DSCHit.h
Generated on Fri Jul 26 2019 14:01:21 for Hall-D Software by
1.8.5