source: trunk/MagicSoft/include-Classes/MMcFormat/MTriggerDefine.h@ 7649

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