CMS 3D CMS Logo

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 ()
 
PtrType load (const cms::DDCompactView *cpv, const Alignments *alignments=nullptr, const Alignments *globals=nullptr)
 
PtrType load (const DDCompactView *cpv, const Alignments *alignments=nullptr, const Alignments *globals=nullptr)
 
virtual ~CaloGeometryLoader ()=default
 

Static Public Attributes

static constexpr double k_ScaleFromDD4HeptoGeant = 1.0
 
static constexpr double k_ScaleFromDDDtoGeant = 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 cms::DDFilteredView &fv, T *geom)
 
void fillNamedParams (const DDFilteredView &fv, T *geom)
 
unsigned int getDetIdForDD4HepNode (const cms::DDFilteredView &fv)
 
unsigned int getDetIdForDDDNode (const DDFilteredView &fv)
 
void makeGeometry (const cms::DDCompactView *cpv, T *geom, const Alignments *alignments, const Alignments *globals)
 
void makeGeometry (const 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 21 of file CaloGeometryLoader.h.

Member Typedef Documentation

◆ ParmVec

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

Definition at line 23 of file CaloGeometryLoader.h.

◆ ParVec

Definition at line 25 of file CaloGeometryLoader.h.

◆ ParVecVec

Definition at line 26 of file CaloGeometryLoader.h.

◆ PtrType

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

Definition at line 24 of file CaloGeometryLoader.h.

Constructor & Destructor Documentation

◆ CaloGeometryLoader()

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

Definition at line 31 of file CaloGeometryLoader.h.

31 {}

◆ ~CaloGeometryLoader()

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

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 cms::DDFilteredView fv,
T geom 
)
private

◆ fillNamedParams() [2/2]

template<class T >
void CaloGeometryLoader< T >::fillNamedParams ( const 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 cms::DDCompactView cpv,
const Alignments alignments = nullptr,
const Alignments globals = nullptr 
)

◆ load() [2/2]

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

◆ makeGeometry() [1/2]

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

◆ makeGeometry() [2/2]

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

Member Data Documentation

◆ k_ScaleFromDD4HeptoGeant

template<class T >
constexpr double CaloGeometryLoader< T >::k_ScaleFromDD4HeptoGeant = 1.0
staticconstexpr

Definition at line 29 of file CaloGeometryLoader.h.

◆ k_ScaleFromDDDtoGeant

template<class T >
constexpr double CaloGeometryLoader< T >::k_ScaleFromDDDtoGeant = 0.1
staticconstexpr

Definition at line 28 of file CaloGeometryLoader.h.

◆ m_scheme

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

Definition at line 52 of file CaloGeometryLoader.h.