Belle II Software development
cdc data objects

Classes

class  CDCDedxHit
 Class to store CDC hit information needed for dedx. More...
 
class  CDCDedxLikelihood
 Container for likelihoods obtained by the CDC dE/dx PID (CDCDedxPIDModule). More...
 
class  CDCDedxTrack
 Debug output for CDCDedxPID module. More...
 
class  CDCHit
 Class containing the result of the unpacker in raw data and the result of the digitizer in simulation. More...
 
class  CDCRawHit
 The CDCRawHit (suppressed mode) class. More...
 
class  CDCRawHitWaveForm
 The CDCRawHitWaveForm (Full output mode) class. More...
 
class  CDCRecoHit
 This class is used to transfer CDC information to the track fit. More...
 
class  CDCSimHit
 Example Detector. More...
 
class  WireID
 Class to identify a wire inside the CDC. More...
 

Functions

double getSignedDOCAXY () const
 Returns signed distance-of-closest-approach in XY projection.
 
double getEntranceAngle () const
 Returns entrance angle to the cell in XY projection.
 

Detailed Description

Function Documentation

◆ getEntranceAngle()

double getEntranceAngle ( ) const

Returns entrance angle to the cell in XY projection.

Keeping here the same angle definition as in CDCDedxPIDModule

Returns
entracne angle

Definition at line 25 of file CDCDedxHit.cc.

26 {
27 double px = m_px;
28 double py = m_py;
29 double wx = m_x + m_dx;
30 double wy = m_y + m_dy;
31 double cross = wx * py - wy * px;
32 double dot = wx * px + wy * py;
33
34 return std::atan2(cross, dot);
35 }
float m_dy
DOCA, y coordinate.
Definition: CDCDedxHit.h:161
float m_dx
DOCA, x coordinate.
Definition: CDCDedxHit.h:160
float m_py
POCA momentum, y coordinate.
Definition: CDCDedxHit.h:155
float m_px
POCA momentum, x coordinate.
Definition: CDCDedxHit.h:154
float m_y
POCA on track, y coordinate.
Definition: CDCDedxHit.h:158
float m_x
POCA on track, x coordinate.
Definition: CDCDedxHit.h:157
T dot(GeneralVector< T > a, GeneralVector< T > b)
dot product of two general vectors
Definition: beamHelpers.h:163

◆ getSignedDOCAXY()

double getSignedDOCAXY ( ) const

Returns signed distance-of-closest-approach in XY projection.

Keeping here the same sign definition as in CDCDedxPIDModule (positive in +phi direction)

Returns
signed DOCA in XY projection

Definition at line 16 of file CDCDedxHit.cc.

17 {
18 double doca = std::sqrt(m_dx * m_dx + m_dy * m_dy);
19 double z = m_dx * m_y - m_dy * m_x;
20 if (z < 0) doca = -doca;
21
22 return doca;
23 }