BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
15using std::vector;
16
17class BmnTrigInfoDst : public TNamed
18{
19 public:
20 /** Default constructor **/
22 /** Constructor with flag whether experimental data are used **/
24 /** Destructor **/
26 /** Copy constructor **/
28 /** Copy assignment operator **/
30 /** Move constructor **/
32 /** Move assignment operator **/
34
36 void Reset();
37
38 Float_t GetVCAmp() { return fVCAmp; }
43 Float_t GetFDAmp() { return fFDAmp; }
44 UInt_t GetBDMult() { return fBDMult; }
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; }
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 */
63 /** Set the Input signal states, before reduction */
65 /** Set the Input signal vector */
66 void SetInputSignalsVector(vector<uint32_t> v) { fInputsVec = v; }
67 /** Set T0 time and amp */
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 */
76 /** Get Input signal states, before reduction */
78 /** Get Input signal states, before reduction */
79 vector<uint32_t> GetInputSignalsVector() { return fInputsVec; }
80 /** Get T0 signal for TOF mesuarments */
83
84 private:
85 Bool_t isExpData; //!
86
97 vector<uint32_t> fInputsVec;
98 /** T0 time for TOF measurements. Available since Run9 */
101
107
108 void TCAFree();
109
111};
112
113#endif
__m128 v
Definition P4_F32vec4.h:1
bool Bool_t
unsigned int UInt_t
float Float_t
short Short_t
#define ClassDef(name, id)
UInt_t GetInputSignalsAR()
Get Input signal states, after reduction.
void SetBDMult(UInt_t a)
void SetT0_time(Float_t v)
Set T0 time and amp.
Float_t GetT0_time()
Get T0 signal for TOF mesuarments.
Bool_t IsTriggerBitTrueBR(Short_t bit)
TClonesArray * fBC1Digits
Float_t GetT0_amp()
void SetSiMDMult(UInt_t a)
void SetInputSignalsVector(vector< uint32_t > v)
Set the Input signal vector.
void SetT0_amp(Float_t v)
Float_t GetBC2Amp()
void SetBC2Amp(Float_t a)
Float_t fT0_time
T0 time for TOF measurements.
TClonesArray * fBC2Digits
UInt_t GetSiMDMult()
BmnTrigInfoDst(Bool_t isExp)
Constructor with flag whether experimental data are used.
TClonesArray * GetBDDigits()
void SetVCAmp(Float_t a)
~BmnTrigInfoDst()
Destructor.
TClonesArray * fBC0Digits
TClonesArray * fFDDigits
TClonesArray * fBDDigits
void SetFDAmp(Float_t a)
TClonesArray * GetBC0Digits()
TClonesArray * GetBC1Digits()
Float_t GetVCAmp()
Float_t GetBC1Amp()
BmnTrigInfoDst(const BmnTrigInfoDst &other)
Copy constructor.
vector< uint32_t > fInputsVec
TClonesArray * GetBC2Digits()
void CreateBranches(Bool_t isExp)
UInt_t GetInputSignalsBR()
Get Input signal states, before reduction.
Float_t GetBC1Integral()
void SetInputSignalsAR(UInt_t v)
Set the Input signal states, after reduction.
void SetBC1Amp(Float_t a)
BmnTrigInfoDst(BmnTrigInfoDst &&other)
Move constructor.
Float_t GetFDAmp()
void SetInputSignalsBR(UInt_t v)
Set the Input signal states, before reduction.
Float_t GetBC0Amp()
BmnTrigInfoDst()
Default constructor.
TClonesArray * GetFDDigits()
BmnTrigInfoDst & operator=(const BmnTrigInfoDst &other)
Copy assignment operator.
vector< uint32_t > GetInputSignalsVector()
Get Input signal states, before reduction.
void SetBC1Integral(Float_t a)
Bool_t IsTriggerBitTrueAR(Short_t bit)
void SetBC0Amp(Float_t a)
BmnTrigInfoDst & operator=(BmnTrigInfoDst &&other)
Move assignment operator.
friend friend class TClonesArray