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 18 of file PndMdtID.h.

Member Function Documentation

◆ Box()

static Short_t PndMdtID::Box ( Int_t  detID)
inlinestatic

Definition at line 31 of file PndMdtID.h.

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

31 { 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 21 of file PndMdtID.h.

Referenced by PndMdtIGeometry::MapWireToStrip().

21 { 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 23 of file PndMdtID.h.

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

◆ isStrip()

static Bool_t PndMdtID::isStrip ( Int_t  detID)
inlinestatic

Definition at line 35 of file PndMdtID.h.

35 { return detID % 10000 >= 2000; }

◆ isWire()

static Bool_t PndMdtID::isWire ( Int_t  detID)
inlinestatic

Definition at line 34 of file PndMdtID.h.

Referenced by PndMdtDigi::isWire().

34 { return detID % 10000 < 2000; }

◆ Layer()

static Short_t PndMdtID::Layer ( Int_t  detID)
inlinestatic

Definition at line 30 of file PndMdtID.h.

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

30 { 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 25 of file PndMdtID.h.

Referenced by PndMdtIGeometry::MapWireToStrip().

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

◆ LayerID() [2/2]

static Int_t PndMdtID::LayerID ( Int_t  detID)
inlinestatic

Definition at line 26 of file PndMdtID.h.

26 { return detID / 10000 * 10000; }

◆ Module()

static Short_t PndMdtID::Module ( Int_t  detID)
inlinestatic

Definition at line 28 of file PndMdtID.h.

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

28 { return (detID / 10000000); }

◆ Sector()

static Short_t PndMdtID::Sector ( Int_t  detID)
inlinestatic

Definition at line 29 of file PndMdtID.h.

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

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

◆ Strip()

static Short_t PndMdtID::Strip ( Int_t  detID)
inlinestatic

Definition at line 33 of file PndMdtID.h.

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

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

◆ Wire()

static Short_t PndMdtID::Wire ( Int_t  detID)
inlinestatic

Definition at line 32 of file PndMdtID.h.

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

32 { return (detID % 10); }

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