Belle II Software development
PXDGatedModeInfo Class Reference

The PXD Gated Info Class. More...

#include <PXDGatedModeInfo.h>

Inheritance diagram for PXDGatedModeInfo:

Public Member Functions

 PXDGatedModeInfo ()
 Default constructor for the ROOT IO.
 
void setFullGated (bool b)
 Set flag that we triggered while detector was gated.
 
bool isFullGated () const
 Return if data was recorded while detector was gated.
 
void setReadoutGated (bool b)
 Set flag that we triggered while detector was gated.
 
bool isReadoutGated () const
 Return if data was readout while detector was gated.
 
bool isGateOK (VxdID id, int gate) const
 Return if gate is ok.
 
bool isVCellOK (VxdID id, int vCellId) const
 is the VCELL valid
 
void setGateGatedL2 (int gate, bool gated)
 set gate status of specific gate
 

Private Attributes

bool m_fullGated
 Sensor was in gated mode while triggered.
 
bool m_readoutGated
 Sensor switched to gated mode during readout.
 
std::vector< bool > m_gateStatus
 Status of Gates (true=gated), the gates are numbered as (VCellID/4) for Layer 2 (as rolling shutter runs in V direction), and invers for Layer 1.
 

Detailed Description

The PXD Gated Info Class.

Here we store the information for all gates of all modules if the read out value is useable for reco. if the sensor was completely gated, no gate contains any signal information if the sensor was gates during readout, a few gates do not contain useful info, as the gating process messes up the adc values

Definition at line 33 of file PXDGatedModeInfo.h.

Constructor & Destructor Documentation

◆ PXDGatedModeInfo()

PXDGatedModeInfo ( )
inline

Default constructor for the ROOT IO.

Definition at line 37 of file PXDGatedModeInfo.h.

37: m_fullGated(false), m_readoutGated(false) {}
bool m_readoutGated
Sensor switched to gated mode during readout.
bool m_fullGated
Sensor was in gated mode while triggered.

Member Function Documentation

◆ isFullGated()

bool isFullGated ( ) const
inline

Return if data was recorded while detector was gated.

Returns
detector was gated

Definition at line 48 of file PXDGatedModeInfo.h.

48{ return m_fullGated; }

◆ isGateOK()

bool isGateOK ( VxdID  id,
int  gate 
) const
inline

Return if gate is ok.

Returns
gate is ok

Definition at line 63 of file PXDGatedModeInfo.h.

64 {
65 if (m_fullGated) {
66 return false;
67 } else {
68 if (m_readoutGated) {
69 if (id.getLayerNumber() == 1) {
70 gate = 192 - 1 - gate;
71 }
72 if (gate < 0 || gate >= 192) {
73 B2ERROR("Invalid Gate");
74 return false;
75 }
76 return !m_gateStatus[gate];
77 } else {
78 return true;
79 }
80 }
81 }
std::vector< bool > m_gateStatus
Status of Gates (true=gated), the gates are numbered as (VCellID/4) for Layer 2 (as rolling shutter r...

◆ isReadoutGated()

bool isReadoutGated ( ) const
inline

Return if data was readout while detector was gated.

Returns
detector was gated

Definition at line 58 of file PXDGatedModeInfo.h.

58{ return m_readoutGated; }

◆ isVCellOK()

bool isVCellOK ( VxdID  id,
int  vCellId 
) const
inline

is the VCELL valid

Definition at line 84 of file PXDGatedModeInfo.h.

84{ return isGateOK(id, vCellId / 4); }
bool isGateOK(VxdID id, int gate) const
Return if gate is ok.

◆ setFullGated()

void setFullGated ( bool  b)
inline

Set flag that we triggered while detector was gated.

Parameters
bgated

Definition at line 43 of file PXDGatedModeInfo.h.

43{ m_fullGated = b; }

◆ setGateGatedL2()

void setGateGatedL2 ( int  gate,
bool  gated 
)
inline

set gate status of specific gate

Definition at line 87 of file PXDGatedModeInfo.h.

88 {
89 if (gate < 0 || gate >= 192) {
90 B2ERROR("Invalid Gate");
91 } else {
92 m_gateStatus[gate] = gated;
93 }
94 }

◆ setReadoutGated()

void setReadoutGated ( bool  b)
inline

Set flag that we triggered while detector was gated.

Parameters
bgated

Definition at line 53 of file PXDGatedModeInfo.h.

53{ m_readoutGated = b; }

Member Data Documentation

◆ m_fullGated

bool m_fullGated
private

Sensor was in gated mode while triggered.

Definition at line 97 of file PXDGatedModeInfo.h.

◆ m_gateStatus

std::vector<bool> m_gateStatus
private

Status of Gates (true=gated), the gates are numbered as (VCellID/4) for Layer 2 (as rolling shutter runs in V direction), and invers for Layer 1.

Definition at line 101 of file PXDGatedModeInfo.h.

◆ m_readoutGated

bool m_readoutGated
private

Sensor switched to gated mode during readout.

Definition at line 98 of file PXDGatedModeInfo.h.


The documentation for this class was generated from the following file: