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
MvtxEventInfov1.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file MvtxEventInfov1.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef MVTXEVENTINFOV1_H
4
#define MVTXEVENTINFOV1_H
5
6
/***************************/
7
/* MVTX event header class */
8
/* Cameron Dean */
9
/* MIT (ctdean@mit.edu) */
10
/* 29/09/2023 */
11
/***************************/
12
13
#include <iostream>
14
15
#include <set>
16
17
#include "
MvtxEventInfo.h
"
18
19
typedef
std::pair<uint64_t, uint64_t>
strobe_L1_pair
;
20
22
class
MvtxEventInfov1
:
public
MvtxEventInfo
23
{
24
public
:
25
MvtxEventInfov1
() =
default
;
26
28
virtual
~MvtxEventInfov1
() =
default
;
29
30
PHObject
*
CloneMe
()
const override
;
31
33
void
Reset
()
override
;
34
38
void
identify
(std::ostream &
os
= std::cout)
const override
;
39
41
int
isValid
()
const override
;
42
43
void
set_number_HB
(
const
int
/*ival*/
)
override
;
44
int
get_number_HB
()
const override
;
45
46
void
set_strobe_BCO_L1_BCO
(
const
uint64_t strobe_BCO,
const
uint64_t L1_BCO)
override
;
47
48
unsigned
int
get_number_strobes
()
const override
;
49
unsigned
int
get_number_L1s
()
const override
;
50
51
std::set<uint64_t>
get_strobe_BCOs
()
const override
;
52
std::set<uint64_t>
get_L1_BCOs
()
const override
;
53
54
std::set<uint64_t>
get_strobe_BCO_from_L1_BCO
(
const
uint64_t ival)
const override
;
55
std::set<uint64_t>
get_L1_BCO_from_strobe_BCO
(
const
uint64_t ival)
const override
;
56
57
protected
:
58
std::set<strobe_L1_pair>
m_strobe_BCO_L1_BCO
;
59
60
std::string
m_number_L1_name
=
"Number L1"
;
61
std::string
m_number_HB_name
=
"Number HB"
;
62
63
private
:
64
void
warning
(
const
std::string
&func)
const
;
65
66
int
m_number_HB
= -1;
67
68
ClassDefOverride(
MvtxEventInfov1
, 1)
69
};
70
71
#endif
coresoftware
blob
master
offline
packages
trackbase
MvtxEventInfov1.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:09
using
1.8.2 with
sPHENIX GitHub integration