Belle II Software  release-05-01-25
SVDCrossTalkStripsCalibrations.cc
1 #include <svd/calibration/SVDCrossTalkStripsCalibrations.h>
2 #include <vxd/geometry/GeoCache.h>
3 #include <vxd/geometry/SensorInfoBase.h>
4 
5 
6 std::string Belle2::SVDCrossTalkStripsCalibrations::name = std::string("SVDCrossTalkStripsCalibrations");
7 
8 
9 bool Belle2::SVDCrossTalkStripsCalibrations::isInCrossTalkRegion(const VxdID& sensorID, const bool& isU , const float& clsPosition)
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 }
24 
Belle2::VxdID
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:43
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::VXD::SensorInfoBase
Base class to provide Sensor Information for PXD and SVD.
Definition: SensorInfoBase.h:40
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
Belle2::VXD::SensorInfoBase::getVPitch
double getVPitch(double v=0) const
Return the pitch of the sensor.
Definition: SensorInfoBase.h:150
Belle2::SVDCrossTalkStripsCalibrations::name
static std::string name
name of the SVDCrossTalkStripsCalibrations payload
Definition: SVDCrossTalkStripsCalibrations.h:46
Belle2::VXD::SensorInfoBase::getUPitch
double getUPitch(double v=0) const
Return the pitch of the sensor.
Definition: SensorInfoBase.h:143
Belle2::SVDCrossTalkStripsCalibrations::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 ...
Definition: SVDCrossTalkStripsCalibrations.cc:9