-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrich.pl
More file actions
85 lines (66 loc) · 1.58 KB
/
rich.pl
File metadata and controls
85 lines (66 loc) · 1.58 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/perl -w
use strict;
use lib ("$ENV{GEMC}/api/perl");
use utils;
use parameters;
use geometry;
use hit;
use bank;
use math;
use materials;
use Math::Trig;
# Help Message
sub help()
{
print "\n Usage: \n";
print " ctof.pl <configuration filename>\n";
print " Will create the CLAS12 CTOF geometry, materials, bank and hit definitions\n";
print " Note: The passport and .visa files must be present if connecting to MYSQL. \n\n";
exit;
}
# Make sure the argument list is correct
#if( scalar @ARGV != 1)
#{
# help();
# exit;
#}
# Loading configuration file and paramters
our %configuration = load_configuration($ARGV[0]);
# Global pars - these should be read by the load_parameters from file or DB
#our %parameters = get_parameters(%configuration);
my $javaCadDir = "javacad";
system(join(' ', 'groovy -cp "../*" factory.groovy', $javaCadDir));
# materials
require "./materials.pl";
# banks definitions
#require "./bank.pl";
# hits definitions
#require "./hit.pl";
# sensitive geometry
#require "./geometry.pl";
# java geometry
require "./geometry_java.pl";
# all the scripts must be run for every configuration
my @allConfs = ("original", "cad", "java");
# bank definitions
#define_bank();
our @volumes = get_volumes(%configuration);
coatjava::makeCTOF($javaCadDir);
#foreach my $conf ( @allConfs )
#{
# $configuration{"variation"} = $conf ;
# if($configuration{"variation"} eq "java")
# {
#our @volumes = get_volumes(%configuration);
# coatjava::makeCTOF($javaCadDir);
# }
# else
# {
# geometry
#makeCTOF();
# }
# materials
#materials();
# hits
#define_hit();
#}