Belle II Software  release-05-01-25
utilities.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Martin Ritter *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <list>
14 #include <string>
15 
16 class G4LogicalVolume;
17 class G4Polycone;
18 
19 namespace Belle2 {
24  class GearDir;
26  namespace geometry {
27 
48  void setColor(G4LogicalVolume& volume, const std::string& color);
49 
54  void setVisibility(G4LogicalVolume& volume, bool visible);
55 
81  G4Polycone* createPolyCone(const std::string& name, const GearDir& params, double& minZ, double& maxZ);
82 
118  G4Polycone* createRotationSolid(const std::string& name, const GearDir& params, double& minZ, double& maxZ);
119 
141  G4Polycone* createRotationSolid(const std::string& name,
142  std::list< std::pair<double, double> > innerPoints,
143  std::list< std::pair<double, double> > outerPoints,
144  double minPhi, double maxPhi, double& minZ, double& maxZ);
145 
146 
147  }
149 } //Belle2 namespace
Belle2::geometry::setColor
void setColor(G4LogicalVolume &volume, const std::string &color)
Set the color of a logical volume.
Definition: utilities.cc:107
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::geometry::setVisibility
void setVisibility(G4LogicalVolume &volume, bool visible)
Helper function to quickly set the visibility of a given volume.
Definition: utilities.cc:115
Belle2::geometry::createRotationSolid
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:210
Belle2::geometry::createPolyCone
G4Polycone * createPolyCone(const std::string &name, const GearDir &params, double &minZ, double &maxZ)
Create Polycone Shape from XML Parameters.
Definition: utilities.cc:123