Belle II Software  release-08-01-10
utilities.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <list>
12 #include <string>
13 
14 class G4LogicalVolume;
15 class G4Polycone;
16 
17 namespace Belle2 {
22  class GearDir;
24  namespace geometry {
25 
48  void setColor(G4LogicalVolume& volume, const std::string& color);
49 
54  void setVisibility(G4LogicalVolume& volume, bool visible);
55 
84  G4Polycone* createPolyCone(const std::string& name, const GearDir& params, double& minZ, double& maxZ);
85 
124  G4Polycone* createRotationSolid(const std::string& name, const GearDir& params, double& minZ, double& maxZ);
125 
150  G4Polycone* createRotationSolid(const std::string& name,
151  std::list< std::pair<double, double> > innerPoints,
152  std::list< std::pair<double, double> > outerPoints,
153  double minPhi, double maxPhi, double& minZ, double& maxZ);
154 
155 
156  }
158 } //Belle2 namespace
G4Polycone * createPolyCone(const std::string &name, const GearDir &params, double &minZ, double &maxZ)
Create Polycone Shape from XML Parameters.
Definition: utilities.cc:116
G4Polycone * createRotationSolid(const std::string &name, const GearDir &params, double &minZ, double &maxZ)
Create a solid by roating two polylines around the Z-Axis.
Definition: utilities.cc:203
void setVisibility(G4LogicalVolume &volume, bool visible)
Helper function to quickly set the visibility of a given volume.
Definition: utilities.cc:108
void setColor(G4LogicalVolume &volume, const std::string &color)
Set the color of a logical volume.
Definition: utilities.cc:100
Abstract base class for different kinds of events.