-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgeometry.pl
More file actions
executable file
·39 lines (30 loc) · 849 Bytes
/
geometry.pl
File metadata and controls
executable file
·39 lines (30 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/perl -w
use strict;
use lib ("$ENV{GEMC}/io");
use parameters;
use utils;
use geometry;
use math;
# Help Message
sub help()
{
print "\n Usage: \n";
print " geometry.pl <configuration filename>\n";
print " Will create the EIC Ring Imaging Cherenkov Detector (RICH) geometry\n";
print " Note: The passport and .visa files must be present to connect to MYSQL. \n\n";
exit;
}
# Make sure the argument list is correct
if( scalar @ARGV != 1)
{
help();
exit;
}
# Loading configuration file and paramters
my $config_file = $ARGV[0];
our %configuration = load_configuration($config_file);
# One can change the "variation" here if one is desired different from the config.dat
# $configuration{"variation"} = "myvar";
# Loading EIC RICH geometry routines specific subroutins
require "./geo/detector.pl";
build_detector();