All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FixedTriggerGateBuilder.cxx
Go to the documentation of this file.
1 /**
2  * @file icaruscode/PMT/Trigger/Algorithms/FixedTriggerGateBuilder.cxx
3  * @brief Fixed-length gate builder.
4  * @author Gianluca Petrillo (petrillo@slac.stanford.edu)
5  * @date April 1, 2019
6  * @see `icaruscode/PMT/Trigger/Algorithms/FixedTriggerGateBuilder.h`
7  *
8  */
9 
10 
11 // class header
13 
14 // LArSoft libraries
16 
17 
18 //------------------------------------------------------------------------------
19 //--- icarus::trigger::FixedTriggerGateBuilder
20 //------------------------------------------------------------------------------
22  (Config const& config)
23  : Base_t(config)
24  , fGateDuration(config.GateDuration())
25  , fExtendGate(config.ExtendGate())
26 {}
27 
28 
29 //------------------------------------------------------------------------------
31  (detinfo::DetectorTimings const& timings)
32 {
33  Base_t::setup(timings);
34 
35  fGateTicks = timings.toTicks<optical_time_ticks>(fGateDuration);
36 
37 } // icarus::trigger::FixedTriggerGateBuilder::setup()
38 
39 
40 //------------------------------------------------------------------------------
then source grid fermiapp products dune setup_dune_fermiapp sh exit else echo No setup file found exit fi setup
Ticks toTicks(time_interval time) const
Returns the number of ticks corresponding to a time interval.
virtual void setup(detinfo::DetectorTimings const &timings) override
Algorithm setup.
timescale_traits< OpticalTimeCategory >::tick_interval_t optical_time_ticks
Interface to detinfo::DetectorClocks.
FixedTriggerGateBuilder(Config const &config)
Constructor: sets the configuration.
Fixed-length gate builder.
A class exposing an upgraded interface of detinfo::DetectorClocksData.