CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
DTTrigGeom Class Reference

#include <DTTrigGeom.h>

Public Member Functions

float cellH () const
 Height of a cell (cm) More...
 
float cellPitch () const
 Width of a cell (cm) i.e. distance between ywo wires. More...
 
GlobalPoint CMSPosition (const DTBtiId obj) const
 CMS position of a BTI. More...
 
GlobalPoint CMSPosition (const DTTracoId obj) const
 CMS position of a TRACO. More...
 
float distSL () const
 Distance between the phi view superlayers (cms) More...
 
 DTTrigGeom (const DTChamber *stat, bool debug)
 Constructor. More...
 
void dumpGeom () const
 Dump the geometry. More...
 
void dumpLUT (short int btic)
 Dump the LUT for this chamber. More...
 
void IEEE32toDSP (float f, short int &DSPmantissa, short int &DSPexp)
 
LocalPoint localPosition (const DTBtiId) const
 Local position in chamber of a BTI. More...
 
LocalPoint localPosition (const DTTracoId) const
 Local position in chamber of a TRACO. More...
 
int mapTubeInFEch (int nsl, int nlay, int ntube) const
 Staggering of first wire of layer respect to default: obsolete 19/6/06. More...
 
int nCell (int sl) const
 Number of BTIs in a required superlayer (i.e. nCells in lay 1) More...
 
float phiCh () const
 Rotation angle of chamber (deg) More...
 
float phiSLOffset ()
 Superlayer offset in chamber front-end frame, in cm. More...
 
int posFE (int sl) const
 Front End position : 1=toward negative y, 0=toward positive y. More...
 
int sector () const
 Return sector number. More...
 
void setGeom (const DTChamber *stat)
 Set/Update Geometry. More...
 
const DTChamberstat () const
 Associated chamber. More...
 
DTChamberId statId () const
 Identifier of the associated chamber. More...
 
int station () const
 Return station number. More...
 
GlobalPoint toGlobal (const LocalPoint p) const
 Go to CMS coordinate system for a point. More...
 
GlobalVector toGlobal (const LocalVector v) const
 Go to CMS coordinate system for a vector. More...
 
LocalPoint toLocal (const GlobalPoint p) const
 Go to Local coordinate system for a point. More...
 
LocalVector toLocal (const GlobalVector v) const
 Go to Local coordinate system for a vector. More...
 
LocalPoint tubePosInCh (int nsl, int nlay, int ntube) const
 Wire position in chamber frame. More...
 
int wheel () const
 Return wheel number. More...
 
float ZcenterSL () const
 Coordinate of center of the 2 Phi SL. More...
 
float ZSL (int) const
 Radial coordinate in chamber frame of center of a superlayer. More...
 
 ~DTTrigGeom ()
 Destructor. More...
 

Private Member Functions

void getGeom ()
 Get the geometry from the station. More...
 

Private Attributes

bool _debug
 
float _H
 
int _NCELL [3]
 
float _PHICH
 
float _PITCH
 
const DTChamber_stat
 
float _ZSL [3]
 

Detailed Description

Muon Barrel Trigger Geometry

Author
C.Grandi S.Vanini

Definition at line 41 of file DTTrigGeom.h.

Constructor & Destructor Documentation

DTTrigGeom::DTTrigGeom ( const DTChamber stat,
bool  debug 
)

Constructor.

Definition at line 52 of file DTTrigGeom.cc.

DTTrigGeom::~DTTrigGeom ( )

Destructor.

Definition at line 63 of file DTTrigGeom.cc.

Member Function Documentation

float DTTrigGeom::cellH ( ) const
inline

Height of a cell (cm)

Definition at line 75 of file DTTrigGeom.h.

float DTTrigGeom::cellPitch ( ) const
inline

Width of a cell (cm) i.e. distance between ywo wires.

Definition at line 78 of file DTTrigGeom.h.

GlobalPoint DTTrigGeom::CMSPosition ( const DTBtiId  obj) const
inline

CMS position of a BTI.

Definition at line 182 of file DTTrigGeom.h.

GlobalPoint DTTrigGeom::CMSPosition ( const DTTracoId  obj) const
inline

CMS position of a TRACO.

Definition at line 187 of file DTTrigGeom.h.

float DTTrigGeom::distSL ( ) const
inline

Distance between the phi view superlayers (cms)

Definition at line 81 of file DTTrigGeom.h.

void DTTrigGeom::dumpGeom ( ) const

Dump the geometry.

Definition at line 276 of file DTTrigGeom.cc.

Referenced by DTSCTrigUnit::dumpGeom().

void DTTrigGeom::dumpLUT ( short int  btic)

Dump the LUT for this chamber.

Definition at line 327 of file DTTrigGeom.cc.

Referenced by DTSCTrigUnit::dumpLUT().

void DTTrigGeom::getGeom ( )
private

Get the geometry from the station.

Definition at line 211 of file DTTrigGeom.cc.

void DTTrigGeom::IEEE32toDSP ( float  f,
short int &  DSPmantissa,
short int &  DSPexp 
)

Definition at line 493 of file DTTrigGeom.cc.

LocalPoint DTTrigGeom::localPosition ( const DTBtiId  id) const

Local position in chamber of a BTI.

NB: attention: in NEWGEO definition has changed:

 +---------+---------+---------+
 | 1  o    | 5  o    | 9  o    |
 +----+----+----+----+----+----+
      | 3  o    |  7 o    |
 +----+----+----+----+----+ - - - -> x/-x
 | 2  o    | 6  o    |
 +----+----+----+----+----+
      | 4  o    | 8  o    |  
      +---------+---------+
      ^
      |
     x=0

