CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloGeometryLoader.h
Go to the documentation of this file.
1 #ifndef GEOMETRY_ECALGEOMETRYLOADER_H
2 #define GEOMETRY_ECALGEOMETRYLOADER_H 1
3 
6 
9 
11 
12 #include "CLHEP/Geometry/Transform3D.h"
13 #include <string>
14 #include <vector>
15 
21 class DDCompactView;
22 
23 template < class T >
25 {
26 public:
27 
28  typedef std::vector< double > ParmVec ;
29 
30  typedef boost::shared_ptr< CaloSubdetectorGeometry > PtrType ;
31 
34 
35  static const double k_ScaleFromDDDtoGeant ;
36 
38 
40 
41  PtrType load( const DDCompactView* cpv,
42  const Alignments* alignments = 0 ,
43  const Alignments* globals = 0 ) ;
44 
45 private:
46 
47  void makeGeometry( const DDCompactView* cpv ,
48  T* geom ,
49  const Alignments* alignments ,
50  const Alignments* globals ) ;
51 
52  void fillNamedParams( const DDFilteredView& fv,
53  T* geom ) ;
54 
55  void fillGeom( T* geom ,
56  const ParmVec& pv ,
57  const HepGeom::Transform3D& tr ,
58  const DetId& id ) ;
59 
60  unsigned int getDetIdForDDDNode( const DDFilteredView& fv ) ;
61 
62  typename T::NumberingScheme m_scheme;
64 };
65 
66 #endif
DDSpecificsFilter m_filter
unsigned int getDetIdForDDDNode(const DDFilteredView &fv)
std::vector< double > ParmVec
type of data representation of DDCompactView
Definition: DDCompactView.h:77
CaloSubdetectorGeometry::ParVecVec ParVecVec
boost::shared_ptr< CaloSubdetectorGeometry > PtrType
T::NumberingScheme m_scheme
Definition: DetId.h:18
CaloSubdetectorGeometry::ParVec ParVec
CaloCellGeometry::ParVecVec ParVecVec
void fillGeom(T *geom, const ParmVec &pv, const HepGeom::Transform3D &tr, const DetId &id)
void fillNamedParams(const DDFilteredView &fv, T *geom)
static const double k_ScaleFromDDDtoGeant
PtrType load(const DDCompactView *cpv, const Alignments *alignments=0, const Alignments *globals=0)
void makeGeometry(const DDCompactView *cpv, T *geom, const Alignments *alignments, const Alignments *globals)
long double T
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.
Definition: DDFilter.h:37