Last change
on this file was 307, checked in by harald, 25 years ago |
This is the starting point for Trigger Studies. I introduced a
Class MTrigger, that will do all the trigger stuff in the camera program.
|
File size:
1.4 KB
|
Line | |
---|
1 | //
|
---|
2 | // class MTrigger
|
---|
3 | //
|
---|
4 | // implemented by Harald Kornmayer
|
---|
5 | //
|
---|
6 | // This is a class to simulate the trigger.
|
---|
7 | // It assumes a special response of the PMT for one single Photo-electron.
|
---|
8 | //
|
---|
9 | //
|
---|
10 | //
|
---|
11 | #include <iostream.h>
|
---|
12 | #include <math.h>
|
---|
13 |
|
---|
14 | #include "TObject.h"
|
---|
15 |
|
---|
16 | #include "Mdefine.h"
|
---|
17 |
|
---|
18 | #define TRIGGER_TIME_SLICES 400
|
---|
19 | //
|
---|
20 | // We need 400 Time Slices of 0.25 nsec width.
|
---|
21 | // So the whole Time range we studies is 100 nsec.
|
---|
22 | //
|
---|
23 | #define RESPONSE_SLICES 40
|
---|
24 | //
|
---|
25 | // This is for the standard response Signal to 1 Photoelectron
|
---|
26 | // that leaves the Photocathode
|
---|
27 | // The whole Timescale for the signal is 10 nsec
|
---|
28 | //
|
---|
29 | //
|
---|
30 | // These values are discussed with Eckart. We start from this point.
|
---|
31 | #define RESPONSE_FWHM 2.
|
---|
32 | #define RESPONSE_AMPLITUDE 1.
|
---|
33 | //
|
---|
34 | // This are the Standard values of the response function for
|
---|
35 | // 1 photo electron.
|
---|
36 | // We assume a gaussian pulse with FWHM 2.5 nsec.
|
---|
37 | //
|
---|
38 |
|
---|
39 | #define CHANNEL_THRESHOLD 2.
|
---|
40 | //
|
---|
41 | // This is the diskriminator threshold for each individual channel
|
---|
42 | // First we set the value to 2 unit of the RESPONSE_AMPLITUDE
|
---|
43 | //
|
---|
44 | #define TRIGGER_GATE 3.
|
---|
45 | //
|
---|
46 | // Here we set the width of the digital signal we get if the signal
|
---|
47 | // passes the diskriminator
|
---|
48 | //
|
---|
49 | #define TRIGGER_MULTI 4.
|
---|
50 | //
|
---|
51 | // We get a Level Zero Trigger, if we have a least TRIGGER_MULTI
|
---|
52 | // channels with a diskrimiator signal at the same time
|
---|
53 | //
|
---|
54 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.