KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVINDRATriggerInfo.h
Go to the documentation of this file.
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 
59 
66 
67 public:
68 
71  {
72  };
73 
75  {
76  fSTAT_EVE_PAR = p;
77  };
79  {
80  fR_DEC_PAR = p;
81  };
83  {
84  fVXCONFIG_PAR = p;
85  };
86 
87  inline void SetSTAT_EVE(Binary16_t);
88  inline void SetR_DEC(Binary16_t);
89  inline void SetCONFIG(Binary16_t);
90 
91  inline Binary16_t GetSTAT_EVE();
92  inline Binary16_t GetR_DEC();
93  inline Binary16_t GetCONFIG();
94 
95  inline Bool_t IsPhysics()
96  {
97  return (PHY_EVT() && !MRQ());
98  };
99  inline Bool_t IsGene()
100  {
101  return (GEN_ELEC() || GEN_TST() || GEN_LAS());
102  };
103 
104  inline Bool_t PHY_EVT();
105  inline Bool_t MRQ();
106  inline Bool_t GEN_ELEC();
107  inline Bool_t GEN_TST();
108  inline Bool_t GEN_LAS();
109  inline Bool_t IsPulser()
110  {
111  return GEN_ELEC();
112  };
113  inline Bool_t IsLaser()
114  {
115  return GEN_LAS();
116  };
117  inline Bool_t IsTest()
118  {
119  return GEN_TST();
120  };
122  {
125  return fSTAT_EVE_PAR->Fired();
126  };
127 
128  void Print(Option_t* opt = "");
129 
130  ClassDef(KVINDRATriggerInfo, 3) //Information on INDRA event from DAQ trigger
131 };
132 
134 
136 {
139  return fSTAT_EVE;
140 }
142 {
145  return fR_DEC;
146 }
148 {
151  return fVXCONFIG;
152 }
153 
155 {
156  return GetSTAT_EVE().TestBit(BIT_PHY_EVT);
157 }
159 {
160  return GetSTAT_EVE().TestBit(BIT_MRQ);
161 }
163 {
164  return GetSTAT_EVE().TestBit(BIT_GEN_ELEC);
165 }
167 {
168  return GetSTAT_EVE().TestBit(BIT_GEN_TST);
169 }
171 {
172  return GetSTAT_EVE().TestBit(BIT_GEN_LAS);
173 }
175 {
176  fSTAT_EVE = b;
177 };
179 {
180  fR_DEC = b;
181 };
183 {
184  fVXCONFIG = b;
185 };
186 
187 #endif
#define BIT_GEN_ELEC
#define BIT_PHY_EVT
bit numbers in STAT_EVE register
#define BIT_MRQ
#define BIT_GEN_TST
#define BIT_GEN_LAS
#define b(i)
bool Bool_t
const char Option_t
#define ClassDef(name, id)
Bool_t TestBit(UChar_t)
Definition: Binary_t.h:524
GANIL VXI/VME 16 bit (maximum) EBYEDAT acquisition parameter.
Bool_t Fired() const
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)
virtual ~ KVINDRATriggerInfo()
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)