ATLAS Offline Software
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 
14  m_plws(plws)
15  {}
16 
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 
48  return m_plws->GetCubicVolume();
49 }
50 
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
64 {
65  std::cerr << "DEBUG_LARWHEELSOLID is off" << std::endl;
66 }
67 #endif
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
LArWheelSolidDDProxy::SetVerbose
void SetVerbose(int v) const
Definition: LArWheelSolidDDProxy.cxx:63
LArWheelSolidDDProxy::LArWheelSolidDDProxy
LArWheelSolidDDProxy(G4VSolid *plws)
Definition: LArWheelSolidDDProxy.cxx:13
LArWheelSolidDDProxy::DistanceToOut
double DistanceToOut(const CLHEP::Hep3Vector &, const CLHEP::Hep3Vector &) const
Definition: LArWheelSolidDDProxy.cxx:31
LArWheelSolidDDProxy::GetPointOnSurface
CLHEP::Hep3Vector GetPointOnSurface() const
Definition: LArWheelSolidDDProxy.cxx:43
LArWheelSolidDDProxy::SurfaceNormal
CLHEP::Hep3Vector SurfaceNormal(const CLHEP::Hep3Vector &) const
Definition: LArWheelSolidDDProxy.cxx:39
LArWheelSolid.h
LArWheelSolidDDProxy::DistanceToIn
double DistanceToIn(const CLHEP::Hep3Vector &, const CLHEP::Hep3Vector &) const
Definition: LArWheelSolidDDProxy.cxx:23
LArWheelSolidDDProxy::Inside
int Inside(const CLHEP::Hep3Vector &) const
Definition: LArWheelSolidDDProxy.cxx:19
LArWheelSolid
Definition: LArWheelSolid.h:94
LArWheelSolidDDProxy::~LArWheelSolidDDProxy
virtual ~LArWheelSolidDDProxy()
Definition: LArWheelSolidDDProxy.cxx:17
python.PyAthena.v
v
Definition: PyAthena.py:157
LArWheelSolidDDProxy::m_plws
G4VSolid * m_plws
Definition: LArWheelSolidDDProxy.h:57
LArWheelSolidDDProxy.h
LArWheelSolidDDProxy::GetSurfaceArea
double GetSurfaceArea()
Definition: LArWheelSolidDDProxy.cxx:51
LArWheelSolidDDProxy::GetCubicVolume
double GetCubicVolume()
Definition: LArWheelSolidDDProxy.cxx:47