11#include "Identifier/Identifier.h"
29 int res = idHelper.
get_id(idHash,compact, &idCntxt);
56 else if(doEndcapEtaNeighbours){
59 neighbourHash = nextInEta->identifyHash();
std::pair< std::vector< unsigned int >, bool > res
This is an Identifier helper class for the SCT subdetector.
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
This is a "hash" representation of an Identifier.
virtual double maxWidth() const =0
Method to calculate maximum width of a module.
Class to hold geometrical description of a silicon detector element.
virtual const SiDetectorDesign & design() const override final
access to the local description (inline):
bool isStereo() const
Check if it is the stereo side (useful for SCT)
const SiDetectorElement * prevInEta() const
const SiDetectorElement * nextInEta() const
virtual IdentifierHash identifyHash() const override final
identifier hash (inline)
std::vector< IdentifierHash > m_neighbours
SiElementProperties(const IdentifierHash &idHash, const SCT_ID &idHelper, const InDetDD::SiDetectorElement &element, float epsilonWidth, const bool doEncapEtaNeighbours=false)
This is an Identifier helper class for the SCT subdetector.
int get_prev_in_eta(const IdentifierHash &id, IdentifierHash &prev) const
Previous wafer hash in eta (return == 0 for neighbor found)
virtual int get_id(const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const override final
Create compact id from hash id (return == 0 for OK)
int get_prev_in_phi(const IdentifierHash &id, IdentifierHash &prev) const
Previous wafer hash in phi (return == 0 for neighbor found)
int get_next_in_eta(const IdentifierHash &id, IdentifierHash &next) const
Next wafer hash in eta (return == 0 for neighbor found)
int eta_module(const Identifier &id) const
int get_next_in_phi(const IdentifierHash &id, IdentifierHash &next) const
Next wafer hash in phi (return == 0 for neighbor found)
IdContext wafer_context() const
int get_other_side(const IdentifierHash &id, IdentifierHash &other) const
Wafer hash on other side.
bool is_barrel(const Identifier &id) const
Test for barrel - WARNING: id MUST be sct id, otherwise answer is not accurate. Use SiliconID for gen...