|
ATLAS Offline Software
|
Go to the documentation of this file.
20 #ifndef SIDIGITIZATION_SIHELPER_H
21 #define SIDIGITIZATION_SIHELPER_H
23 #include "GaudiKernel/MsgStream.h"
134 if (
log) (*log) << MSG::ERROR <<
"Bunch Number not allowed" <<
endmsg;
136 chDiode.
m_word = chDiode.
m_word | ( (bunch&0xff) <<8 ) ;
143 if (nstrip > 0xfff) {
144 if (
log) (*log) << MSG::ERROR <<
"Number of strips not allowed" <<
endmsg;
146 chDiode.
m_word = chDiode.
m_word | ((nstrip&0xfff) << 16 ) ;
154 if (
log) (*log) << MSG::ERROR <<
"TimeBin not allowed" <<
endmsg;
156 chDiode.
m_word = chDiode.
m_word | ( (
static_cast<unsigned int>(
time)&0xf) <<28 ) ;
196 return ( (chDiode.
m_word >> 8) & 0xff );
200 return ( (chDiode.
m_word >> 16) & 0xfff );
204 return ( (chDiode.
m_word >> 28) & 0xf );
singleton-like access to IMessageSvc via open function and helper
static bool isDisabled(SiChargedDiode &chDiode)
static void noise(SiChargedDiode &chDiode, bool flag, bool mask=false)
static void maskOut(SiChargedDiode &chDiode, bool flag)
static void disabled(SiChargedDiode &chDiode, bool flag, bool mask=false)
static bool isClusterUsed(SiChargedDiode &chDiode)
static void SetTimeBin(SiChargedDiode &chDiode, int time, MsgStream *log=nullptr)
static void belowThreshold(SiChargedDiode &chDiode, bool flag, bool mask=false)
static bool isBadToT(SiChargedDiode &chDiode)
static void SetBunch(SiChargedDiode &chDiode, int bunch, MsgStream *log=nullptr)
static int GetTimeBin(SiChargedDiode &chDiode)
static int GetBunch(SiChargedDiode &chDiode)
static bool isMaskOut(SiChargedDiode &chDiode)
static void ClusterUsed(SiChargedDiode &chDiode, bool flag)
static bool isNoise(SiChargedDiode &chDiode)
static int GetStripNum(SiChargedDiode &chDiode)
static bool isUsable(SiChargedDiode &chDiode)
static void disconnected(SiChargedDiode &chDiode, bool flag, bool mask=false)
static void badToT(SiChargedDiode &chDiode, bool flag, bool mask=false)
def time(flags, cells_name, *args, **kw)
static void SetStripNum(SiChargedDiode &chDiode, int nstrip, MsgStream *log=nullptr)
static bool isDisconnected(SiChargedDiode &chDiode)
static bool isBelowThreshold(SiChargedDiode &chDiode)