Difference between revisions of "Trigger"
(→Selecting electrons) |
(→Identification of triggered detectors) |
||
Line 196: | Line 196: | ||
=== Identification of triggered detectors === | === Identification of triggered detectors === | ||
+ | |||
+ | We are identifying which detectors were triggered during an event by looking at the CAEN TDC leaf (tdc_val[i]). The correspondence of TDC channel to detector can be found in the | ||
One possibility of identifying the detectors that were triggered by each event is by looking at the leaf triggerPatternWord. This leaf contains the information of the trigger type for that event, and also the detectors that were triggered for each event. | One possibility of identifying the detectors that were triggered by each event is by looking at the leaf triggerPatternWord. This leaf contains the information of the trigger type for that event, and also the detectors that were triggered for each event. |
Revision as of 11:52, 11 December 2014
Back to DVCS3
Contents
Deadtime script
Analyze deadtime on any aonl machines: "godvcs", "cd marco/deadtime/", "analyzer", ".L deadtime.C", "deadtime(run_number)".
DAQ Trigger configuration
That file is kept under dvcs@intelhadvcs1:~/config_files
## Example configuration file # Global Threshold = 750 Cluster Threshold = 250 Require Cluster = 0 # Gate width setting is in increments of 5ns Gate Width = 14 ##### # Prescale settings are in powers of two: # ___Behavior__________ Setting # PRESCALE_VAL_DISABLED 0 # PRESCALE_VAL_NONE 1 # PRESCALE_VAL_2 2 # PRESCALE_VAL_4 3 # PRESCALE_VAL_8 4 # PRESCALE_VAL_16 5 # PRESCALE_VAL_32 6 # PRESCALE_VAL_64 7 # PRESCALE_VAL_128 8 # PRESCALE_VAL_256 9 # PRESCALE_VAL_512 10 # PRESCALE_VAL_1024 11 # PRESCALE_VAL_2048 12 # PRESCALE_VAL_4096 13 # PRESCALE_VAL_8192 14 # PRESCALE_VAL_16384 15 # Prescale channel assignments are: # PRESCALE_ID_CLOCK 0 # PRESCALE_ID_COSMIC 1 # PRESCALE_ID_S2M_NCER 2 # PRESCALE_ID_S0_S1 3 # PRESCALE_ID_S0_S2M 4 # PRESCALE_ID_S0_CER 5 # PRESCALE_ID_S1_S2M 6 # PRESCALE_ID_S1_CER 7 # PRESCALE_ID_S2M_CER 8 ##### Prescale_0 Clock = 0 Prescale_1 Cosmic = 0 Prescale_2 S2M and NCER = 1 Prescale_3 S0 and S1 = 0 Prescale_4 S0 and S2M = 0 Prescale_5 S0 and CER = 0 Prescale_6 S1 and S2M = 0 Prescale_7 S1 and CER = 0 Prescale_8 S2M and CER = 1 ##### ## The following lines can be used to enable autovalidation; ## uncomment any that are desired. ##### # Autovalidate S2M_NCER_SCALED # Autovalidate S2M_CER2_SCALED # Autovalidate S2M_CER_SCALED # Autovalidate S1_CER_SCALED # Autovalidate S1_S2M_SCALED # Autovalidate S0_CER_SCALED # Autovalidate S0_S2M_SCALED # Autovalidate S0_S1_SCALED # Autovalidate TRIG_VME # Autovalidate COSMIC_SCALED # Autovalidate TRIGCLK_SCALED ## BEGIN_PEDESTALS # Data1 Pedestals: 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 001-008 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 009-016 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 017-024 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 025-032 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 033-040 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 041-048 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 049-056 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 057-064 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 065-072 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 073-080 # Data2 Pedestals: 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 081-088 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 089-096 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 097-104 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 105-112 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 113-120 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 121-128 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 129-136 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 137-144 # Data3 Pedestals: 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 145-152 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 153-160 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 161-168 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 169-176 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 177-184 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 185-192 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 193-200 2048 2048 2048 2048 2048 2048 2048 2048 # Hardware channels 201-208 END_PEDESTALS
Trigger patterns
Trigger patterns: The lowest six bits of the triggerPattern word (mask value=0x3f) record the status of the raw trigger inputs. Depending on the prescale settings, a trigger input may be present even if it was not included in the event trigger for that event.
Trigger input | Bit pattern | Value |
COSMIC | 0x00001 | 1 |
TRIGCLK | 0x00002 | 2 |
SO | 0x00004 | 4 |
S1 | 0x00008 | 8 |
S2M | 0x00010 | 16 |
CER | 0x00020 | 32 |
The remainder of the bits (mask value=0xffffff40) record which prescaled coincidence trigger was actually used to form the event trigger.
Event trigger | Bit pattern | Value |
S2M_NCER_SCALED | 0x00040 | 64 |
S2M_CER2_SCALED | 0x00080 | 128 |
S2M_CER_SCALED | 0x00100 | 256 |
S1_CER_SCALED | 0x00200 | 512 |
S1_S2M_SCALED | 0x00400 | 1024 |
S0_CER_SCALED | 0x00800 | 2048 |
S0_S2M_SCALED | 0x01000 | 4096 |
S0_S1_SCALED | 0x02000 | 8192 |
TRIG_VME | 0x04000 | 16384 |
COSMIC_SCALED | 0x08000 | 32768 |
TRIGCLK_SCALED | 0x10000 | 65536 |
Documentation
- [Readiness Review Report (September 2014)]
- [Electronic Review document (May 2014)]
- [Trigger Manual (May 2014)] [Trigger Manual (Sept 2013)]
- [Trigger upgrade talk (March 2011)]
More
Trigger Efficiency
Page under construction!
In order to study the trigger efficiency of the DVCS configuration, some runs were taken using different configurations of the s0, s2 and cer detectors in the trigger.
Selecting electrons
First, as we want to study the trigger efficiency for electron only, a cut on the pion rejector (calorimeter) was applied, using the sum of all adc values (L.prl1.asum_p+L.prl2.asum_p). Also, no EDTM scaler should be in the event. We required that:
- (L.prl1.asum_p+L.prl2.asum_p)>2000
- (L.prl1.asum_p+L.prl2.asum_p)<2800
- dvcs_scaler_EDTM==0
TCut lhrs_electron("dvcs_scaler_EDTM==0 && (L.prl1.asum_p+L.prl2.asum_p)>2000 && (L.prl1.asum_p+L.prl2.asum_p)<2800");
To illustrate how this cut select electrons, the following figure shows an histogram of the total sum of the calorimeter signal (L.prl1.asum_p+L.prl2.asum_p). This data is from run 10373, where the trigger was s0&s2. The curves in this figure are:
- BLUE: all the events
- RED: Cerenkov > 100 (mostly electrons)
Identification of triggered detectors
We are identifying which detectors were triggered during an event by looking at the CAEN TDC leaf (tdc_val[i]). The correspondence of TDC channel to detector can be found in the
One possibility of identifying the detectors that were triggered by each event is by looking at the leaf triggerPatternWord. This leaf contains the information of the trigger type for that event, and also the detectors that were triggered for each event.
For instance, by looking in one run where the trigger type required was s0 && cer, one can study the efficiency of the s2 detector, since s2 was expected to trigger also when s0 && cer trigger. A similar study can be done with different combinations of these three detectors, by taking a pair of detector to trigger the system and studying the efficiency of the 3rd detector.
Trigger efficiencies
For those events with electrons (E_calo/p_track > 0.65 && !EDTM), the following table synthesizes the runs taken with different trigger configurations, and the percentage of the events that triggered each detector.
An example of the triggerPatternWord can be seen in the following figure. This is a result from a s2&cer trigger, taken in run 10373.
Run | Trigger type | s0 - (triggerPatternWord & 4)>0 | s2 - (triggerPatternWord & 16)>0 | cer - (triggerPatternWord & 32)>0 |
---|---|---|---|---|
10373 | s2m & cer (DVCS) | 85.8% | 100% | 100% |
10374 | s2m & s0 (DVCS) | 100% | 100% | 98.9% |
10376 | s0 & cer (DVCS) | 100% | 85.1% | 100% |
Trigger timing changed - run 3311295 | ||||
10411/10419 | s0 & s2m (DVCS) | 100% | 100% | 98.9% |
10412 | (PS1-GMp) | % | % | % |
10413 | (PS2-GMp) | % | % | % |
10414 | (PS3-GMp) | % | % | % |
10415 | s0 & cer (DVCS) | 100% | 87.0% | 100% |
10416/10418 | s2m & cer (DVCS) | 84.1% | 100% | 100% |