1 | //
|
---|
2 | //
|
---|
3 | // In this file are the fundamental definitions for the class MCTrigger
|
---|
4 | //
|
---|
5 | //
|
---|
6 | #define TRIGGER_PIXELS 271
|
---|
7 | //
|
---|
8 | // This is the number of Pixels contributing to the TRIGGER logic
|
---|
9 | // All Pixels-Id above that value don't do an trigger stuff.
|
---|
10 | //
|
---|
11 | //
|
---|
12 | #define TOTAL_TRIGGER_TIME 160
|
---|
13 | //
|
---|
14 | // This values defines the total range in that we try to find
|
---|
15 | // a trigger.
|
---|
16 | //
|
---|
17 | #define LEVEL1_DEAD_TIME 50
|
---|
18 | //
|
---|
19 | // Dead time of the detector after one first level trigger happens.
|
---|
20 | //
|
---|
21 | #define LEVEL2_DEAD_TIME 300
|
---|
22 | //
|
---|
23 | // Dead time of the detector after second level trigger fires
|
---|
24 | //
|
---|
25 | #define SLICES_PER_NSEC 4
|
---|
26 | //
|
---|
27 | // Each nano second is divided into the number of this values slices.
|
---|
28 | // So you can get the total number of timeslices for one Pixel by
|
---|
29 | // ( TOTAL_TRIGGER_TIME * SLICES_PER_NSEC ).
|
---|
30 | // In the current settings this are 1000 slices
|
---|
31 | //
|
---|
32 | #define TRIGGER_TIME_SLICES (TOTAL_TRIGGER_TIME*SLICES_PER_NSEC)
|
---|
33 | //
|
---|
34 | //
|
---|
35 | //
|
---|
36 | //
|
---|
37 | // ------>>> SETTINGS for the RESPONSE FUNCTION
|
---|
38 | //
|
---|
39 | #define RESPONSE_SLICES 40
|
---|
40 | //
|
---|
41 | // This is for the standard response Signal to 1 Photoelectron
|
---|
42 | // that leaves the Photocathode
|
---|
43 | // The whole Timescale for the signal is 10 nsec
|
---|
44 | //
|
---|
45 | // The Response function
|
---|
46 | //
|
---|
47 | // These values are discussed with Eckart. We start from this point.
|
---|
48 | //
|
---|
49 | #define RESPONSE_FWHM 2.
|
---|
50 |
|
---|
51 | #define RESPONSE_AMPLITUDE 1.
|
---|
52 | //
|
---|
53 | // This are the Standard values of the response function for
|
---|
54 | // 1 photo electron. ( 1 means 1 mV per phote electron )
|
---|
55 | //
|
---|
56 | //
|
---|
57 | // -------->>> SETTINGS for the DISKRIMINATORS
|
---|
58 | //
|
---|
59 | //
|
---|
60 | #define CHANNEL_THRESHOLD 2.5
|
---|
61 | //
|
---|
62 | // This is the diskriminator threshold for each individual channel
|
---|
63 | // First we set the value to 2 unit of the RESPONSE_AMPLITUDE
|
---|
64 | //
|
---|
65 | #define TRIGGER_GATE 3.
|
---|
66 | //
|
---|
67 | // Here we set the width of the digital signal we get if the signal
|
---|
68 | // passes the diskriminator
|
---|
69 | //
|
---|
70 | //
|
---|
71 | #define TRIGGER_OVERLAPING 0.25
|
---|
72 | //
|
---|
73 | // Here we set the required overlaping time among pixels
|
---|
74 | // to be in coincidence.
|
---|
75 | //
|
---|
76 | //
|
---|
77 | // --------->>>> SETTINGS for the TRIGGER logic
|
---|
78 | //
|
---|
79 | //
|
---|
80 | #define TRIGGER_CELLS 19
|
---|
81 | //
|
---|
82 | // Number of trigger cells that cover the trigger zone
|
---|
83 | //
|
---|
84 | #define TRIGGER_MULTI 4.
|
---|
85 | //
|
---|
86 | // We get a Level Zero Trigger, if we have a least TRIGGER_MULTI
|
---|
87 | // channels with a diskrimiator signal at the same time
|
---|
88 | //
|
---|
89 | #define TRIGGER_GEOM 0
|
---|
90 | //
|
---|
91 | // This defines the geometry required for a trigger. There exists
|
---|
92 | // different meaning for this behaviour:
|
---|
93 | // 0 means a pixel with trigger_multi-1 neighbours
|
---|
94 | // 1 means trigger_multi neighbours
|
---|
95 | // 2 means trigger_multi closed neighbours
|
---|
96 | //
|
---|