-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdet1_solenoid_hybrid.pl
executable file
·59 lines (47 loc) · 1.3 KB
/
det1_solenoid_hybrid.pl
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/perl -w
use strict;
use lib ("$ENV{GEMC}/api/perl");
use lib ("$ENV{GEMC}/io");
use parameters;
use utils;
use geometry;
use hit;
use bank;
use math;
# use Math::Trig;
# use Math::MatrixReal;
# use Math::VectorReal;
# system("rm meic_det1__*txt");
# Help Message
sub help()
{
print "\n Usage: \n";
print " detector.pl <configuration filename>\n";
print " Will create the detector\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);
#if($#ARGV < 0){
# do 'configs/pvdis_CLEO_nominal.pl';
#}else{
# do 'configs/'.$ARGV[0];
#}
# One can change the "variation" here if one is desired different from the config.dat
# $configuration{"detector_name"} = "det1_solenoid_dual";
$configuration{"variation"} = "Original";
# To get the parameters proper authentication is needed.
# our %parameters = get_parameters(%configuration);
# $configuration{"detector_name"} = "meic_det1_dual";
#####Load geometry ########################################################
#solenoid
require "det1_solenoid_hybrid_geometry.pl";
det1_solenoid_hybrid();