KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVINDRATriggerInfo.h
1/***************************************************************************
2 kvindratriggerinfo.h - description
3 -------------------
4 begin : 28 sep 2005
5 copyright : (C) 2005 jdf
6 email : frankland@ganil.fr
7$Id: KVINDRATriggerInfo.h,v 1.7 2007/06/28 16:00:49 franklan Exp $
8 ***************************************************************************/
9
10/***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18#ifndef __KVINDRATriggerInfo_H
19#define __KVINDRATriggerInfo_H
20
21#include "Binary_t.h"
22#include "KVEBYEDAT_ACQParam.h"
23
25#define BIT_PHY_EVT 3
26#define BIT_MRQ 5
27#define BIT_GEN_ELEC 1
28#define BIT_GEN_TST 0
29#define BIT_GEN_LAS 2
30
60
67
68public:
69
71 virtual ~ KVINDRATriggerInfo()
72 {
73 };
74
80 {
81 fR_DEC_PAR = p;
82 };
87
88 inline void SetSTAT_EVE(Binary16_t);
89 inline void SetR_DEC(Binary16_t);
90 inline void SetCONFIG(Binary16_t);
91
92 inline Binary16_t GetSTAT_EVE();
93 inline Binary16_t GetR_DEC();
94 inline Binary16_t GetCONFIG();
95
97 {
98 return (PHY_EVT() && !MRQ());
99 };
100 inline Bool_t IsGene()
101 {
102 return (GEN_ELEC() || GEN_TST() || GEN_LAS());
103 };
104
105 inline Bool_t PHY_EVT();
106 inline Bool_t MRQ();
107 inline Bool_t GEN_ELEC();
108 inline Bool_t GEN_TST();
109 inline Bool_t GEN_LAS();
111 {
112 return GEN_ELEC();
113 };
115 {
116 return GEN_LAS();
117 };
118 inline Bool_t IsTest()
119 {
120 return GEN_TST();
121 };
123 {
126 return fSTAT_EVE_PAR->Fired();
127 };
128
129 void Print(Option_t* opt = "");
130
131 ClassDef(KVINDRATriggerInfo, 3) //Information on INDRA event from DAQ trigger
132};
133
135
154
156{
157 return GetSTAT_EVE().TestBit(BIT_PHY_EVT);
158}
160{
161 return GetSTAT_EVE().TestBit(BIT_MRQ);
162}
164{
165 return GetSTAT_EVE().TestBit(BIT_GEN_ELEC);
166}
168{
169 return GetSTAT_EVE().TestBit(BIT_GEN_TST);
170}
172{
173 return GetSTAT_EVE().TestBit(BIT_GEN_LAS);
174}
176{
177 fSTAT_EVE = b;
178};
180{
181 fR_DEC = b;
182};
184{
185 fVXCONFIG = b;
186};
187
188#endif
bool Bool_t
const char Option_t
#define ClassDef(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t b
Bool_t TestBit(UChar_t)
Definition Binary_t.h:525
GANIL VXI/VME 16 bit (maximum) EBYEDAT acquisition parameter.
UShort_t GetData() const
Information on INDRA event from DAQ trigger.
void SetVXCONFIG_PAR(KVEBYEDAT_ACQParam *p)
Binary16_t fVXCONFIG
value of register VXCONFIG for event
void SetR_DEC_PAR(KVEBYEDAT_ACQParam *p)
void Print(Option_t *opt="")
Print contents of trigger registers, in binary, hexadecimal and decoded forms.
virtual Bool_t IsINDRAEvent()
KVEBYEDAT_ACQParam * fR_DEC_PAR
R_DEC parameter read from raw data.
Binary16_t fR_DEC
value of register R_DEC for event
KVINDRATriggerInfo()
Initialises number of bits (representation) for each register read from Selecteur.
Binary16_t fSTAT_EVE
value of register STAT_EVE for event
KVEBYEDAT_ACQParam * fSTAT_EVE_PAR
STAT_EVE parameter read from raw data.
void SetR_DEC(Binary16_t)
void SetCONFIG(Binary16_t)
void SetSTAT_EVE(Binary16_t)
KVEBYEDAT_ACQParam * fVXCONFIG_PAR
VXCONFIG parameter read from raw data.
Binary16_t GetSTAT_EVE()
_________ inline methodes _______________
void SetSTAT_EVE_PAR(KVEBYEDAT_ACQParam *p)