#include <HGCNumberingScheme.h>
Public Types | |
enum | HGCNumberingParameters { HGCCellSize } |
Public Member Functions | |
int | assignCell (float x, float y, int layer) |
maps a hit position to a sequential cell in a trapezoid surface defined by h,b,t More... | |
std::pair< float, float > | getLocalCoords (int cell, int layer) |
inverts the cell number in a trapezoid surface to local coordinates More... | |
uint32_t | getUnitID (ForwardSubdetector subdet, int layer, int module, int cell, int iz, const G4ThreeVector &pos) |
assigns the det id to a hit More... | |
HGCNumberingScheme (const HGCalDDDConstants &hgc, std::string &name) | |
~HGCNumberingScheme () | |
Private Member Functions | |
HGCNumberingScheme ()=delete | |
Private Attributes | |
const HGCalDDDConstants & | hgcons_ |
Definition at line 13 of file HGCNumberingScheme.h.
HGCNumberingScheme::HGCNumberingScheme | ( | const HGCalDDDConstants & | hgc, |
std::string & | name | ||
) |
Definition at line 18 of file HGCNumberingScheme.cc.
References dataset::name.
HGCNumberingScheme::~HGCNumberingScheme | ( | ) |
Definition at line 24 of file HGCNumberingScheme.cc.
|
privatedelete |
int HGCNumberingScheme::assignCell | ( | float | x, |
float | y, | ||
int | layer | ||
) |
maps a hit position to a sequential cell in a trapezoid surface defined by h,b,t
Definition at line 74 of file HGCNumberingScheme.cc.
References HGCalDDDConstants::assignCell(), and hgcons_.
std::pair< float, float > HGCNumberingScheme::getLocalCoords | ( | int | cell, |
int | layer | ||
) |
inverts the cell number in a trapezoid surface to local coordinates
Definition at line 80 of file HGCNumberingScheme.cc.
References hgcons_, and HGCalDDDConstants::locateCell().
uint32_t HGCNumberingScheme::getUnitID | ( | ForwardSubdetector | subdet, |
int | layer, | ||
int | module, | ||
int | cell, | ||
int | iz, | ||
const G4ThreeVector & | pos | ||
) |
assigns the det id to a hit
Definition at line 28 of file HGCNumberingScheme.cc.
References TauDecayModes::dec, HGCalDDDConstants::geomMode(), HGCalGeometryMode::Hexagon, HGCalGeometryMode::HexagonFull, hgcons_, HGCalDDDConstants::isValidHex(), HGCalTestNumbering::packHexagonIndex(), HGCalDDDConstants::waferFromCopy(), and HGCalDDDConstants::waferFromPosition().
|
private |
Definition at line 42 of file HGCNumberingScheme.h.
Referenced by assignCell(), getLocalCoords(), and getUnitID().