-
Notifications
You must be signed in to change notification settings - Fork 0
/
hit.pl
74 lines (65 loc) · 1.86 KB
/
hit.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
use strict;
use warnings;
our %configuration;
our %parameters;
sub define_ft_trk_hit
{
# uploading the hit definition
my %hit = init_hit();
$hit{"name"} = "ftm";
$hit{"description"} = "forward tagger tracker hit definition";
$hit{"identifiers"} = "layer sector strip";
$hit{"signalThreshold"} = "2.0*KeV";
$hit{"timeWindow"} = "132*ns";
$hit{"prodThreshold"} = "270*um";
$hit{"maxStep"} = "300*um";
$hit{"delay"} = "10*ns";
$hit{"riseTime"} = "1*ns";
$hit{"fallTime"} = "1*ns";
$hit{"mvToMeV"} = 100;
$hit{"pedestal"} = -20;
print_hit(\%configuration, \%hit);
}
sub define_ft_hodo_hit
{
# uploading the hit definition
my %hit = init_hit();
$hit{"name"} = "ft_hodo";
$hit{"description"} = "forward tagger hodoscope hit definition";
$hit{"identifiers"} = "id layer";
$hit{"signalThreshold"} = "0.1*MeV";
$hit{"timeWindow"} = "4*ns";
$hit{"prodThreshold"} = "1*mm";
$hit{"maxStep"} = "1*cm";
$hit{"delay"} = "10*ns";
$hit{"riseTime"} = "1*ns";
$hit{"fallTime"} = "1*ns";
$hit{"mvToMeV"} = 100;
$hit{"pedestal"} = -20;
print_hit(\%configuration, \%hit);
}
sub define_ft_cal_hit
{
# uploading the hit definition
my %hit = init_hit();
$hit{"name"} = "ft_cal";
$hit{"description"} = "forward tagger calorimeter hit definition";
$hit{"identifiers"} = "idx idy";
$hit{"signalThreshold"} = "0.5*MeV";
$hit{"timeWindow"} = "4*ns";
$hit{"prodThreshold"} = "1*mm";
$hit{"maxStep"} = "1*cm";
$hit{"delay"} = "10*ns";
$hit{"riseTime"} = "1*ns";
$hit{"fallTime"} = "1*ns";
$hit{"mvToMeV"} = 100;
$hit{"pedestal"} = -20;
print_hit(\%configuration, \%hit);
}
sub define_ft_hits
{
define_ft_trk_hit();
define_ft_hodo_hit();
define_ft_cal_hit();
}
1;