KaliVeda  1.12/06
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 "KVACQParam.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 acquisition parameter.
Definition: KVACQParam.h:15
Short_t GetCoderData() const
Definition: KVACQParam.h:64
Bool_t Fired(Option_t *what="") const
Definition: KVACQParam.h:85
Information on INDRA event from DAQ trigger.
Binary16_t fVXCONFIG
value of register VXCONFIG for event
KVACQParam * fVXCONFIG_PAR
VXCONFIG parameter read from raw data.
virtual ~ KVINDRATriggerInfo()
void Print(Option_t *opt="")
Print contents of trigger registers, in binary, hexadecimal and decoded forms.
virtual Bool_t IsINDRAEvent()
void SetSTAT_EVE_PAR(KVACQParam *p)
KVACQParam * 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.
KVACQParam * fSTAT_EVE_PAR
STAT_EVE parameter read from raw data.
Binary16_t fSTAT_EVE
value of register STAT_EVE for event
void SetR_DEC(Binary16_t)
void SetVXCONFIG_PAR(KVACQParam *p)
void SetCONFIG(Binary16_t)
void SetSTAT_EVE(Binary16_t)
Binary16_t GetSTAT_EVE()
_________ inline methodes _______________
void SetR_DEC_PAR(KVACQParam *p)