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
DF1TDCHit.h
Go to the documentation of this file.
1
// $Id$
2
// $HeadURL$
3
//
4
// File: DF1TDCHit.h
5
// Created: Fri Aug 10 12:02:49 EDT 2012
6
// Creator: davidl (on Darwin harriet.jlab.org 11.4.0 i386)
7
//
8
9
#ifndef _DF1TDCHit_
10
#define _DF1TDCHit_
11
12
#include <
DAQ/DDAQAddress.h
>
13
#include "
DAQ/DModuleType.h
"
14
15
class
DF1TDCHit
:
public
DDAQAddress
{
16
17
/// Holds single hit from a F1TDC module
18
19
public
:
20
JOBJECT_PUBLIC
(
DF1TDCHit
);
21
22
DF1TDCHit
(uint32_t
rocid
=0, uint32_t
slot
=0, uint32_t
channel
=0, uint32_t
itrigger
=0, uint32_t
trig_time
=0, uint32_t
time
=0, uint32_t
data_word
=0,
MODULE_TYPE
locModType =
DModuleType::UNKNOWN
) :
23
DDAQAddress
(
rocid
,
slot
,
channel
,
itrigger
),
trig_time
(
trig_time
),
time
(
time
),
data_word
(
data_word
),
modtype
(locModType) {
24
res_status
= (
data_word
>>26) & 0x1;
25
output_fifo_overflow_status
= (
data_word
>>25) & 0x1;
26
hit_fifo_overflow_status
= (
data_word
>>24) & 0x1;
27
}
28
29
uint32_t
trig_time
;
// from data word
30
uint32_t
time
;
// from data word
31
bool
res_status
;
// 1 = locked 0 = unlocked
32
bool
output_fifo_overflow_status
;
// 1 = overflow 0 = normal
33
bool
hit_fifo_overflow_status
;
// 1 = overflow 0 = normal
34
uint32_t
data_word
;
// full data word (bits 24-26 contain some status info)
35
MODULE_TYPE
modtype
;
36
37
// This method is used primarily for pretty printing
38
// the second argument to AddString is printf style format
39
void
toStrings
(vector<pair<string,string> > &items)
const
{
40
DDAQAddress::toStrings
(items);
41
AddString(items,
"trig_time"
,
"%d"
,
trig_time
);
42
AddString(items,
"time"
,
"%d"
,
time
);
43
AddString(items,
"data_word"
,
"0x%08x"
,
data_word
);
44
}
45
};
46
47
#endif // _DF1TDCHit_
48
DF1TDCHit::JOBJECT_PUBLIC
JOBJECT_PUBLIC(DF1TDCHit)
Holds single hit from a F1TDC module.
DDAQAddress::toStrings
void toStrings(vector< pair< string, string > > &items) const
Definition:
DDAQAddress.h:47
DModuleType.h
DF1TDCHit::res_status
bool res_status
Definition:
DF1TDCHit.h:31
DF1TDCHit::output_fifo_overflow_status
bool output_fifo_overflow_status
Definition:
DF1TDCHit.h:32
DDAQAddress.h
DF1TDCHit
Definition:
DF1TDCHit.h:15
DModuleType::type_id_t
type_id_t
Definition:
DModuleType.h:27
DF1TDCHit::time
uint32_t time
Definition:
DF1TDCHit.h:30
DF1TDCHit::data_word
uint32_t data_word
Definition:
DF1TDCHit.h:34
DF1TDCHit::modtype
MODULE_TYPE modtype
Definition:
DF1TDCHit.h:35
DF1TDCHit::hit_fifo_overflow_status
bool hit_fifo_overflow_status
Definition:
DF1TDCHit.h:33
DDAQAddress
This class holds the Crate, Slot, Channel address for a digitized value from the DAQ system...
Definition:
DDAQAddress.h:26
DModuleType::UNKNOWN
Definition:
DModuleType.h:48
DDAQAddress::channel
uint32_t channel
Definition:
DDAQAddress.h:34
DDAQAddress::rocid
uint32_t rocid
Definition:
DDAQAddress.h:32
DF1TDCHit::toStrings
void toStrings(vector< pair< string, string > > &items) const
Definition:
DF1TDCHit.h:39
DF1TDCHit::trig_time
uint32_t trig_time
Definition:
DF1TDCHit.h:29
DDAQAddress::itrigger
uint32_t itrigger
Definition:
DDAQAddress.h:35
DF1TDCHit::DF1TDCHit
DF1TDCHit(uint32_t rocid=0, uint32_t slot=0, uint32_t channel=0, uint32_t itrigger=0, uint32_t trig_time=0, uint32_t time=0, uint32_t data_word=0, MODULE_TYPE locModType=DModuleType::UNKNOWN)
Definition:
DF1TDCHit.h:22
DDAQAddress::slot
uint32_t slot
Definition:
DDAQAddress.h:33
libraries
DAQ
DF1TDCHit.h
Generated on Fri Jul 26 2019 14:00:43 for Hall-D Software by
1.8.5