Belle II Software development
CDCDisplacement Class Reference

Database object for displacement of sense wire position. More...

#include <CDCDisplacement.h>

Inheritance diagram for CDCDisplacement:

Public Member Functions

 CDCDisplacement ()
 Default constructor.
 
 CDCDisplacement (const WireID &wire, ROOT::Math::XYZVector fwd, ROOT::Math::XYZVector bwd, float tension)
 Constructor.
 
unsigned short getEWire () const
 Getter for EWireID.
 
unsigned short getISuperLayer () const
 Getter for Super-Layer.
 
unsigned short getILayer () const
 Getter for layer within the Super-Layer.
 
unsigned short getIWire () const
 Getter for wire within the layer.
 
int getICLayer () const
 Getter for continuous layer numbering.
 
float getXFwd () const
 Getter for fwd x-position.
 
float getYFwd () const
 Getter for fwd y-position.
 
float getZFwd () const
 Getter for fwd z-position.
 
float getXBwd () const
 Getter for bwd x-position.
 
float getYBwd () const
 Getter for bwd y-position.
 
float getZBwd () const
 Getter for bwd z-position.
 
float getTension () const
 Getter for wire tension.
 

Private Member Functions

 ClassDef (CDCDisplacement, 4)
 ClassDef.
 

Private Attributes

unsigned short m_wire
 Wire ID.
 
ROOT::Math::XYZVector m_fwd
 Displacement of forward side.
 
ROOT::Math::XYZVector m_bwd
 Displacement of backward side.
 
float m_tension
 Displacement of wire tension (grW)
 

Detailed Description

Database object for displacement of sense wire position.

Definition at line 25 of file CDCDisplacement.h.

Constructor & Destructor Documentation

◆ CDCDisplacement() [1/2]

CDCDisplacement ( )
inline

Default constructor.

Definition at line 31 of file CDCDisplacement.h.

31 :
32 m_wire(65535), m_fwd(), m_bwd(), m_tension()
33 {
34 }
unsigned short m_wire
Wire ID.
ROOT::Math::XYZVector m_bwd
Displacement of backward side.
float m_tension
Displacement of wire tension (grW)
ROOT::Math::XYZVector m_fwd
Displacement of forward side.

◆ CDCDisplacement() [2/2]

CDCDisplacement ( const WireID wire,
ROOT::Math::XYZVector  fwd,
ROOT::Math::XYZVector  bwd,
float  tension 
)
inline

Constructor.

Definition at line 40 of file CDCDisplacement.h.

40 :
41 m_wire(wire), m_fwd(fwd), m_bwd(bwd), m_tension(tension)
42 {
43 }

Member Function Documentation

◆ getEWire()

unsigned short getEWire ( ) const
inline

Getter for EWireID.

Definition at line 46 of file CDCDisplacement.h.

47 {
48 return m_wire;
49 }

◆ getICLayer()

int getICLayer ( ) const
inline

Getter for continuous layer numbering.

Definition at line 75 of file CDCDisplacement.h.

76 {
77 if (getISuperLayer() == 0) { return getILayer(); }
78 return 8 + (getISuperLayer() - 1) * 6 + getILayer();
79 }
unsigned short getISuperLayer() const
Getter for Super-Layer.
unsigned short getILayer() const
Getter for layer within the Super-Layer.

◆ getILayer()

unsigned short getILayer ( ) const
inline

Getter for layer within the Super-Layer.

Definition at line 60 of file CDCDisplacement.h.

61 {
62 return ((m_wire % 4096) / 512);
63 }

◆ getISuperLayer()

unsigned short getISuperLayer ( ) const
inline

Getter for Super-Layer.

Definition at line 54 of file CDCDisplacement.h.

55 {
56 return (m_wire / 4096);
57 }

◆ getIWire()

unsigned short getIWire ( ) const
inline

Getter for wire within the layer.

This getter works for the official numbering scheme as well as the one used in the geometry build-up.

Definition at line 69 of file CDCDisplacement.h.

70 {
71 return (m_wire % 512);
72 }

◆ getTension()

float getTension ( ) const
inline

Getter for wire tension.

Definition at line 100 of file CDCDisplacement.h.

100{return m_tension;}

◆ getXBwd()

float getXBwd ( ) const
inline

Getter for bwd x-position.

Definition at line 91 of file CDCDisplacement.h.

91{return m_bwd.X();}

◆ getXFwd()

float getXFwd ( ) const
inline

Getter for fwd x-position.

Definition at line 82 of file CDCDisplacement.h.

82{return m_fwd.X();}

◆ getYBwd()

float getYBwd ( ) const
inline

Getter for bwd y-position.

Definition at line 94 of file CDCDisplacement.h.

94{return m_bwd.Y();}

◆ getYFwd()

float getYFwd ( ) const
inline

Getter for fwd y-position.

Definition at line 85 of file CDCDisplacement.h.

85{return m_fwd.Y();}

◆ getZBwd()

float getZBwd ( ) const
inline

Getter for bwd z-position.

Definition at line 97 of file CDCDisplacement.h.

97{return m_bwd.Z();}

◆ getZFwd()

float getZFwd ( ) const
inline

Getter for fwd z-position.

Definition at line 88 of file CDCDisplacement.h.

88{return m_fwd.Z();}

Member Data Documentation

◆ m_bwd

ROOT::Math::XYZVector m_bwd
private

Displacement of backward side.

Definition at line 105 of file CDCDisplacement.h.

◆ m_fwd

ROOT::Math::XYZVector m_fwd
private

Displacement of forward side.

Definition at line 104 of file CDCDisplacement.h.

◆ m_tension

float m_tension
private

Displacement of wire tension (grW)

Definition at line 106 of file CDCDisplacement.h.

◆ m_wire

unsigned short m_wire
private

Wire ID.

Definition at line 103 of file CDCDisplacement.h.


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