source: tags/Mars-V0.8.7pre/mmc/MTriggerDefine.h

Last change on this file was 5253, checked in by moralejo, 20 years ago
*** empty log message ***
File size: 3.5 KB
Line 
1//
2//
3// In this file are the fundamental definitions for the class MCTrigger
4//
5//
6#define TRIGGER_PIXELS_1 397
7#define TRIGGER_PIXELS_2 397
8#define TRIGGER_PIXELS_3 1657
9#define TRIGGER_PIXELS_5 397
10#define TRIGGER_PIXELS_6 1657
11#define TRIGGER_PIXELS_8 126
12#define TRIGGER_PIXELS_9 126
13//
14// This is the number of Pixels contributing to the TRIGGER logic
15// for each of the already implemented geometries.
16// All Pixels-Id above that value don't do an trigger stuff.
17// Actually, not all of them are involved in TRIGGER logic, only the
18// ones of them that are also in some TRIGGER_CELL
19// (MagicSoft/Simulation/Detector/include-MTrigger/TABLE_PIXELS_IN_CELLS)
20//
21#define TOTAL_TRIGGER_TIME 160
22//
23// This values defines the total range in that we try to find
24// a trigger.
25//
26#define LEVEL1_DEAD_TIME 50
27//
28// Dead time of the detector after one first level trigger happens.
29//
30#define LEVEL2_DEAD_TIME 300
31//
32// Dead time of the detector after second level trigger fires
33//
34#define TRIG_SLICES_PER_NSEC 4
35//
36// Each nano second is divided into the number of this values slices.
37// So you can get the total number of timeslices for one Pixel by
38// ( TOTAL_TRIGGER_TIME * SLICES_PER_NSEC ).
39// In the current settings this are 1000 slices
40//
41#define TRIGGER_TIME_SLICES (TOTAL_TRIGGER_TIME*TRIG_SLICES_PER_NSEC)
42//
43//
44//
45//
46// ------>>> SETTINGS for the RESPONSE FUNCTION
47//
48#define RESPONSE_SLICES_TRIG 40
49//
50// This is the dimension of the array containing the standard response Signal
51// for 1 Photoelectron, as seen at the input of the discriminators (for the
52// trigger simulation). Each bin corresponds to 1./TRIG_SLICES_PER_NSEC nanoseconds,
53// so by default it is 0.25 ns and hence the total range is 10 ns. This should be
54// enough for any reasonable single photoelectron response (should be much narrower
55// than 10 ns!)
56//
57
58// The Response function
59// These values are discussed with Eckart. We start from this point.
60//
61#define RESPONSE_FWHM 2.
62
63#define RESPONSE_AMPLITUDE 1.
64//
65// This are the Standard values of the response function for
66// 1 photo electron. ( 1 means 1 mV per photoelectron )
67//
68//
69// -------->>> SETTINGS for the DISKRIMINATORS
70//
71//
72#define CHANNEL_THRESHOLD 2.5
73//
74// This is the diskriminator threshold for each individual channel
75// First we set the value to 2 unit of the RESPONSE_AMPLITUDE
76//
77#define TRIGGER_GATE 3.
78//
79// Here we set the width of the digital signal we get if the signal
80// passes the diskriminator
81//
82//
83#define TRIGGER_OVERLAPING 0.25
84//
85// Here we set the required overlaping time among pixels
86// to be in coincidence.
87//
88//
89// --------->>>> SETTINGS for the TRIGGER logic
90//
91//
92#define TRIGGER_CELLS 19
93//
94// Number of trigger cells that cover the trigger zone
95//
96#define TRIGGER_MULTI 4.
97//
98// We get a Level Zero Trigger, if we have a least TRIGGER_MULTI
99// channels with a diskrimiator signal at the same time
100//
101#define TRIGGER_GEOM 0
102//
103// This defines the geometry required for a trigger. There exists
104// different meaning for this behaviour:
105// 0 means a pixel with trigger_multi-1 neighbours
106// 1 means trigger_multi neighbours
107// 2 means trigger_multi closed neighbours
108//
Note: See TracBrowser for help on using the repository browser.