ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
examples
source
analysis
digits_hits
error_propagation
event
externals
g3tog4
geometry
global
graphics_reps
include
src
G4AttCheck.cc
G4AttDef.cc
G4AttDefStore.cc
G4AttHolder.cc
G4AttUtils.cc
G4Circle.cc
G4Colour.cc
G4DimensionedTypeUtils.cc
G4PlacedPolyhedron.cc
G4Point3DList.cc
G4Polyhedron.cc
G4PolyhedronArbitrary.cc
G4Polyline.cc
G4Polymarker.cc
G4Scale.cc
G4Square.cc
G4Text.cc
G4VGraphicsScene.cc
G4VisAttributes.cc
G4VisExtent.cc
G4Visible.cc
G4VMarker.cc
G4VVisManager.cc
HepPolyhedron.cc
intercoms
interfaces
materials
parameterisations
particles
persistency
physics_lists
processes
readout
run
track
tracking
visualization
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4Scale.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4Scale.cc
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
26
//
27
//
28
//
29
// John Allison 21st July 2001
30
31
#include "
G4Scale.hh
"
32
33
G4Scale::G4Scale
(
G4double
length
,
const
G4String
& annotation,
34
G4Scale::Direction
direction,
35
G4bool
autoPlacing,
36
G4double
xmid,
G4double
ymid,
G4double
zmid,
37
G4double
annotationSize):
38
fLength(length),
39
fAnnotation(annotation),
40
fAnnotationSize(annotationSize),
41
fDirection(direction),
42
fAutoPlacing(autoPlacing),
43
fXmid(xmid), fYmid(ymid), fZmid(zmid) {}
44
45
G4Scale::~G4Scale
() {}
46
47
const
G4String
G4Scale::GuidanceString
48
(
49
"An annotated line in the specified direction with tick marks at the"
50
"\nend. If autoPlacing is true it is required to be centred at the"
51
"\nfront, right, bottom corner of the world space, comfortably outside"
52
"\nthe existing bounding box/sphere so that existing objects do not"
53
"\nobscure it. Otherwise it is required to be drawn with mid-point at"
54
"\n(xmid, ymid, zmid)."
55
"\n"
56
"\nThe auto placing algorithm might be:"
57
"\n x = xmin + (1 + comfort) * (xmax - xmin);"
58
"\n y = ymin - comfort * (ymax - ymin);"
59
"\n z = zmin + (1 + comfort) * (zmax - zmin);"
60
"\n if direction == x then (x - length,y,z) to (x,y,z);"
61
"\n if direction == y then (x,y,z) to (x,y + length,z);"
62
"\n if direction == z then (x,y,z - length) to (x,y,z);"
63
);
64
65
const
G4String
&
G4Scale::GetGuidanceString
()
66
{
67
return
GuidanceString
;
68
}
geant4
tree
geant4-10.6-release
source
graphics_reps
src
G4Scale.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:21
using
1.8.2 with
ECCE GitHub integration