Belle II Software  release-08-01-10
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 32 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
sensorIDidentity 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 58 of file SVDCrossTalkStripsCalibrations.h.

59  {
60  return m_aDBObjPtr->get(sensorID.getLayerNumber(), sensorID.getLadderNumber(),
61  sensorID.getSensorNumber(), m_aDBObjPtr->sideIndex(isU),
62  strip);
63  }
DBObjPtr< t_payload > m_aDBObjPtr
SVDCrossTalkStripsCalibrations payload.

◆ 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
sensorIDidentity of the sensor for which the calibration is required
isUsensor side, true for p (u) side, false for n (v) side
clsPositioncluster 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 16 of file SVDCrossTalkStripsCalibrations.cc.

17 {
18  const VXD::SensorInfoBase* currentSensorInfo = dynamic_cast<const VXD::SensorInfoBase*>(&VXD::GeoCache::get(
19  sensorID));
21  float m_uPitch = currentSensorInfo->getUPitch(0);
23  float m_vPitch = currentSensorInfo->getVPitch(0);
25  float currentPitch;
26  if (isU) currentPitch = m_uPitch;
27  else currentPitch = m_vPitch;
28 
29  return isCrossTalkStrip(sensorID, isU, (int)(clsPosition / currentPitch + 0.5));
30 }
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...
static const SensorInfoBase & get(Belle2::VxdID id)
Return a reference to the SensorInfo of a given SensorID.
Definition: GeoCache.h:139

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