#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 | ||
) |
HGCNumberingScheme::~HGCNumberingScheme | ( | ) |
Definition at line 22 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 69 of file HGCNumberingScheme.cc.
References HGCalDDDConstants::assignCell(), hgcons_, x, and y.
std::pair< float, float > HGCNumberingScheme::getLocalCoords | ( | int | cell, |
int | layer | ||
) |
inverts the cell number in a trapezoid surface to local coordinates
Definition at line 74 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 24 of file HGCNumberingScheme.cc.
References TauDecayModes::dec, HGCalDDDConstants::geomMode(), HGCalGeometryMode::Hexagon, HGCalGeometryMode::HexagonFull, hgcons_, HGCalDDDConstants::isValidHex(), HGCalTestNumbering::packHexagonIndex(), HGCalTestNumbering::unpackHexagonIndex(), HGCalDDDConstants::waferFromCopy(), HGCalDDDConstants::waferFromPosition(), and ecaldqm::zside().
|
private |
Definition at line 38 of file HGCNumberingScheme.h.
Referenced by assignCell(), getLocalCoords(), and getUnitID().