15#ifndef DQAEvent_DQAEvent_H
16#define DQAEvent_DQAEvent_H 1
19#include "GaudiKernel/DataObject.h"
20#include "GaudiKernel/boost_allocator.h"
50 unsigned int EventTag()
const;
54 void setEventTag(
unsigned int value);
62 void setBhabha(
bool value);
70 void setDimu(
bool value);
78 void setHadron(
bool value);
86 void setCosmic(
bool value);
90 bool PipiRhopi()
const;
94 void setPipiRhopi(
bool value);
102 void setRhopi(
bool value);
110 void setKstark(
bool value);
118 void setPpbar(
bool value);
122 bool Lambdalambdabar()
const;
126 void setLambdalambdabar(
bool value);
130 bool Ppbarpipi()
const;
134 void setPpbarpipi(
bool value);
139 static void*
operator new (
size_t size )
143 ::operator
new(size) );
149 static void*
operator new (
size_t size,
void* pObj )
151 return ::operator
new (size,pObj);
155 static void operator delete (
void* p )
159 ::operator
delete(p);
164 static void operator delete (
void* p,
void* pObj )
166 ::operator
delete (p, pObj);
174 enum EventTagBits{BhabhaBits = 0,
182 LambdalambdabarBits = 8,
186 enum EventTagMasks{BhabhaMask = 0x1L,
190 PipiRhopiMask = 0x10L,
194 LambdalambdabarMask = 0x100L,
195 PpbarpipiMask = 0x200L
199 unsigned int m_EventTag;
223 return 0 != ((m_EventTag & BhabhaMask) >> BhabhaBits);
228 unsigned int val = (
unsigned int)value;
229 m_EventTag &= ~BhabhaMask;
230 m_EventTag |= ((((
unsigned int)val) << BhabhaBits) & BhabhaMask);
235 return 0 != ((m_EventTag & DimuMask) >> DimuBits);
240 unsigned int val = (
unsigned int)value;
241 m_EventTag &= ~DimuMask;
242 m_EventTag |= ((((
unsigned int)val) << DimuBits) & DimuMask);
247 return 0 != ((m_EventTag & HadronMask) >> HadronBits);
252 unsigned int val = (
unsigned int)value;
253 m_EventTag &= ~HadronMask;
254 m_EventTag |= ((((
unsigned int)val) << HadronBits) & HadronMask);
259 return 0 != ((m_EventTag & CosmicMask) >> CosmicBits);
264 unsigned int val = (
unsigned int)value;
265 m_EventTag &= ~CosmicMask;
266 m_EventTag |= ((((
unsigned int)val) << CosmicBits) & CosmicMask);
271 return 0 != ((m_EventTag & PipiRhopiMask) >> PipiRhopiBits);
276 unsigned int val = (
unsigned int)value;
277 m_EventTag &= ~PipiRhopiMask;
278 m_EventTag |= ((((
unsigned int)val) << PipiRhopiBits) & PipiRhopiMask);
283 return 0 != ((m_EventTag & RhopiMask) >> RhopiBits);
288 unsigned int val = (
unsigned int)value;
289 m_EventTag &= ~RhopiMask;
290 m_EventTag |= ((((
unsigned int)val) << RhopiBits) & RhopiMask);
295 return 0 != ((m_EventTag & KstarkMask) >> KstarkBits);
300 unsigned int val = (
unsigned int)value;
301 m_EventTag &= ~KstarkMask;
302 m_EventTag |= ((((
unsigned int)val) << KstarkBits) & KstarkMask);
307 return 0 != ((m_EventTag & PpbarMask) >> PpbarBits);
312 unsigned int val = (
unsigned int)value;
313 m_EventTag &= ~PpbarMask;
314 m_EventTag |= ((((
unsigned int)val) << PpbarBits) & PpbarMask);
319 return 0 != ((m_EventTag & LambdalambdabarMask) >> LambdalambdabarBits);
324 unsigned int val = (
unsigned int)value;
325 m_EventTag &= ~LambdalambdabarMask;
326 m_EventTag |= ((((
unsigned int)val) << LambdalambdabarBits) & LambdalambdabarMask);
331 return 0 != ((m_EventTag & PpbarpipiMask) >> PpbarpipiBits);
336 unsigned int val = (
unsigned int)value;
337 m_EventTag &= ~PpbarpipiMask;
338 m_EventTag |= ((((
unsigned int)val) << PpbarpipiBits) & PpbarpipiMask);
DQAEvent()
Default Constructor.
unsigned int EventTag() const
void setBhabha(bool value)
void setLambdalambdabar(bool value)
void setEventTag(unsigned int value)
void setCosmic(bool value)
void setPpbarpipi(bool value)
void setKstark(bool value)
bool Lambdalambdabar() const
void setPipiRhopi(bool value)
virtual ~DQAEvent()
Default Destructor.
void setRhopi(bool value)
void setPpbar(bool value)
void setHadron(bool value)