PandaRoot
PndMdtID Class Reference

#include <PndMdtID.h>

Static Public Member Functions

static Int_t Identifier (Int_t iMod, Int_t iOct, Int_t iLayer, Int_t iBox, Int_t iWire)
 
static Int_t Identifier (Int_t iMod, Int_t iOct, Int_t iLayer, Int_t iStrip)
 
static Int_t LayerID (Int_t iMod, Int_t iOct, Int_t iLayer)
 
static Int_t LayerID (Int_t detID)
 
static Short_t Module (Int_t detID)
 
static Short_t Sector (Int_t detID)
 
static Short_t Layer (Int_t detID)
 
static Short_t Box (Int_t detID)
 
static Short_t Wire (Int_t detID)
 
static Short_t Strip (Int_t detID)
 
static Bool_t isWire (Int_t detID)
 
static Bool_t isStrip (Int_t detID)
 

Detailed Description

Definition at line 6 of file PndMdtID.h.

Member Function Documentation

◆ Box()

static Short_t PndMdtID::Box ( Int_t  detID)
inlinestatic

Definition at line 19 of file PndMdtID.h.

Referenced by PndMdtHit::GetBox(), PndMdtPoint::GetBox(), and PndMdtDigi::GetBox().

19 { return ((detID / 10) % 1000); }

◆ Identifier() [1/2]

static Int_t PndMdtID::Identifier ( Int_t  iMod,
Int_t  iOct,
Int_t  iLayer,
Int_t  iBox,
Int_t  iWire 
)
inlinestatic

Definition at line 9 of file PndMdtID.h.

Referenced by PndMdtIGeometry::MapWireToStrip().

9 { return iWire + 10 * iBox + 10000 * iLayer + 1000000 * iOct + 10000000 * iMod; }

◆ Identifier() [2/2]

static Int_t PndMdtID::Identifier ( Int_t  iMod,
Int_t  iOct,
Int_t  iLayer,
Int_t  iStrip 
)
inlinestatic

Definition at line 11 of file PndMdtID.h.

11 { return (iStrip + 2000) + (10000 * iLayer + 1000000 * iOct + 10000000 * iMod); }

◆ isStrip()

static Bool_t PndMdtID::isStrip ( Int_t  detID)
inlinestatic

Definition at line 23 of file PndMdtID.h.

23 { return detID % 10000 >= 2000; }

◆ isWire()

static Bool_t PndMdtID::isWire ( Int_t  detID)
inlinestatic

Definition at line 22 of file PndMdtID.h.

Referenced by PndMdtDigi::isWire().

22 { return detID % 10000 < 2000; }

◆ Layer()

static Short_t PndMdtID::Layer ( Int_t  detID)
inlinestatic

Definition at line 18 of file PndMdtID.h.

Referenced by PndMdtDigi::GetLayer(), PndMdtHit::GetLayerID(), PndMdtDigi::GetLayerID(), PndMdtPoint::GetLayerID(), and PndMdtIGeometry::MapWireToStrip().

18 { return ((detID / 10000) % 100); }

◆ LayerID() [1/2]

static Int_t PndMdtID::LayerID ( Int_t  iMod,
Int_t  iOct,
Int_t  iLayer 
)
inlinestatic

Definition at line 13 of file PndMdtID.h.

Referenced by PndMdtIGeometry::MapWireToStrip().

13 { return 10000 * iLayer + 1000000 * iOct + 10000000 * iMod; }

◆ LayerID() [2/2]

static Int_t PndMdtID::LayerID ( Int_t  detID)
inlinestatic

Definition at line 14 of file PndMdtID.h.

14 { return detID / 10000 * 10000; }

◆ Module()

static Short_t PndMdtID::Module ( Int_t  detID)
inlinestatic

Definition at line 16 of file PndMdtID.h.

Referenced by PndMdtHit::GetModule(), PndMdtDigi::GetModule(), PndMdtPoint::GetModule(), and PndMdtIGeometry::MapWireToStrip().

16 { return (detID / 10000000); }

◆ Sector()

static Short_t PndMdtID::Sector ( Int_t  detID)
inlinestatic

Definition at line 17 of file PndMdtID.h.

Referenced by PndMdtHit::GetSector(), PndMdtDigi::GetSector(), PndMdtPoint::GetSector(), and PndMdtIGeometry::MapWireToStrip().

17 { return ((detID / 1000000) % 10); }

◆ Strip()

static Short_t PndMdtID::Strip ( Int_t  detID)
inlinestatic

Definition at line 21 of file PndMdtID.h.

Referenced by PndMdtDigi::GetStrip(), and PndMdtHit::GetStrip1().

21 { return (detID % 10000 - 2000); }

◆ Wire()

static Short_t PndMdtID::Wire ( Int_t  detID)
inlinestatic

Definition at line 20 of file PndMdtID.h.

Referenced by PndMdtHit::GetWire(), PndMdtPoint::GetWire(), and PndMdtDigi::GetWire().

20 { return (detID % 10); }

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