ATLAS Offline Software
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 
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,
19  : AGDDVolume(s,vs,ss),m_radius(0) {}
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
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
AGDDSnake::CreateSolid
virtual void CreateSolid(const AGDDBuilder &builder) override
Definition: AGDDSnake.cxx:9
hist_file_dump.d
d
Definition: hist_file_dump.py:137
AGDDVolumeStore
Definition: AGDDVolumeStore.h:15
AGDDSnake::GetPoint
GeoTrf::Vector3D GetPoint(int i) const
Definition: AGDDSnake.h:27
AGDDSectionStore
Definition: AGDDSectionStore.h:15
AGDDBuilder
Definition: AGDDBuilder.h:31
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AGDDSnake::NrOfPoints
int NrOfPoints() const
Definition: AGDDSnake.h:24
AGDDSnake::SetPoint
void SetPoint(const GeoTrf::Vector3D &p)
Definition: AGDDSnake.h:20
AGDDSnake::Radius
double Radius() const
Definition: AGDDSnake.h:25
lumiFormat.i
int i
Definition: lumiFormat.py:85
createSimpleDistributions.builder
builder
Definition: createSimpleDistributions.py:52
AGDDSnake::m_points
std::vector< GeoTrf::Vector3D > m_points
Definition: AGDDSnake.h:32
AGDDSnake::AGDDSnake
AGDDSnake(const std::string &s, AGDDVolumeStore &vs, AGDDSectionStore &ss)
Definition: AGDDSnake.h:16
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
AGDDSnake::CreateVolume
virtual void CreateVolume(AGDDBuilder &builder) override
Definition: AGDDSnake.cxx:15
AGDDSnake::m_radius
double m_radius
Definition: AGDDSnake.h:31
AGDDVolume
Definition: AGDDVolume.h:16
AGDDVolume.h
AGDDSnake::Radius
void Radius(double d)
Definition: AGDDSnake.h:26
AGDDSnake
Definition: AGDDSnake.h:14