Other trigger/quickstart

Previous topic

Electronics Simulation

Next topic

Readout

This Page

Daya Bay Links

Content Skeleton

Trigger SimulationΒΆ

The main algorithm in TrigSim, TsTriggerAlg has 3 properties which can be specified by the user.

TrigTools
Default:“TsMultTriggerTool” List of Tools to run.
TrigName
Default:“TriggerAlg” Name of the main trigger algorithm for bookkeeping.
ElecLocation
Default: “/Event/Electroincs/ElecHeader” Path of ElecSimHeader in the TES, currently the default is picked up from ElecSimHeader.h

The user can change the properties through the TrigSimConf module as follows:

import TrigSim
trigsim = TrigSim.Configure()
import TrigSim.TrigSimConf as TsConf
TsConf.TsTriggerAlg().TrigTools = [ "TsExternalTriggerTool" ]

The TrigTools property takes a list as an argument allowing multiple triggers to be specified. Once implemented, the user could apply multiple triggers as follows:

import TrigSim
trigsim = TrigSim.Configure()
import TrigSim.TrigSimConf as TsConf
TsConf.TsTriggerAlg().TrigTools = [ "TsMultTriggerTool" ,
                                    "TsEsumTriggerTool" ,
                                    "TsCrossTriggerTool" ]