CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
mkfit::ModuleShape Struct Reference

#include <TrackerInfo.h>

Public Member Functions

bool is_rect () const
 
bool is_trap () const
 
bool operator== (const ModuleShape &s) const
 
float rmu (float x)
 
void round_assign (float x1, float x2, float y, float z)
 

Public Attributes

float dx1
 
float dx2
 
float dy
 
float dz
 

Detailed Description

Definition at line 31 of file TrackerInfo.h.

Member Function Documentation

◆ is_rect()

bool mkfit::ModuleShape::is_rect ( ) const
inline

Definition at line 46 of file TrackerInfo.h.

References dx2.

46 { return dx2 == 0.f; }

◆ is_trap()

bool mkfit::ModuleShape::is_trap ( ) const
inline

Definition at line 47 of file TrackerInfo.h.

References dx2.

47 { return dx2 != 0.f; }

◆ operator==()

bool mkfit::ModuleShape::operator== ( const ModuleShape s) const
inline

Definition at line 49 of file TrackerInfo.h.

References dx1, dx2, dy, dz, and alignCSCRings::s.

49 { return dx1 == s.dx1 && dx2 == s.dx2 && dy == s.dy && dz == s.dz; }

◆ rmu()

float mkfit::ModuleShape::rmu ( float  x)
inline

Definition at line 38 of file TrackerInfo.h.

References MillePedeFileConverter_cfg::e, f, and x.

Referenced by round_assign().

38 { return std::round(1e4f * x) * 1e-4f; }
double f[11][100]

◆ round_assign()

void mkfit::ModuleShape::round_assign ( float  x1,
float  x2,
float  y,
float  z 
)
inline

Definition at line 39 of file TrackerInfo.h.

References dx1, dx2, dy, dz, and rmu().

Referenced by MkFitGeometryESProducer::fillShapeAndPlacement().

39  {
40  dx1 = rmu(x1);
41  dx2 = rmu(x2);
42  dy = rmu(y);
43  dz = rmu(z);
44  }
float rmu(float x)
Definition: TrackerInfo.h:38

Member Data Documentation

◆ dx1

float mkfit::ModuleShape::dx1

Definition at line 32 of file TrackerInfo.h.

Referenced by operator==(), mkfit::TrackerInfo::print_tracker(), and round_assign().

◆ dx2

float mkfit::ModuleShape::dx2

◆ dy

float mkfit::ModuleShape::dy

Definition at line 34 of file TrackerInfo.h.

Referenced by operator==(), mkfit::TrackerInfo::print_tracker(), and round_assign().

◆ dz

float mkfit::ModuleShape::dz