ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
Geo2G4
src
LArWheelSolidDDProxy.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// LArWheelSolidDDProxy
6
// proxy for LArWheelSolid to store in DetectorDescription
7
// Author: D. A. Maximov
8
9
#include "
LArWheelSolidDDProxy.h
"
10
#include "
LArWheelSolid.h
"
11
#include<iostream>
12
13
LArWheelSolidDDProxy::LArWheelSolidDDProxy
(G4VSolid* plws) :
14
m_plws
(plws)
15
{}
16
17
LArWheelSolidDDProxy::~LArWheelSolidDDProxy
() {}
18
19
int
LArWheelSolidDDProxy::Inside
(
const
CLHEP::Hep3Vector& p)
const
{
20
return
m_plws
->Inside(p);
21
}
22
23
double
LArWheelSolidDDProxy::DistanceToIn
(
const
CLHEP::Hep3Vector& p,
const
CLHEP::Hep3Vector& v)
const
{
24
return
m_plws
->DistanceToIn(p, v);
25
}
26
27
double
LArWheelSolidDDProxy::DistanceToIn
(
const
CLHEP::Hep3Vector& p)
const
{
28
return
m_plws
->DistanceToIn(p);
29
}
30
31
double
LArWheelSolidDDProxy::DistanceToOut
(
const
CLHEP::Hep3Vector& p,
const
CLHEP::Hep3Vector& v)
const
{
32
return
m_plws
->DistanceToOut(p, v);
33
}
34
35
double
LArWheelSolidDDProxy::DistanceToOut
(
const
CLHEP::Hep3Vector& p)
const
{
36
return
m_plws
->DistanceToOut(p);
37
}
38
39
CLHEP::Hep3Vector
LArWheelSolidDDProxy::SurfaceNormal
(
const
CLHEP::Hep3Vector& p)
const
{
40
return
m_plws
->SurfaceNormal(p);
41
}
42
43
CLHEP::Hep3Vector
LArWheelSolidDDProxy::GetPointOnSurface
()
const
{
44
return
m_plws
->GetPointOnSurface();
45
}
46
47
double
LArWheelSolidDDProxy::GetCubicVolume
() {
48
return
m_plws
->GetCubicVolume();
49
}
50
51
double
LArWheelSolidDDProxy::GetSurfaceArea
() {
52
return
m_plws
->GetSurfaceArea();
53
}
54
55
#ifdef DEBUG_LARWHEELSOLID
56
57
void
LArWheelSolidDDProxy::SetVerbose
(
int
v)
const
58
{
59
LArWheelSolid
* s =
dynamic_cast<
LArWheelSolid
*
>
(
m_plws
);
60
if
(
nullptr
!= s) s->SetVerbose(v);
61
}
62
#else
63
void
LArWheelSolidDDProxy::SetVerbose
(
int
)
const
64
{
65
std::cerr <<
"DEBUG_LARWHEELSOLID is off"
<< std::endl;
66
}
67
#endif
LArWheelSolidDDProxy.h
LArWheelSolid.h
LArWheelSolidDDProxy::DistanceToIn
double DistanceToIn(const CLHEP::Hep3Vector &, const CLHEP::Hep3Vector &) const
Definition
LArWheelSolidDDProxy.cxx:23
LArWheelSolidDDProxy::GetCubicVolume
double GetCubicVolume()
Definition
LArWheelSolidDDProxy.cxx:47
LArWheelSolidDDProxy::DistanceToOut
double DistanceToOut(const CLHEP::Hep3Vector &, const CLHEP::Hep3Vector &) const
Definition
LArWheelSolidDDProxy.cxx:31
LArWheelSolidDDProxy::SetVerbose
void SetVerbose(int v) const
Definition
LArWheelSolidDDProxy.cxx:63
LArWheelSolidDDProxy::SurfaceNormal
CLHEP::Hep3Vector SurfaceNormal(const CLHEP::Hep3Vector &) const
Definition
LArWheelSolidDDProxy.cxx:39
LArWheelSolidDDProxy::GetSurfaceArea
double GetSurfaceArea()
Definition
LArWheelSolidDDProxy.cxx:51
LArWheelSolidDDProxy::LArWheelSolidDDProxy
LArWheelSolidDDProxy(G4VSolid *plws)
Definition
LArWheelSolidDDProxy.cxx:13
LArWheelSolidDDProxy::~LArWheelSolidDDProxy
virtual ~LArWheelSolidDDProxy()
Definition
LArWheelSolidDDProxy.cxx:17
LArWheelSolidDDProxy::m_plws
G4VSolid * m_plws
Definition
LArWheelSolidDDProxy.h:57
LArWheelSolidDDProxy::GetPointOnSurface
CLHEP::Hep3Vector GetPointOnSurface() const
Definition
LArWheelSolidDDProxy.cxx:43
LArWheelSolidDDProxy::Inside
int Inside(const CLHEP::Hep3Vector &) const
Definition
LArWheelSolidDDProxy.cxx:19
LArWheelSolid
Definition
LArWheelSolid.h:94
Generated on
for ATLAS Offline Software by
1.17.0