Belle II Software  release-05-02-19
SVDCrossTalkStripsCalibrations Class Reference

This class defines the dbobject and the method to access strips which are masked at FADC level. More...

#include <SVDCrossTalkStripsCalibrations.h>

Collaboration diagram for SVDCrossTalkStripsCalibrations:

Public Types

typedef SVDCalibrationsBase< SVDCalibrationsBitmapt_payload
 typedef of the SVDCrossTalkStripsCalibrations payload for all SVD strips
 

Public Member Functions

 SVDCrossTalkStripsCalibrations ()
 Constructor, no input argument is required.
 
bool isCrossTalkStrip (const VxdID &sensorID, const bool &isU, const unsigned short &strip) const
 This is the method for getting the comprehensive list of strips flagged as "cross talk" by the SVDCrossTalkFinderModule. More...
 
bool isInCrossTalkRegion (const VxdID &sensorID, const bool &isU, const float &clsPosition)
 This is the method for checking if a given region is affected by Cross Talk, according to the bitmap of strips flagged as cross talk. More...
 
TString getUniqueID ()
 returns the unique ID of the payload
 
bool isValid ()
 returns true if the m_aDBObtPtr is valid in the requested IoV
 

Static Public Attributes

static std::string name = std::string("SVDCrossTalkStripsCalibrations")
 name of the SVDCrossTalkStripsCalibrations payload
 

Private Attributes

DBObjPtr< t_payloadm_aDBObjPtr
 SVDCrossTalkStripsCalibrations payload.
 

Detailed Description

This class defines the dbobject and the method to access strips which are masked at FADC level.

Definition at line 44 of file SVDCrossTalkStripsCalibrations.h.

Member Function Documentation

◆ isCrossTalkStrip()

bool isCrossTalkStrip ( const VxdID sensorID,
const bool &  isU,
const unsigned short &  strip 
) const
inline

This is the method for getting the comprehensive list of strips flagged as "cross talk" by the SVDCrossTalkFinderModule.

Input:

Parameters
sensorID: identity of the sensor for which the calibration is required
isUsensor side, true for p (u) side, false for n (v) side
stripstrip number

Output: boolean value, 1 is cross talk strip, 0 otherwise. it throws std::out_of_range if the strip is unknown

Definition at line 71 of file SVDCrossTalkStripsCalibrations.h.

72  :
73  * @param sensor ID: identity of the sensor for which the
74  * calibration is required
75  * @param isU: sensor side, true for p (u) side, false for n (v) side
76  * @param strip: cluster position in cm

◆ isInCrossTalkRegion()

bool isInCrossTalkRegion ( const VxdID sensorID,
const bool &  isU,
const float &  clsPosition 
)

This is the method for checking if a given region is affected by Cross Talk, according to the bitmap of strips flagged as cross talk.

Input:

Parameters
sensorID: identity of the sensor for which the calibration is required
isUsensor side, true for p (u) side, false for n (v) side
stripcluster position in cm

Output: boolean value, 1 is cross talk region, 0 otherwise. it throws std::out_of_range if the strip is unknown

SensorInfo class providing information about the current sensor

getting the pitch dimension for u-side

getting the pitch dimension for v-side

Definition at line 9 of file SVDCrossTalkStripsCalibrations.cc.

10 {
11  const VXD::SensorInfoBase* currentSensorInfo = dynamic_cast<const VXD::SensorInfoBase*>(&VXD::GeoCache::get(
12  sensorID));
14  float m_uPitch = currentSensorInfo->getUPitch(0);
16  float m_vPitch = currentSensorInfo->getVPitch(0);
18  float currentPitch;
19  if (isU) currentPitch = m_uPitch;
20  else currentPitch = m_vPitch;
21 
22  return isCrossTalkStrip(sensorID, isU, (int)(clsPosition / currentPitch + 0.5));
23 }

The documentation for this class was generated from the following files:
Belle2::VXD::GeoCache::get
static const SensorInfoBase & get(Belle2::VxdID id)
Return a reference to the SensorInfo of a given SensorID.
Definition: GeoCache.h:141
Belle2::SVDCrossTalkStripsCalibrations::isCrossTalkStrip
bool isCrossTalkStrip(const VxdID &sensorID, const bool &isU, const unsigned short &strip) const
This is the method for getting the comprehensive list of strips flagged as "cross talk" by the SVDCro...
Definition: SVDCrossTalkStripsCalibrations.h:71