Definition at line 523 of file DTTrigGeom.cc.

LocalPoint DTTrigGeom::localPosition ( const DTTracoId  id) const

Local position in chamber of a TRACO.

    NB: attention: in NEWGEO definition has changed:

    +----+----+----+----+----+----+----+----+----+----+----+----+
    |  5 |  6 |  7 |  8 |  9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
    +----+----+----+----+----+----+----+----+----+----+----+----+
    \                                                           /
    | \                                                       /
    |   \                                                   /
    |     \                                               /
    |       \                                           /
----|-------------------------------------------------------------------> 
    |          \                                     /
    |            \                                 /
    |              \                             /
    |                \                         /
    |                  \                     /
    |                   +----+----+----+----+
    |                   |  1 |  2 |  3 |  4 |
    |                   +----+----+----+----+
    X=0
    ^
    |
   traco position

Definition at line 584 of file DTTrigGeom.cc.

int DTTrigGeom::mapTubeInFEch ( int  nsl,
int  nlay,
int  ntube 
) const

Staggering of first wire of layer respect to default: obsolete 19/6/06.

Map tube number into hw wire number, and reverse hw num->tube (nb NOT in bti hardware number, this depends on connectors)

Definition at line 144 of file DTTrigGeom.cc.

int DTTrigGeom::nCell ( int  sl) const
inline

Number of BTIs in a required superlayer (i.e. nCells in lay 1)

Definition at line 90 of file DTTrigGeom.h.

float DTTrigGeom::phiCh ( ) const
inline

Rotation angle of chamber (deg)

Definition at line 72 of file DTTrigGeom.h.

float DTTrigGeom::phiSLOffset ( )

Superlayer offset in chamber front-end frame, in cm.

Definition at line 71 of file DTTrigGeom.cc.

int DTTrigGeom::posFE ( int  sl) const

Front End position : 1=toward negative y, 0=toward positive y.

Definition at line 191 of file DTTrigGeom.cc.

int DTTrigGeom::sector ( void  ) const
inline

Return sector number.

Definition at line 67 of file DTTrigGeom.h.

Referenced by DTGeomSupplier::sector(), and DTSCTrigUnit::sector().

void DTTrigGeom::setGeom ( const DTChamber stat)

Set/Update Geometry.

Definition at line 203 of file DTTrigGeom.cc.

Referenced by DTSCTrigUnit::setGeom().

const DTChamber* DTTrigGeom::stat ( ) const
inline

Associated chamber.

Definition at line 52 of file DTTrigGeom.h.

Referenced by DTGeomSupplier::stat(), and DTSCTrigUnit::stat().

DTChamberId DTTrigGeom::statId ( ) const
inline

Identifier of the associated chamber.

Definition at line 55 of file DTTrigGeom.h.

Referenced by DTGeomSupplier::ChamberId(), and DTSCTrigUnit::statId().

int DTTrigGeom::station ( ) const
inline

Return station number.

Definition at line 64 of file DTTrigGeom.h.

Referenced by DTGeomSupplier::station(), and DTSCTrigUnit::station().

GlobalPoint DTTrigGeom::toGlobal ( const LocalPoint  p) const
inline

Go to CMS coordinate system for a point.

Definition at line 115 of file DTTrigGeom.h.

Referenced by DTGeomSupplier::CMSDirection(), and DTGeomSupplier::CMSPosition().

GlobalVector DTTrigGeom::toGlobal ( const LocalVector  v) const
inline

Go to CMS coordinate system for a vector.

Definition at line 118 of file DTTrigGeom.h.

LocalPoint DTTrigGeom::toLocal ( const GlobalPoint  p) const
inline

Go to Local coordinate system for a point.

Definition at line 121 of file DTTrigGeom.h.

LocalVector DTTrigGeom::toLocal ( const GlobalVector  v) const
inline

Go to Local coordinate system for a vector.

Definition at line 124 of file DTTrigGeom.h.

LocalPoint DTTrigGeom::tubePosInCh ( int  nsl,
int  nlay,
int  ntube 
) const

Wire position in chamber frame.

Definition at line 169 of file DTTrigGeom.cc.

int DTTrigGeom::wheel ( ) const
inline

Return wheel number.

Definition at line 61 of file DTTrigGeom.h.

Referenced by DTGeomSupplier::wheel(), and DTSCTrigUnit::wheel().

float DTTrigGeom::ZcenterSL ( ) const
inline

Coordinate of center of the 2 Phi SL.

Definition at line 84 of file DTTrigGeom.h.

float DTTrigGeom::ZSL ( int  sl) const

Radial coordinate in chamber frame of center of a superlayer.

Definition at line 265 of file DTTrigGeom.cc.

Member Data Documentation

bool DTTrigGeom::_debug
private

Definition at line 213 of file DTTrigGeom.h.

float DTTrigGeom::_H
private

Definition at line 209 of file DTTrigGeom.h.

int DTTrigGeom::_NCELL[3]
private

Definition at line 212 of file DTTrigGeom.h.

float DTTrigGeom::_PHICH
private

Definition at line 208 of file DTTrigGeom.h.

float DTTrigGeom::_PITCH
private

Definition at line 210 of file DTTrigGeom.h.

const DTChamber* DTTrigGeom::_stat
private

Definition at line 205 of file DTTrigGeom.h.

float DTTrigGeom::_ZSL[3]
private

Definition at line 211 of file DTTrigGeom.h.