ATLAS Offline Software
Classes | Enumerations | Functions
InDetDD::detail Namespace Reference

Classes

struct  MessagingAdapter
 
struct  PixelDiodeTreeMaker
 
struct  PixelDiodeTreeMakerBase
 

Enumerations

enum  EPixelLocation { kCentral, kOuterEdge, kInnerEdge, kNPixelLocations }
 
enum  EDirection { kPhi, kEta, kNDirections }
 

Functions

template<typename T >
bool validAttributeType (T val)
 convenience method to test whether the given value can be converted into an attribute More...
 
template<typename T >
InDetDD::PixelDiodeTree::AttributeType makeAttributeType (T val)
 convenience method to convert the given value into an attribute More...
 
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)
 

Enumeration Type Documentation

◆ EDirection

Enumerator
kPhi 
kEta 
kNDirections 

Definition at line 20 of file PixelGeoUtils.h.

◆ EPixelLocation

Enumerator
kCentral 
kOuterEdge 
kInnerEdge 
kNPixelLocations 

Definition at line 19 of file PixelGeoUtils.h.

Function Documentation

◆ makeAttributeType()

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

convenience method to convert the given value into an attribute

Definition at line 79 of file PixelDiodeTreeBuilder.h.

79  {
80  assert( validAttributeType(val));
81  return static_cast<InDetDD::PixelDiodeTree::AttributeType>(val);
82  }

◆ 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 
)
inline

Definition at line 46 of file PixelGeoUtils.h.

50  {
51 
52  PixelDiodeTreeMaker<T_MsgParent> maker(gmt_mgr);
53  auto ret=maker.make( readoutTechnology, circuits, dimPerCircuit, pitch);
54  return ret;
55  }

◆ validAttributeType()

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

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

Definition at line 70 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;
75  }
InDetDD::detail::kNPixelLocations
@ kNPixelLocations
Definition: PixelGeoUtils.h:19
InDetDD::detail::kOuterEdge
@ kOuterEdge
Definition: PixelGeoUtils.h:19
InDetDD::detail::kInnerEdge
@ kInnerEdge
Definition: PixelGeoUtils.h:19
InDetDD::PixelDiodeTree::AttributeType
unsigned int AttributeType
Definition: PixelDiodeTree.h:39
InDetDD::detail::validAttributeType
bool validAttributeType(T val)
convenience method to test whether the given value can be converted into an attribute
Definition: PixelDiodeTreeBuilder.h:70
InDetDD::detail::kEta
@ kEta
Definition: PixelGeoUtils.h:20
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
InDetDD::detail::kCentral
@ kCentral
Definition: PixelGeoUtils.h:19
InDetDD::detail::kPhi
@ kPhi
Definition: PixelGeoUtils.h:20
InDetDD::detail::kNDirections
@ kNDirections
Definition: PixelGeoUtils.h:20
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35