23
24{
25
26 Identifier compact;
28
29 int res = idHelper.
get_id(idHash,compact, &idCntxt);
31
32
33
35 IdentifierHash otherHash;
36 IdentifierHash neighbourHash;
37
44
45
46
48 {
55 }
56 else if(doEndcapEtaNeighbours){
58 if(nextInEta){
59 neighbourHash =
nextInEta->identifyHash();
61 }
62
64 if(trig_eta==9){
65
66
67
68 const InDetDD::SiDetectorElement* nextInEta2 = element.
prevInEta();
69 if(nextInEta2){
72 }
73 }
74 }
75
76
77
79 + epsilonWidth;
80}
std::pair< std::vector< unsigned int >, bool > res
virtual double maxWidth() const =0
Method to calculate maximum width of a module.
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
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...