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 
22 class DDCompactView;
23 
24 template < class T >
26 {
27  public:
28 
29  typedef std::vector< double > ParmVec ;
30 
31  typedef boost::shared_ptr< CaloSubdetectorGeometry > PtrType ;
32 
35 
36  static const double k_ScaleFromDDDtoGeant ;
37 
39 
41 
42  PtrType load( const DDCompactView* cpv,
43  const Alignments* alignments = 0 ,
44  const Alignments* globals = 0 ) ;
45 
46  private:
47 
48  void makeGeometry( const DDCompactView* cpv ,
49  T* geom ,
50  const Alignments* alignments ,
51  const Alignments* globals ) ;
52 
54  T* geom ) ;
55 
56  void fillGeom( T* geom ,
57  const ParmVec& pv ,
58  const HepGeom::Transform3D& tr ,
59  const DetId& id ) ;
60 
61  unsigned int getDetIdForDDDNode( const DDFilteredView& fv ) ;
62 
63  typename T::NumberingScheme m_scheme;
65 };
66 
67 #endif
DDSpecificsFilter m_filter
unsigned int getDetIdForDDDNode(const DDFilteredView &fv)
std::vector< double > ParmVec
type of data representation of DDCompactView
Definition: DDCompactView.h:81
CaloSubdetectorGeometry::ParVecVec ParVecVec
boost::shared_ptr< CaloSubdetectorGeometry > PtrType
void fillNamedParams(DDFilteredView fv, T *geom)
T::NumberingScheme m_scheme
Definition: DetId.h:20
CaloSubdetectorGeometry::ParVec ParVec
CaloCellGeometry::ParVecVec ParVecVec
void fillGeom(T *geom, const ParmVec &pv, const HepGeom::Transform3D &tr, const DetId &id)
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