test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
TrackPropagation
NavGeometry
src
NavSurfaceBuilder.cc
Go to the documentation of this file.
1
#include "
TrackPropagation/NavGeometry/interface/NavSurfaceBuilder.h
"
2
#include "
TrackPropagation/NavGeometry/interface/NavSurface.h
"
3
#include "
DataFormats/GeometrySurface/interface/Plane.h
"
4
#include "
DataFormats/GeometrySurface/interface/Cylinder.h
"
5
#include "
DataFormats/GeometrySurface/interface/Cone.h
"
6
#include "
TrackPropagation/NavGeometry/interface/NavPlane.h
"
7
#include "
TrackPropagation/NavGeometry/interface/NavCylinder.h
"
8
#include "
TrackPropagation/NavGeometry/interface/NavCone.h
"
9
10
NavSurface
*
NavSurfaceBuilder::build
(
const
Surface
& surface)
const
11
{
12
const
Plane
* plane =
dynamic_cast<
const
Plane
*
>
(&surface);
13
if
(plane != 0) {
14
return
new
NavPlane
( plane);
15
}
16
17
const
Cylinder
* cylinder =
dynamic_cast<
const
Cylinder
*
>
(&surface);
18
if
(cylinder != 0) {
19
return
new
NavCylinder
( cylinder);
20
}
21
22
const
Cone
* cone =
dynamic_cast<
const
Cone
*
>
(&surface);
23
if
(cone != 0) {
24
return
new
NavCone
( cone);
25
}
26
27
return
0;
28
}
NavCone.h
NavPlane
Definition:
NavPlane.h:12
Cone
Definition:
Cone.h:17
Surface
Definition:
Surface.h:42
Plane.h
NavPlane.h
NavCylinder
Definition:
NavCylinder.h:12
NavSurfaceBuilder::build
NavSurface * build(const Surface &surface) const
Definition:
NavSurfaceBuilder.cc:10
Plane
Definition:
Plane.h:17
Cylinder
Definition:
Cylinder.h:19
NavSurfaceBuilder.h
NavSurface.h
NavCone
Definition:
NavCone.h:12
NavCylinder.h
Cylinder.h
Cone.h
NavSurface
Definition:
NavSurface.h:16
Generated for CMSSW Reference Manual by
1.8.5