ATLAS Offline Software
Loading...
Searching...
No Matches
InDetDD::detail Namespace Reference

Classes

struct  MessagingAdapter
struct  PixelDiodeTreeMaker
struct  PixelDiodeTreeMakerBase

Enumerations

enum  EPixelLocation { kCentral , kOuterEdge , kInnerEdge , kNPixelLocations }
enum  EDirection { kPhi , kEta , kNDirections }
enum class  FENumbering { kRegular , kMirror }

Functions

template<typename T>
bool validAttributeType (T val)
 convenience method to test whether the given value can be converted into an attribute
template<typename T>
InDetDD::PixelDiodeTree::AttributeType makeAttributeType (T val)
 convenience method to convert the given value into an attribute
template<class T_MsgParent>
PixelDiodeTree makePixelDiodeTree (T_MsgParent *gmt_mgr, InDetDD::PixelReadoutTechnology readoutTechnology, const std::array< int, kNDirections > &circuits, const std::array< int, kNDirections > &dimPerCircuit, const std::array< std::array< double, kNDirections >, kNPixelLocations > &pitch, FENumbering fe_numbering)

Enumeration Type Documentation

◆ EDirection

Enumerator
kPhi 
kEta 
kNDirections 

Definition at line 22 of file PixelGeoUtils.h.

◆ EPixelLocation

Enumerator
kCentral 
kOuterEdge 
kInnerEdge 
kNPixelLocations 

Definition at line 21 of file PixelGeoUtils.h.

◆ FENumbering

enum class InDetDD::detail::FENumbering
strong
Enumerator
kRegular 
kMirror 

Definition at line 24 of file PixelGeoUtils.h.

Function Documentation

◆ makeAttributeType()

template<typename T>
InDetDD::PixelDiodeTree::AttributeType InDetDD::detail::makeAttributeType ( T val)

convenience method to convert the given value into an attribute

Definition at line 78 of file PixelDiodeTreeBuilder.h.

79 {
80 assert( validAttributeType(val));
81 return static_cast<InDetDD::PixelDiodeTree::AttributeType>(val);
bool validAttributeType(T val)
convenience method to test whether the given value can be converted into an attribute

◆ makePixelDiodeTree()

template<class T_MsgParent>
PixelDiodeTree InDetDD::detail::makePixelDiodeTree ( T_MsgParent * gmt_mgr,
InDetDD::PixelReadoutTechnology readoutTechnology,
const std::array< int, kNDirections > & circuits,
const std::array< int, kNDirections > & dimPerCircuit,
const std::array< std::array< double, kNDirections >, kNPixelLocations > & pitch,
FENumbering fe_numbering )
inline

Definition at line 54 of file PixelGeoUtils.h.

59 {
60
62 auto ret=maker.make(readoutTechnology, circuits, dimPerCircuit, pitch, fe_numbering);
63 return ret;
64 }

◆ validAttributeType()

template<typename T>
bool InDetDD::detail::validAttributeType ( T val)

convenience method to test whether the given value can be converted into an attribute

Definition at line 69 of file PixelDiodeTreeBuilder.h.

70 {
71 static_assert( sizeof(T) <= sizeof(InDetDD::PixelDiodeTree::AttributeType));
72 auto storage_type = static_cast<InDetDD::PixelDiodeTree::AttributeType>(val);
73 T user_type = static_cast<T>(storage_type);
74 return val==user_type;