# -*- makefile -*- Well, not really, but emacs believes it. # # This file can be found in $BFROOT/detector/trg/config/ # # Configuration of the Level 1 and Level 3 trigger. This file is read # by the TrgConfig parser (TrgParser) to load the TrgConfig interface. # About the syntax of this file see: TrgParser/README.tcf. # # Contact: Rainer Bartoldus (bartoldu@slac.stanford.edu) # # Modification Log: # 23-May-2000 RB Increase Bhabha accept prescale by a factor of 5. # Relable gate module lines 25+26 to daqpulser and # sourcecalpulser and include them in the L3InputL1Open # line. # 29-Mar-2000 RB Change prescale on L3OutBunchOpr: 16->80. # 28-Mar-2000 RB Remove 1Y, 1Y&1B from physics scripts. # 21-Mar-2000 RB Change prescale factors on Opr lines: # L3OutL1OpenOpr: 1600->10000 # L3OutDchEmcPreVeto: 200->50 # L3OutDchEmcPreVetoOpr: 1000 (new line) # L3OutBunchOpr: 160->800 # L3OutCyclic1Opr: 10->5 # 06-Mar-2000 RB Add L3OutGammaGammaOpr line with prescale factor 2. # 23-Feb-2000 RB Increase prescales on L3OutBhabhaFlatOpr line # by a factor of 3. # 2-Feb-2000 RB Increase L1 prescales on D2 and 2M by a factor of 2. # Change all other L1 prescaled lines to 100. # Prescale cyclic and bunchX Oep lines for Opr by 10. # 24-Jan-2000 RB Take the broken mu-pair filter from the diag line. # 21-Jan-2000 RB Veto in effect, by-pass prescaled by 200. # 16-Jan-2000 RB Special config w/o veto for energy scan. # Add hadronic A (all) and hadronic B (B enriched) # scripts. # Remove L3DMatcher. # Use IPTrackFilter(n=2) as 2 track filter. # Add L3Out*Opr lines with further prescales. # 04-Jan-2000 RB Activate new Emc-based cluster filters. # Retire L3BSequence. # Remove bunch-crossing filter. # 17-Nov-1999 RB Added luminosity output line, prescaled by 10. # Fixed binning of Bhabha prescaler. # 15-Nov-1999 RB Changed output line configuration for Bhabha vetoing. # Added gamma gamma filter. # Removed 2E and 1Y passthrough. # Removed lightpulser output line. # 04-Nov-1999 RB Installed new binned prescaler module which is # driven by the BhabhaAcceptFilter. # Changed upper bin of the prescaler. # 26-Oct-1999 SD Changed L1 M*&1U to M*&5U to reduce rate. # 23-Oct-1999 SD All GLT line output delay=0 to line up with Line1. # 23-Oct-1999 RB Add new L3TBhabhaAcceptFilter. # Remove old L3B* accept and veto and lumi filters. # Disable L3OutBhabha and L3OutBhabhaFlat. # 25-Sep-1999 JHP Put L3BOnlineLumiFilter back [...] # as it is referenced in the tcl delta. # 24-Sep-1999 JHP Change OnlineLumiScript to use L3TOnlineLumiFilter # 10-Sep-1999 RB Clone neutral filters from the same prototype. # 08-Sep-1999 RB Added tight 1- and 2-prong Bhabha veto filters. # 02-Sep-1999 RB Changed L3OutDch to new IP track filter. # Removed some obsolete (commented) lines. # 25-Aug-1999 RB Swapped Glt line numbers 15 and 16, the order # stays the same with new createFileTable. # 19-Aug-1999 RB Fixed typo. # 19-Aug-1999 RB Added EMC lightpulser output line # 14-Aug-1999 RB Enabled binned prescalers # 09-Aug-1999 RB Added combined 2-track and 1-track filter # but log with the standard track filter. # 04-Aug-1999 RB Added 1 Hz cyclic trigger line. # 25-Jul-1999 JHP Added new Dch Filters # RB Added OepPrescaleLines section to configure # binned prescaler modules. # 6-Apr-1999 RB Added OepInputLines section to disentangle # L3 scripts and Oep prescaling. L3 output lines # are now a subset of OEP input lines, the # corresponding line names are identical. # 1-Apr-1999 RB Added L3Sequences and L3Modules sections which # declare all objects used to define L3 scripts. # Fixed logic of script expressions in L3 output # lines to match what L3Master actually does. # 26-Mar-1999 RB Changed names of lines with X* object counts # to match the GLT expressions: # nB* >= 1 means two back-to-back B objects. # Jan-1999 RB Many adjustments during the cosmic ray run... # 03-Aug-1998 RB Created it. # # # The 17 GLT object counts are: # nU nG nG* nE nY nM nM* nEM nA nA* nB nB* nA' nAM nBM nA'M nBMX # # The possible relations are: # >= = < # # # GLT trigger beam physics setup # ============================== # # Special setup for full L1 trigger & B field on beam collisions # Update: SD May/20/99 Added U=3 mu-pair trigger # May/22/99 Test DCT triggers. # PD May/22/99 Set DCT triggers prescale to 1 # SD May/23/99 All EMT+DCT+IFT physics run setup-0 # DW May/23/99 Altered Prescales for D2*&1M from 5 to 1 # For DCH cosmics calib # RB May/25/99 Added cyclic trigger at 0.2 Hz # RB May/31/99 Split 2E and 1Y lines. Add Cyclic1 output line. # RB Jun/06/99 Backed out cyclic trigger. # SD+RB Jun/10/99 Drop 3M&M*&1G and 2AM lines. # Drop A' cut in 3B*B*&2A. # Change 2M&1A to 2M&1B. # Add 1B and 1M. # SD Jun/13/99 Remove U3 & split M*&1B into M*&D2, M*&A+ # Increase prescale for loose triggers # SD Aug/14/99 Major revision of L1 list with GLT LUT change # SD Oct/23/99 All GLT line output delay=0 to line up with Line1. # SD Oct/26/99 Change M*&1U to M*&5U to reduce L1 rate. # L1Lines = # # Name GLT Cut Line FCT MASK # 3B&2A&2M: ( nB>=3 and nA>=2 and nM>=2 ) number= 1 prescale=1 width=15 delay=0 # 1 3A&B*: ( nA>=3 and nB*>=1 ) number= 2 prescale=1 width=15 delay=0 # 2 3B&B*&1G: ( nB>=3 and nB*>=1 and nG>=1 ) number= 3 prescale=1 width=15 delay=0 # 4 2E: ( nE>=2 ) number= 4 prescale=1 width=15 delay=0 # 8 EM*: ( nEM>=1 ) number= 5 prescale=1 width=15 delay=0 # 10 G*: ( nG*>=1 ) number= 6 prescale=1 width=15 delay=0 # 20 D2&1E: ( nB>=2 and nA>=1 and nE>=1 ) number= 7 prescale=1 width=15 delay=0 # 40 1Y&1B: ( nY>=1 and nB>=1 ) number= 8 prescale=1 width=15 delay=0 # 80 D2*+: ( nB*>=1 and nA'>=1 and nA>=1 ) number= 9 prescale=1 width=15 delay=0 # 100 3M&D2: ( nM>=3 and nB>=2 and nA>=1 ) number=10 prescale=1 width=15 delay=0 # 200 4M: ( nM>=4 ) number=11 prescale=1 width=15 delay=0 # 400 3M&M*: ( nM>=3 and nM*>=1 ) number=12 prescale=1 width=15 delay=0 # 800 M*&A+: ( nM*>=1 and nA'>=1 and nA>=1 ) number=13 prescale=1 width=15 delay=0 # 1000 M*&5U: ( nM*>=1 and nU>=5 ) number=14 prescale=1 width=15 delay=0 # 2000 1Y: ( nY>=1 ) number=15 prescale=1 width=15 delay=0 # 4000 M*&D2*: ( nM*>=1 and nB*>=1 and nA>=1 ) number=16 prescale=100 width=15 delay=0 # 8000 3M: ( nM>=3 ) number=17 prescale=100 width=15 delay=0 # 10000 M*&1B: ( nM*>=1 and nB>=1 ) number=18 prescale=100 width=15 delay=0 # 20000 D2*&1M: ( nB*>=1 and nA>=1 and nM>=1 ) number=19 prescale=100 width=15 delay=0 # 40000 M*: ( nM*>=1 ) number=20 prescale=100 width=15 delay=0 # 80000 2M: ( nM>=2 ) number=21 prescale=60 width=15 delay=0 # 100000 D2: ( nB>=2 and nA>=1 ) number=22 prescale=96 width=15 delay=0 # 200000 1B: ( nB>=1 ) number=23 prescale=0 width=15 delay=0 # 400000 1M: ( nM>=1 ) number=24 prescale=0 width=15 delay=0 # 800000 daqpulser: hardware number=25 prescale=1 sourcecalpulser: hardware number=26 prescale=1 bunchcross: hardware number=27 prescale=4000 lightpulser: hardware number=28 prescale=1 cyclic1: cyclic number=29 prescale=1 rate=1 # Update: # RB Mar/28/00 Create a physics line without 1Y and 1Y&1B. # SD+RB Jun/10/99 Add bunchcross trigger to L3InputOpen. # Drop all separate bunch scripts and output lines. # SD Jun/13/99 Modified L3InputOpen list for the L1 replacements with M*&D2 M*&A+ # Changed 1Y passthrough input L1 trigger into 1Y&1B # Reduced L1 pass through from 2% -> 1%. # SD Aug/18/99 Relist L3InputOpen for new L1 lines & L1 pass through 1% -> 0.5% L3InputLines = L3InputOpen: 3B&2A&2M or 3A&B* or 3B&B*&1G or 2E or EM* or G* or D2&1E or 1Y&1B or D2*+ or 3M&D2 or 4M or 3M&M* or M*&A+ or M*&5U or 1Y or M*&D2* or 3M or M*&1B or D2*&1M or M* or 2M or D2 or 1B or 1M or daqpulser or sourcecalpulser or bunchcross or lightpulser or cyclic1 L3InputPhysics: 3B&2A&2M or 3A&B* or 3B&B*&1G or 2E or EM* or G* or D2&1E or D2*+ or 3M&D2 or 4M or 3M&M* or M*&A+ or M*&5U or M*&D2* or 3M or M*&1B or D2*&1M or M* or 2M or D2 or 1B or 1M or bunchcross or cyclic1 L3InputBunch: bunchcross L3InputCyclic1: cyclic1 L3Sequences = L3DSequence: L3ESequence: L3Modules = # Dch filters L3DIP1TrackFilter: L3DIPTrackFilterProto L3DIP2TrackFilter: L3DIPTrackFilterProto # Emc filters L3EHighEnergyFilter: L3EClusterFilterProto L3EHighMultiplicityFilter: L3EClusterFilterProto # Bhabha veto L3TBhabha1ProngVetoFilter: L3TBhabha1ProngVetoFilterProto L3TBhabha2ProngVetoFilter: L3TBhabha2ProngVetoFilterProto # Bhabha accept filters L3TBhabhaAcceptFilter: L3TBhabhaAcceptFilterProto L3TRadiativeBhabhaFilter: L3TRadiativeBhabhaFilterProto # Online luminosity L3TOnlineLumiFilter: L3TOnlineLumiFilterProto # Gamma gamma final state L3TGammaGammaFilter: L3TGammaGammaFilterProto # Physics filters L3THadronicAFilter: L3THadronicFilterProto L3THadronicBFilter: L3THadronicFilterProto L3TMuPairFilter: L3TMuPairFilterProto L3TCosmic2ProngFilter: L3TCosmic2ProngFilterProto # Binned prescalers L3TBinnedPrescaler: L3TBinnedPrescalerProto L3TBinnedPrescalerOpr: L3TBinnedPrescalerProto L3Scripts = IP1TrackScript: L3InputPhysics { L3DSequence L3DIP1TrackFilter } IP2TrackScript: L3InputPhysics { L3DSequence L3DIP2TrackFilter } Cosmic2ProngScript: L3InputPhysics { L3DSequence L3TCosmic2ProngFilter } OnlineLumiScript: L3InputPhysics { L3DSequence L3TOnlineLumiFilter } EHighMultiplicityScript: L3InputPhysics { L3ESequence L3EHighMultiplicityFilter } EHighEnergyScript: L3InputPhysics { L3ESequence L3EHighEnergyFilter } Bhabha1ProngVetoScript: L3InputPhysics { L3DSequence L3ESequence L3TBhabha1ProngVetoFilter } Bhabha2ProngVetoScript: L3InputPhysics { L3DSequence L3ESequence L3TBhabha2ProngVetoFilter } BhabhaScript: L3InputOpen { L3DSequence L3ESequence L3TBhabhaAcceptFilter } RadiativeBhabhaScript: L3InputOpen { L3DSequence L3ESequence L3TRadiativeBhabhaFilter } GammaGammaScript: L3InputOpen { L3DSequence L3ESequence L3TGammaGammaFilter } HadronicAScript: L3InputPhysics { L3DSequence L3THadronicAFilter } HadronicBScript: L3InputPhysics { L3DSequence L3THadronicBFilter } MuPairScript: L3InputPhysics { L3DSequence L3ESequence L3TMuPairFilter } L1OpenScript: L3InputOpen { } BunchScript: L3InputBunch { } Cyclic1Script: L3InputCyclic1 { } OepInputLines = L3OutDch: prescale=1 enable L3OutEmc: prescale=1 enable L3OutDchEmcPreVeto: prescale=50 enable L3OutDchEmcPreVetoOpr: prescale=1000 enable L3OutBhabha: prescale=1000 enable L3OutBhabhaFlat: prescale=1 enable L3OutBhabhaFlatOpr: prescale=1 enable L3OutRadiativeBhabha: prescale=1 enable L3OutCosmic: prescale=1 enable L3OutLumi: prescale=10 enable L3OutDiag: prescale=1 enable L3OutGammaGamma: prescale=1 enable L3OutGammaGammaOpr: prescale=2 enable L3OutL1Open: prescale=200 enable L3OutL1OpenOpr: prescale=10000 enable L3OutBunch: prescale=80 enable L3OutBunchOpr: prescale=800 enable L3OutCyclic1: prescale=1 enable L3OutCyclic1Opr: prescale=5 enable L3OutputLines = L3OutDch: (IP1TrackScript or IP2TrackScript) and !Bhabha1ProngVetoScript and !Bhabha2ProngVetoScript L3OutEmc: (EHighMultiplicityScript or EHighEnergyScript) and !Bhabha1ProngVetoScript and !Bhabha2ProngVetoScript L3OutDchEmcPreVeto: IP1TrackScript or IP2TrackScript or EHighMultiplicityScript or EHighEnergyScript L3OutDchEmcPreVetoOpr: IP1TrackScript or IP2TrackScript or EHighMultiplicityScript or EHighEnergyScript L3OutBhabha: BhabhaScript L3OutRadiativeBhabha: RadiativeBhabhaScript L3OutCosmic: Cosmic2ProngScript L3OutLumi: OnlineLumiScript L3OutDiag: HadronicAScript or HadronicBScript L3OutGammaGamma: GammaGammaScript L3OutGammaGammaOpr: GammaGammaScript L3OutL1Open: L1OpenScript L3OutL1OpenOpr: L1OpenScript L3OutBunch: BunchScript L3OutBunchOpr: BunchScript L3OutCyclic1: Cyclic1Script L3OutCyclic1Opr: Cyclic1Script OepPrescaleLines = L3OutBhabhaFlat: L3OutBhabha L3TBinnedPrescaler { 1 [0.9] 1 [1.543] 2 [1.724] 3 [1.905] 4 [2.087] 7 [2.268] 13 [2.500] 13 } # Prescales for Opr: L3OutBhabhaFlat times 15 L3OutBhabhaFlatOpr: L3OutBhabha L3TBinnedPrescalerOpr { 15 [0.9] 15 [1.543] 30 [1.724] 45 [1.905] 60 [2.087] 105 [2.268] 195 [2.500] 195 }