CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
CaloGeometryLoader< T > Class Template Reference

#include <CaloGeometryLoader.h>

Public Types

using ParmVec = std::vector< double >
 
using ParVec = CaloSubdetectorGeometry::ParVec
 
using ParVecVec = CaloSubdetectorGeometry::ParVecVec
 
using PtrType = std::unique_ptr< CaloSubdetectorGeometry >
 

Public Member Functions

 CaloGeometryLoader ()=default
 
PtrType load (const DDCompactView *cpv, const Alignments *alignments=nullptr, const Alignments *globals=nullptr)
 
PtrType load (const cms::DDCompactView *cpv, const Alignments *alignments=nullptr, const Alignments *globals=nullptr)
 
virtual ~CaloGeometryLoader ()=default
 

Static Public Attributes

static constexpr double k_ScaleFromDD4hep = (1.0 / dd4hep::cm)
 
static constexpr double k_ScaleFromDDD = 0.1
 

Private Member Functions

void fillGeom (T *geom, const ParmVec &pv, const HepGeom::Transform3D &tr, const DetId &id, const double &scale)
 
void fillNamedParams (const DDFilteredView &fv, T *geom)
 
void fillNamedParams (const cms::DDFilteredView &fv, T *geom)
 
unsigned int getDetIdForDD4hepNode (const cms::DDFilteredView &fv)
 
unsigned int getDetIdForDDDNode (const DDFilteredView &fv)
 
void makeGeometry (const DDCompactView *cpv, T *geom, const Alignments *alignments, const Alignments *globals)
 
void makeGeometry (const cms::DDCompactView *cpv, T *geom, const Alignments *alignments, const Alignments *globals)
 

Private Attributes

T::NumberingScheme m_scheme
 

Detailed Description

template<class T>
class CaloGeometryLoader< T >

Definition at line 22 of file CaloGeometryLoader.h.

Member Typedef Documentation

◆ ParmVec

template<class T >
using CaloGeometryLoader< T >::ParmVec = std::vector<double>

Definition at line 24 of file CaloGeometryLoader.h.

◆ ParVec

Definition at line 26 of file CaloGeometryLoader.h.

◆ ParVecVec

Definition at line 27 of file CaloGeometryLoader.h.

◆ PtrType

template<class T >
using CaloGeometryLoader< T >::PtrType = std::unique_ptr<CaloSubdetectorGeometry>

Definition at line 25 of file CaloGeometryLoader.h.

Constructor & Destructor Documentation

◆ ~CaloGeometryLoader()

template<class T >
virtual CaloGeometryLoader< T >::~CaloGeometryLoader ( )
virtualdefault

◆ CaloGeometryLoader()

template<class T >
CaloGeometryLoader< T >::CaloGeometryLoader ( )
default

Member Function Documentation

◆ fillGeom()

template<class T >
void CaloGeometryLoader< T >::fillGeom ( T geom,
const ParmVec pv,
const HepGeom::Transform3D &  tr,
const DetId id,
const double &  scale 
)
private

◆ fillNamedParams() [1/2]

template<class T >
void CaloGeometryLoader< T >::fillNamedParams ( const DDFilteredView fv,
T geom 
)
private

◆ fillNamedParams() [2/2]

template<class T >
void CaloGeometryLoader< T >::fillNamedParams ( const cms::DDFilteredView fv,
T geom 
)
private

◆ getDetIdForDD4hepNode()

template<class T >
unsigned int CaloGeometryLoader< T >::getDetIdForDD4hepNode ( const cms::DDFilteredView fv)
private

◆ getDetIdForDDDNode()

template<class T >
unsigned int CaloGeometryLoader< T >::getDetIdForDDDNode ( const DDFilteredView fv)
private

◆ load() [1/2]

template<class T >
PtrType CaloGeometryLoader< T >::load ( const DDCompactView cpv,
const Alignments alignments = nullptr,
const Alignments globals = nullptr 
)

◆ load() [2/2]

template<class T >
PtrType CaloGeometryLoader< T >::load ( const cms::DDCompactView cpv,
const Alignments alignments = nullptr,
const Alignments globals = nullptr 
)

◆ makeGeometry() [1/2]

template<class T >
void CaloGeometryLoader< T >::makeGeometry ( const DDCompactView cpv,
T geom,
const Alignments alignments,
const Alignments globals 
)
private

◆ makeGeometry() [2/2]

template<class T >
void CaloGeometryLoader< T >::makeGeometry ( const cms::DDCompactView cpv,
T geom,
const Alignments alignments,
const Alignments globals 
)
private

Member Data Documentation

◆ k_ScaleFromDD4hep

template<class T >
constexpr double CaloGeometryLoader< T >::k_ScaleFromDD4hep = (1.0 / dd4hep::cm)
static

Definition at line 30 of file CaloGeometryLoader.h.

◆ k_ScaleFromDDD

template<class T >
constexpr double CaloGeometryLoader< T >::k_ScaleFromDDD = 0.1
static

Definition at line 29 of file CaloGeometryLoader.h.

◆ m_scheme

template<class T >
T::NumberingScheme CaloGeometryLoader< T >::m_scheme
private

Definition at line 53 of file CaloGeometryLoader.h.