ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDModel
AGDDModel
AGDDSnake.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef AGDDSnake_H
6
#define AGDDSnake_H
7
8
#include "
AGDDKernel/AGDDVolume.h
"
9
10
#include <string>
11
#include <vector>
12
#include <iostream>
13
14
class
AGDDSnake
:
public
AGDDVolume
{
15
public
:
16
AGDDSnake
(
const
std::string& s,
17
AGDDVolumeStore
& vs,
18
AGDDSectionStore
&
ss
)
19
:
AGDDVolume
(s,vs,
ss
),
m_radius
(0) {}
20
void
SetPoint
(
const
GeoTrf::Vector3D& p)
21
{
22
m_points
.push_back(p);
23
}
24
int
NrOfPoints
()
const
{
return
m_points
.size();}
25
double
Radius
()
const
{
return
m_radius
;}
26
void
Radius
(
double
d) {
m_radius
=d;}
27
GeoTrf::Vector3D
GetPoint
(
int
i)
const
{
return
m_points
[i];}
28
virtual
void
CreateVolume
(
AGDDBuilder
& builder)
override
;
29
virtual
void
CreateSolid
(
const
AGDDBuilder
& builder)
override
;
30
private
:
31
double
m_radius
;
32
std::vector<GeoTrf::Vector3D>
m_points
;
33
};
34
35
#endif
AGDDVolume.h
ss
static Double_t ss
Definition
LArPhysWaveHECTool.cxx:37
AGDDBuilder
Definition
AGDDBuilder.h:31
AGDDSectionStore
Definition
AGDDSectionStore.h:15
AGDDSnake::m_radius
double m_radius
Definition
AGDDSnake.h:31
AGDDSnake::CreateSolid
virtual void CreateSolid(const AGDDBuilder &builder) override
Definition
AGDDSnake.cxx:9
AGDDSnake::AGDDSnake
AGDDSnake(const std::string &s, AGDDVolumeStore &vs, AGDDSectionStore &ss)
Definition
AGDDSnake.h:16
AGDDSnake::NrOfPoints
int NrOfPoints() const
Definition
AGDDSnake.h:24
AGDDSnake::Radius
void Radius(double d)
Definition
AGDDSnake.h:26
AGDDSnake::m_points
std::vector< GeoTrf::Vector3D > m_points
Definition
AGDDSnake.h:32
AGDDSnake::CreateVolume
virtual void CreateVolume(AGDDBuilder &builder) override
Definition
AGDDSnake.cxx:15
AGDDSnake::SetPoint
void SetPoint(const GeoTrf::Vector3D &p)
Definition
AGDDSnake.h:20
AGDDSnake::Radius
double Radius() const
Definition
AGDDSnake.h:25
AGDDSnake::GetPoint
GeoTrf::Vector3D GetPoint(int i) const
Definition
AGDDSnake.h:27
AGDDVolumeStore
Definition
AGDDVolumeStore.h:15
AGDDVolume::AGDDVolume
AGDDVolume(const std::string &s, AGDDVolumeStore &vs, AGDDSectionStore &ss, bool v=false)
Definition
AGDDVolume.cxx:10
Generated on
for ATLAS Offline Software by
1.17.0