HighLAND
Functions
ND::GeomId::SMRD Namespace Reference

Define the SMRD specific geometry identifiers. More...

Functions

bool IsSMRD (TGeometryId id)
 Test if this id is for the SMRD.
 
TGeometryId Module (int clam, int yoke, int layer, int slot)
 The geometry identifier for a SMRD module.
 
TGeometryId Bar (int clam, int yoke, int layer, int slot, int bar)
 The geometry identifer for a SMRD bar.
 
int GetModuleClam (TGeometryId id)
 
int GetModuleYoke (TGeometryId id)
 
int GetModuleLayer (TGeometryId id)
 
int GetModuleSlot (TGeometryId id)
 
int GetBarClam (TGeometryId id)
 
int GetBarYoke (TGeometryId id)
 
int GetBarLayer (TGeometryId id)
 
int GetBarSlot (TGeometryId id)
 
int GetBarNumber (TGeometryId id)
 

Detailed Description

Define the SMRD specific geometry identifiers.

Function Documentation

§ GetBarClam()

int ND::GeomId::SMRD::GetBarClam ( TGeometryId  id)

Get the bar information. This returns -1 if the id is invalid.

Definition at line 1606 of file ND280GeomId.cxx.

1606  {
1607  TSettableGeometryId id(i);
1608  if (ND::GeomId::Def::kSMRD
1609  != id.GetField(ND::GeomId::Def::kDetectorIdMSB,
1610  ND::GeomId::Def::kDetectorIdLSB)) return -1;
1612  != id.GetField(ND::GeomId::Def::SMRD::kSeqIdMSB,
1613  ND::GeomId::Def::SMRD::kSeqIdLSB)) return -1;
1614 
1615  return id.GetField(ND::GeomId::Def::SMRD::Bar::kClamMSB,
1616  ND::GeomId::Def::SMRD::Bar::kClamLSB);
1617 }
const GeomIdBit kDetectorIdLSB
The least significant bit of the detector identifier.
const GeomIdBit kDetectorIdMSB
const GeomIdBit kSeqIdMSB

§ GetModuleClam()

int ND::GeomId::SMRD::GetModuleClam ( TGeometryId  id)

Access the information for a Module. This returns -1 if the id is invalid.

Definition at line 1512 of file ND280GeomId.cxx.

1512  {
1513  TSettableGeometryId id(i);
1514  if (ND::GeomId::Def::kSMRD
1515  != id.GetField(ND::GeomId::Def::kDetectorIdMSB,
1516  ND::GeomId::Def::kDetectorIdLSB)) return -1;
1518  != id.GetField(ND::GeomId::Def::SMRD::kSeqIdMSB,
1519  ND::GeomId::Def::SMRD::kSeqIdLSB)) return -1;
1522  ND::GeomId::Def::SMRD::Global::kSeqIdLSB)) return -1;
1523 
1525  ND::GeomId::Def::SMRD::Global::Module::kClamLSB);
1526 }
const GeomIdBit kDetectorIdLSB
The least significant bit of the detector identifier.
const GeomIdBit kDetectorIdMSB
The sequence for all of the modules in the SMRD.
const GeomIdBit kSeqIdMSB