BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnTrigInfoDst.h
Go to the documentation of this file.
1
/********************************************************************************
2
* BmnTrigInfoDst.h *
3
* Fill Trigger information from DIGI chain into DST chain *
4
* Sergei Merts *
5
* Created: May 26 2023 *
6
*******************************************************************************/
7
#ifndef BMNTRIGINFODST_H
8
#define BMNTRIGINFODST_H
9
10
#include <vector>
11
// ROOT
12
#include "
TClonesArray.h
"
13
#include "
TNamed.h
"
14
15
using
std::vector;
16
17
class
BmnTrigInfoDst
:
public
TNamed
18
{
19
public
:
20
/** Default constructor **/
21
BmnTrigInfoDst
();
22
/** Constructor with flag whether experimental data are used **/
23
BmnTrigInfoDst
(
Bool_t
isExp);
24
/** Destructor **/
25
~BmnTrigInfoDst
();
26
/** Copy constructor **/
27
BmnTrigInfoDst
(
const
BmnTrigInfoDst
& other);
28
/** Copy assignment operator **/
29
BmnTrigInfoDst
&
operator=
(
const
BmnTrigInfoDst
& other);
30
/** Move constructor **/
31
BmnTrigInfoDst
(
BmnTrigInfoDst
&& other);
32
/** Move assignment operator **/
33
BmnTrigInfoDst
&
operator=
(
BmnTrigInfoDst
&& other);
34
35
void
CreateBranches
(
Bool_t
isExp);
36
void
Reset
();
37
38
Float_t
GetVCAmp
() {
return
fVCAmp
; }
39
Float_t
GetBC0Amp
() {
return
fBC0Amp
; }
40
Float_t
GetBC1Amp
() {
return
fBC1Amp
; }
41
Float_t
GetBC1Integral
() {
return
fBC1Integral
; }
42
Float_t
GetBC2Amp
() {
return
fBC2Amp
; }
43
Float_t
GetFDAmp
() {
return
fFDAmp
; }
44
UInt_t
GetBDMult
() {
return
fBDMult
; }
45
UInt_t
GetSiMDMult
() {
return
fSiMDMult
; }
46
TClonesArray
*
GetBC0Digits
() {
return
fBC0Digits
; }
47
TClonesArray
*
GetBC1Digits
() {
return
fBC1Digits
; }
48
TClonesArray
*
GetBC2Digits
() {
return
fBC2Digits
; }
49
TClonesArray
*
GetBDDigits
() {
return
fBDDigits
; }
50
TClonesArray
*
GetFDDigits
() {
return
fFDDigits
; }
51
52
void
SetVCAmp
(
Float_t
a) {
fVCAmp
= a; }
53
void
SetBC0Amp
(
Float_t
a) {
fBC0Amp
= a; }
54
void
SetBC1Amp
(
Float_t
a) {
fBC1Amp
= a; }
55
void
SetBC2Amp
(
Float_t
a) {
fBC2Amp
= a; }
56
void
SetFDAmp
(
Float_t
a) {
fFDAmp
= a; }
57
void
SetBC1Integral
(
Float_t
a) {
fBC1Integral
= a; }
58
void
SetBDMult
(
UInt_t
a) {
fBDMult
= a; }
59
void
SetSiMDMult
(
UInt_t
a) {
fSiMDMult
= a; }
60
61
/** Set the Input signal states, after reduction */
62
void
SetInputSignalsAR
(
UInt_t
v
) {
fInputsAR
=
v
; }
63
/** Set the Input signal states, before reduction */
64
void
SetInputSignalsBR
(
UInt_t
v
) {
fInputsBR
=
v
; }
65
/** Set the Input signal vector */
66
void
SetInputSignalsVector
(vector<uint32_t>
v
) {
fInputsVec
=
v
; }
67
/** Set T0 time and amp */
68
void
SetT0_time
(
Float_t
v
) {
fT0_time
=
v
; }
69
void
SetT0_amp
(
Float_t
v
) {
fT0_amp
=
v
; }
70
71
Bool_t
IsTriggerBitTrueAR
(
Short_t
bit) {
return
Bool_t
((
fInputsAR
>> bit) & 1); }
72
Bool_t
IsTriggerBitTrueBR
(
Short_t
bit) {
return
Bool_t
((
fInputsBR
>> bit) & 1); }
73
74
/** Get Input signal states, after reduction */
75
UInt_t
GetInputSignalsAR
() {
return
fInputsAR
; }
76
/** Get Input signal states, before reduction */
77
UInt_t
GetInputSignalsBR
() {
return
fInputsBR
; }
78
/** Get Input signal states, before reduction */
79
vector<uint32_t>
GetInputSignalsVector
() {
return
fInputsVec
; }
80
/** Get T0 signal for TOF mesuarments */
81
Float_t
GetT0_time
() {
return
fT0_time
; }
82
Float_t
GetT0_amp
() {
return
fT0_amp
; }
83
84
private
:
85
Bool_t
isExpData
;
//!
86
87
Float_t
fVCAmp
;
88
Float_t
fBC0Amp
;
89
Float_t
fBC1Amp
;
90
Float_t
fBC1Integral
;
91
Float_t
fBC2Amp
;
92
UInt_t
fBDMult
;
93
UInt_t
fSiMDMult
;
94
Float_t
fFDAmp
;
95
UInt_t
fInputsAR
;
96
UInt_t
fInputsBR
;
97
vector<uint32_t>
fInputsVec
;
98
/** T0 time for TOF measurements. Available since Run9 */
99
Float_t
fT0_time
;
100
Float_t
fT0_amp
;
101
102
TClonesArray
*
fBC0Digits
;
103
TClonesArray
*
fBC1Digits
;
104
TClonesArray
*
fBC2Digits
;
105
TClonesArray
*
fBDDigits
;
106
TClonesArray
*
fFDDigits
;
107
108
void
TCAFree
();
109
110
ClassDef
(
BmnTrigInfoDst
, 4);
111
};
112
113
#endif
v
__m128 v
Definition
P4_F32vec4.h:1
Bool_t
bool Bool_t
UInt_t
unsigned int UInt_t
Float_t
float Float_t
Short_t
short Short_t
ClassDef
#define ClassDef(name, id)
TClonesArray.h
TNamed.h
BmnTrigInfoDst
Definition
BmnTrigInfoDst.h:18
BmnTrigInfoDst::fBC1Integral
Float_t fBC1Integral
Definition
BmnTrigInfoDst.h:90
BmnTrigInfoDst::TCAFree
void TCAFree()
BmnTrigInfoDst::GetInputSignalsAR
UInt_t GetInputSignalsAR()
Get Input signal states, after reduction.
Definition
BmnTrigInfoDst.h:75
BmnTrigInfoDst::SetBDMult
void SetBDMult(UInt_t a)
Definition
BmnTrigInfoDst.h:58
BmnTrigInfoDst::SetT0_time
void SetT0_time(Float_t v)
Set T0 time and amp.
Definition
BmnTrigInfoDst.h:68
BmnTrigInfoDst::GetT0_time
Float_t GetT0_time()
Get T0 signal for TOF mesuarments.
Definition
BmnTrigInfoDst.h:81
BmnTrigInfoDst::IsTriggerBitTrueBR
Bool_t IsTriggerBitTrueBR(Short_t bit)
Definition
BmnTrigInfoDst.h:72
BmnTrigInfoDst::fBC1Digits
TClonesArray * fBC1Digits
Definition
BmnTrigInfoDst.h:103
BmnTrigInfoDst::fBC1Amp
Float_t fBC1Amp
Definition
BmnTrigInfoDst.h:89
BmnTrigInfoDst::GetT0_amp
Float_t GetT0_amp()
Definition
BmnTrigInfoDst.h:82
BmnTrigInfoDst::SetSiMDMult
void SetSiMDMult(UInt_t a)
Definition
BmnTrigInfoDst.h:59
BmnTrigInfoDst::fBC0Amp
Float_t fBC0Amp
Definition
BmnTrigInfoDst.h:88
BmnTrigInfoDst::SetInputSignalsVector
void SetInputSignalsVector(vector< uint32_t > v)
Set the Input signal vector.
Definition
BmnTrigInfoDst.h:66
BmnTrigInfoDst::SetT0_amp
void SetT0_amp(Float_t v)
Definition
BmnTrigInfoDst.h:69
BmnTrigInfoDst::GetBC2Amp
Float_t GetBC2Amp()
Definition
BmnTrigInfoDst.h:42
BmnTrigInfoDst::fT0_amp
Float_t fT0_amp
Definition
BmnTrigInfoDst.h:100
BmnTrigInfoDst::SetBC2Amp
void SetBC2Amp(Float_t a)
Definition
BmnTrigInfoDst.h:55
BmnTrigInfoDst::fT0_time
Float_t fT0_time
T0 time for TOF measurements.
Definition
BmnTrigInfoDst.h:99
BmnTrigInfoDst::fBC2Digits
TClonesArray * fBC2Digits
Definition
BmnTrigInfoDst.h:104
BmnTrigInfoDst::GetSiMDMult
UInt_t GetSiMDMult()
Definition
BmnTrigInfoDst.h:45
BmnTrigInfoDst::Reset
void Reset()
BmnTrigInfoDst::BmnTrigInfoDst
BmnTrigInfoDst(Bool_t isExp)
Constructor with flag whether experimental data are used.
BmnTrigInfoDst::fBDMult
UInt_t fBDMult
Definition
BmnTrigInfoDst.h:92
BmnTrigInfoDst::GetBDDigits
TClonesArray * GetBDDigits()
Definition
BmnTrigInfoDst.h:49
BmnTrigInfoDst::SetVCAmp
void SetVCAmp(Float_t a)
Definition
BmnTrigInfoDst.h:52
BmnTrigInfoDst::~BmnTrigInfoDst
~BmnTrigInfoDst()
Destructor.
BmnTrigInfoDst::fSiMDMult
UInt_t fSiMDMult
Definition
BmnTrigInfoDst.h:93
BmnTrigInfoDst::fBC2Amp
Float_t fBC2Amp
Definition
BmnTrigInfoDst.h:91
BmnTrigInfoDst::isExpData
Bool_t isExpData
Definition
BmnTrigInfoDst.h:85
BmnTrigInfoDst::fBC0Digits
TClonesArray * fBC0Digits
Definition
BmnTrigInfoDst.h:102
BmnTrigInfoDst::fFDDigits
TClonesArray * fFDDigits
Definition
BmnTrigInfoDst.h:106
BmnTrigInfoDst::fInputsBR
UInt_t fInputsBR
Definition
BmnTrigInfoDst.h:96
BmnTrigInfoDst::fFDAmp
Float_t fFDAmp
Definition
BmnTrigInfoDst.h:94
BmnTrigInfoDst::fBDDigits
TClonesArray * fBDDigits
Definition
BmnTrigInfoDst.h:105
BmnTrigInfoDst::SetFDAmp
void SetFDAmp(Float_t a)
Definition
BmnTrigInfoDst.h:56
BmnTrigInfoDst::GetBC0Digits
TClonesArray * GetBC0Digits()
Definition
BmnTrigInfoDst.h:46
BmnTrigInfoDst::GetBC1Digits
TClonesArray * GetBC1Digits()
Definition
BmnTrigInfoDst.h:47
BmnTrigInfoDst::GetVCAmp
Float_t GetVCAmp()
Definition
BmnTrigInfoDst.h:38
BmnTrigInfoDst::GetBC1Amp
Float_t GetBC1Amp()
Definition
BmnTrigInfoDst.h:40
BmnTrigInfoDst::BmnTrigInfoDst
BmnTrigInfoDst(const BmnTrigInfoDst &other)
Copy constructor.
BmnTrigInfoDst::fInputsVec
vector< uint32_t > fInputsVec
Definition
BmnTrigInfoDst.h:97
BmnTrigInfoDst::GetBC2Digits
TClonesArray * GetBC2Digits()
Definition
BmnTrigInfoDst.h:48
BmnTrigInfoDst::CreateBranches
void CreateBranches(Bool_t isExp)
BmnTrigInfoDst::GetInputSignalsBR
UInt_t GetInputSignalsBR()
Get Input signal states, before reduction.
Definition
BmnTrigInfoDst.h:77
BmnTrigInfoDst::GetBC1Integral
Float_t GetBC1Integral()
Definition
BmnTrigInfoDst.h:41
BmnTrigInfoDst::SetInputSignalsAR
void SetInputSignalsAR(UInt_t v)
Set the Input signal states, after reduction.
Definition
BmnTrigInfoDst.h:62
BmnTrigInfoDst::SetBC1Amp
void SetBC1Amp(Float_t a)
Definition
BmnTrigInfoDst.h:54
BmnTrigInfoDst::fVCAmp
Float_t fVCAmp
Definition
BmnTrigInfoDst.h:87
BmnTrigInfoDst::BmnTrigInfoDst
BmnTrigInfoDst(BmnTrigInfoDst &&other)
Move constructor.
BmnTrigInfoDst::GetFDAmp
Float_t GetFDAmp()
Definition
BmnTrigInfoDst.h:43
BmnTrigInfoDst::SetInputSignalsBR
void SetInputSignalsBR(UInt_t v)
Set the Input signal states, before reduction.
Definition
BmnTrigInfoDst.h:64
BmnTrigInfoDst::GetBC0Amp
Float_t GetBC0Amp()
Definition
BmnTrigInfoDst.h:39
BmnTrigInfoDst::BmnTrigInfoDst
BmnTrigInfoDst()
Default constructor.
BmnTrigInfoDst::GetFDDigits
TClonesArray * GetFDDigits()
Definition
BmnTrigInfoDst.h:50
BmnTrigInfoDst::operator=
BmnTrigInfoDst & operator=(const BmnTrigInfoDst &other)
Copy assignment operator.
BmnTrigInfoDst::GetInputSignalsVector
vector< uint32_t > GetInputSignalsVector()
Get Input signal states, before reduction.
Definition
BmnTrigInfoDst.h:79
BmnTrigInfoDst::SetBC1Integral
void SetBC1Integral(Float_t a)
Definition
BmnTrigInfoDst.h:57
BmnTrigInfoDst::GetBDMult
UInt_t GetBDMult()
Definition
BmnTrigInfoDst.h:44
BmnTrigInfoDst::IsTriggerBitTrueAR
Bool_t IsTriggerBitTrueAR(Short_t bit)
Definition
BmnTrigInfoDst.h:71
BmnTrigInfoDst::fInputsAR
UInt_t fInputsAR
Definition
BmnTrigInfoDst.h:95
BmnTrigInfoDst::SetBC0Amp
void SetBC0Amp(Float_t a)
Definition
BmnTrigInfoDst.h:53
BmnTrigInfoDst::operator=
BmnTrigInfoDst & operator=(BmnTrigInfoDst &&other)
Move assignment operator.
TClonesArray
TNamed
TObject::TClonesArray
friend friend class TClonesArray
reconstruction
dst
BmnTrigInfoDst.h
Generated on
for BmnRoot by
1.17.0