Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
oncsSub_idinttv0.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file oncsSub_idinttv0.h
1
#ifndef __ONCSSUB_IDINTTV0_H__
2
#define __ONCSSUB_IDINTTV0_H__
3
4
#include "
oncsSubevent.h
"
5
#include <vector>
6
#include <set>
7
#include <algorithm>
8
#include <functional>
9
#include <stdint.h>
10
11
12
#ifndef __CINT__
13
class
WINDOWSEXPORT
oncsSub_idinttv0
:
public
oncsSubevent_w2
{
14
#else
15
class
oncsSub_idinttv0
:
public
oncsSubevent_w2
{
16
#endif
17
18
public
:
19
oncsSub_idinttv0
(
subevtdata_ptr
);
20
~
oncsSub_idinttv0
();
21
22
//int iValue(const int fee, const int ch, const int sample);
23
// int iValue(const int fee, const int ch, const int sample, const char *what);
24
int
iValue(
const
int
hit,
const
int
field
);
25
long
long
lValue(
const
int
hit,
const
int
field);
26
27
int
iValue(
const
int
,
const
int
,
const
char
* what);
28
29
int
iValue(
const
int
hit,
const
char
* what);
30
long
long
lValue(
const
int
hit,
const
char
* what);
31
32
void
dump (
OSTREAM
&
os
=
COUT
) ;
33
34
35
protected
:
36
int
intt_decode ();
37
38
static
const
int
MAX_FEECOUNT =16;
39
40
unsigned
short
reverseBits(
const
unsigned
short
x
)
const
;
41
unsigned
short
crc16(
const
unsigned
int
fee,
const
unsigned
int
index
,
const
int
l)
const
;
42
int
intt_decode_hitlist (std::vector<unsigned int> &hitlist ,
const
int
fee);
43
44
int
_broken
;
45
46
int
_is_decoded
;
47
48
struct
intt_hit
49
{
50
unsigned
long
long
bco
;
51
unsigned
short
fee
;
52
unsigned
short
channel_id
;
53
unsigned
short
chip_id
;
54
unsigned
short
adc
;
55
unsigned
short
FPHX_BCO
;
56
unsigned
short
full_FPHX
;
57
unsigned
short
full_ROC
;
58
unsigned
short
amplitude
;
59
unsigned
short
full_fphx
;
60
unsigned
int
event_counter
;
61
unsigned
int
word
;
62
};
63
64
65
std::vector<unsigned int> fee_data[MAX_FEECOUNT];
66
std::vector<intt_hit *>
intt_hits
;
67
68
};
69
70
71
#endif
/* __ONCSSUB_IDINTTV0_H__ */
online_distribution
blob
master
newbasic
oncsSub_idinttv0.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:27
using
1.8.2 with
sPHENIX GitHub integration