ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDModel
AGDDModel
AGDDBox.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 AGDDBox_H
6
#define AGDDBox_H
7
8
#include "
AGDDKernel/AGDDVolume.h
"
9
#include <string>
10
#include <vector>
11
#include <iostream>
12
13
class
AGDDBox
:
public
AGDDVolume
{
14
public
:
15
AGDDBox
(
const
std::string& s,
16
AGDDVolumeStore
& vs,
17
AGDDSectionStore
&
ss
)
18
:
AGDDVolume
(s,vs,
ss
),
m_x
(0),
m_y
(0),
m_z
(0) {}
19
~AGDDBox
() {}
20
void
SetXYZ
(
const
std::vector<double>& v)
21
{
22
m_x
=v[0];
23
m_y
=v[1];
24
m_z
=v[2];
25
}
26
double
x
()
const
{
return
m_x
;}
27
double
y
()
const
{
return
m_y
;}
28
double
z
()
const
{
return
m_z
;}
29
virtual
void
CreateVolume
(
AGDDBuilder
& builder)
override
;
30
virtual
void
CreateSolid
(
const
AGDDBuilder
& builder)
override
;
31
double
m_x
;
32
double
m_y
;
33
double
m_z
;
34
};
35
36
#endif
AGDDVolume.h
ss
static Double_t ss
Definition
LArPhysWaveHECTool.cxx:37
AGDDBox::m_x
double m_x
Definition
AGDDBox.h:31
AGDDBox::m_y
double m_y
Definition
AGDDBox.h:32
AGDDBox::CreateVolume
virtual void CreateVolume(AGDDBuilder &builder) override
Definition
AGDDBox.cxx:14
AGDDBox::m_z
double m_z
Definition
AGDDBox.h:33
AGDDBox::z
double z() const
Definition
AGDDBox.h:28
AGDDBox::CreateSolid
virtual void CreateSolid(const AGDDBuilder &builder) override
Definition
AGDDBox.cxx:9
AGDDBox::SetXYZ
void SetXYZ(const std::vector< double > &v)
Definition
AGDDBox.h:20
AGDDBox::~AGDDBox
~AGDDBox()
Definition
AGDDBox.h:19
AGDDBox::AGDDBox
AGDDBox(const std::string &s, AGDDVolumeStore &vs, AGDDSectionStore &ss)
Definition
AGDDBox.h:15
AGDDBox::x
double x() const
Definition
AGDDBox.h:26
AGDDBox::y
double y() const
Definition
AGDDBox.h:27
AGDDBuilder
Definition
AGDDBuilder.h:31
AGDDSectionStore
Definition
AGDDSectionStore.h:15
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