Belle II Software development
RealisticCDCGeometryTranslator Class Reference

This class uses the realistic detector geometry (the one after alignment procedure) for the translation of wire IDs into geometric positions. More...

#include <RealisticCDCGeometryTranslator.h>

Inheritance diagram for RealisticCDCGeometryTranslator:
CDCGeometryTranslatorBase

Public Member Functions

 RealisticCDCGeometryTranslator (bool wireSag=false)
 Constructor, with the additional parameter to control wire sag.
 
 ~RealisticCDCGeometryTranslator ()
 Destructor.
 
const B2Vector3D getWireForwardPosition (const WireID &wireID) override
 Get wire position at forward end.
 
const B2Vector3D getWireForwardPosition (const WireID &wireID, float z) override
 Get virtual wire position at forward end, corresponding to tangent line to wire at input z-position.
 
const B2Vector3D getWireBackwardPosition (const WireID &wireID) override
 Get wire position at backward end.
 
const B2Vector3D getWireBackwardPosition (const WireID &wireID, float z) override
 Get virtual wire position at backward end, corresponding to tangent line to wire at input z-position.
 

Private Attributes

bool m_wireSag
 Flag to activate the sense wire sag effect.
 

Detailed Description

This class uses the realistic detector geometry (the one after alignment procedure) for the translation of wire IDs into geometric positions.

Definition at line 21 of file RealisticCDCGeometryTranslator.h.

Constructor & Destructor Documentation

◆ RealisticCDCGeometryTranslator()

RealisticCDCGeometryTranslator ( bool  wireSag = false)
inlineexplicit

Constructor, with the additional parameter to control wire sag.

Definition at line 24 of file RealisticCDCGeometryTranslator.h.

24: m_wireSag(wireSag) {}
bool m_wireSag
Flag to activate the sense wire sag effect.

◆ ~RealisticCDCGeometryTranslator()

Destructor.

Definition at line 27 of file RealisticCDCGeometryTranslator.h.

27{}

Member Function Documentation

◆ getWireBackwardPosition() [1/2]

const B2Vector3D getWireBackwardPosition ( const WireID wireID)
inlineoverridevirtual

Get wire position at backward end.

Implements CDCGeometryTranslatorBase.

Definition at line 45 of file RealisticCDCGeometryTranslator.h.

46 {
47 return CDCGeometryPar::Instance().wireBackwardPosition(wireID, CDCGeometryPar::c_Aligned);
48 }
const B2Vector3D wireBackwardPosition(uint layerId, int cellId, EWirePosition set=c_Base) const
Returns the backward position of the input sense wire.
static CDCGeometryPar & Instance(const CDCGeometry *=nullptr)
Static method to get a reference to the CDCGeometryPar instance.

◆ getWireBackwardPosition() [2/2]

const B2Vector3D getWireBackwardPosition ( const WireID wireID,
float  z 
)
inlineoverridevirtual

Get virtual wire position at backward end, corresponding to tangent line to wire at input z-position.

Implements CDCGeometryTranslatorBase.

Definition at line 51 of file RealisticCDCGeometryTranslator.h.

52 {
53 B2Vector3D wPos = m_wireSag ?
54 CDCGeometryPar::Instance().wireBackwardPosition(wireID, z, CDCGeometryPar::c_Aligned) :
55 CDCGeometryPar::Instance().wireBackwardPosition(wireID, CDCGeometryPar::c_Aligned);
56 return wPos;
57 }
B2Vector3< double > B2Vector3D
typedef for common usage with double
Definition: B2Vector3.h:516

◆ getWireForwardPosition() [1/2]

const B2Vector3D getWireForwardPosition ( const WireID wireID)
inlineoverridevirtual

Get wire position at forward end.

Implements CDCGeometryTranslatorBase.

Definition at line 30 of file RealisticCDCGeometryTranslator.h.

31 {
32 return CDCGeometryPar::Instance().wireForwardPosition(wireID, CDCGeometryPar::c_Aligned);
33 }
const B2Vector3D wireForwardPosition(uint layerId, int cellId, EWirePosition set=c_Base) const
Returns the forward position of the input sense wire.

◆ getWireForwardPosition() [2/2]

const B2Vector3D getWireForwardPosition ( const WireID wireID,
float  z 
)
inlineoverridevirtual

Get virtual wire position at forward end, corresponding to tangent line to wire at input z-position.

Implements CDCGeometryTranslatorBase.

Definition at line 36 of file RealisticCDCGeometryTranslator.h.

37 {
38 B2Vector3D wPos = (m_wireSag) ?
39 CDCGeometryPar::Instance().wireForwardPosition(wireID, z, CDCGeometryPar::c_Aligned) :
40 CDCGeometryPar::Instance().wireForwardPosition(wireID, CDCGeometryPar::c_Aligned);
41 return wPos;
42 }

Member Data Documentation

◆ m_wireSag

bool m_wireSag
private

Flag to activate the sense wire sag effect.

true: activated; false: no effect.

Definition at line 65 of file RealisticCDCGeometryTranslator.h.


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