All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
icarus::trigger::FixedTriggerGateBuilderTool Struct Reference

Fixed gate builder tool. More...

#include <FixedTriggerGateBuilderTool_tool.h>

Inheritance diagram for icarus::trigger::FixedTriggerGateBuilderTool:
icarus::trigger::FixedTriggerGateBuilder icarus::trigger::ManagedTriggerGateBuilder icarus::trigger::TriggerGateBuilder

Public Types

using Parameters = art::ToolConfigTable< icarus::trigger::FixedTriggerGateBuilder::Config >
 
- Public Types inherited from icarus::trigger::TriggerGateBuilder
using Channel_t = raw::Channel_t
 

Public Member Functions

 FixedTriggerGateBuilderTool (Parameters const &config)
 Constructor: sets the configuration. More...
 
- Public Member Functions inherited from icarus::trigger::FixedTriggerGateBuilder
 FixedTriggerGateBuilder (Config const &config)
 Constructor: sets the configuration. More...
 
virtual void setup (detinfo::DetectorTimings const &timings) override
 Algorithm setup. More...
 
virtual std::vector< TriggerGatesbuild (std::vector< WaveformWithBaseline > const &waveforms) const override
 Returns a collection of TriggerGates objects sorted by threshold. More...
 
- Public Member Functions inherited from icarus::trigger::TriggerGateBuilder
 TriggerGateBuilder (Config const &config)
 Constructor: sets the configuration. More...
 
virtual ~TriggerGateBuilder ()=default
 Virtual destructor. Nothing special about it, except that it's virtual. More...
 
virtual void reset ()
 Algorithm reset. It will require a new setup before using it again. More...
 
virtual void resetup (detinfo::DetectorTimings const &timings)
 Resets and sets up. More...
 
virtual void resetup (detinfo::DetectorTimings const &timings, std::vector< ADCCounts_t > const &thresholds)
 Resets and sets up (including a new set of thresholds). More...
 
std::vector< ADCCounts_t > const & channelThresholds () const
 Returns all the configured thresholds. More...
 
std::size_t nChannelThresholds () const
 Returns the number of configured thresholds. More...
 
optical_tick timeToOpticalTick (microsecond time) const
 Converts a time [s] into optical ticks. More...
 
optical_tick timeStampToOpticalTick (raw::TimeStamp_t time) const
 Converts a timestamp from raw::OpDetWaveform into optical ticks. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from icarus::trigger::TriggerGateBuilder
static constexpr bool isValidChannel (Channel_t channel)
 Returns whether channel is valid. More...
 
- Static Public Attributes inherited from icarus::trigger::TriggerGateBuilder
static constexpr Channel_t InvalidChannel = std::numeric_limits<Channel_t>::max()
 Mnemonic for an invalid optical detector channel. More...
 
- Protected Member Functions inherited from icarus::trigger::ManagedTriggerGateBuilder
template<typename GateMgr >
std::vector< TriggerGatesunifiedBuild (GateMgr &&gateManager, std::vector< WaveformWithBaseline > const &waveforms) const
 Returns a collection of TriggerGates objects sorted by threshold. More...
 
template<typename GateInfo , typename Waveforms >
void buildChannelGates (std::vector< GateInfo > &channelGates, Waveforms const &channelWaveforms) const
 Computes the gates for all the waveforms in one optical channel. More...
 
- Protected Member Functions inherited from icarus::trigger::TriggerGateBuilder
detinfo::DetectorTimings const & detTimings () const
 Returns a detector timings object. More...
 
std::vector< TriggerGatesprepareAllGates () const
 
virtual void doSetThresholds (std::vector< ADCCounts_t > const &thresholds)
 Sets all thresholds anew. More...
 

Detailed Description

Fixed gate builder tool.

See Also
icarus::trigger::FixedTriggerGateBuilder

Definition at line 28 of file FixedTriggerGateBuilderTool_tool.h.

Member Typedef Documentation

Definition at line 33 of file FixedTriggerGateBuilderTool_tool.h.

Constructor & Destructor Documentation

icarus::trigger::FixedTriggerGateBuilderTool::FixedTriggerGateBuilderTool ( Parameters const &  config)
inline

Constructor: sets the configuration.

Definition at line 36 of file FixedTriggerGateBuilderTool_tool.h.

37  : FixedTriggerGateBuilder(config()) {}
FixedTriggerGateBuilder(Config const &config)
Constructor: sets the configuration.

The documentation for this struct was generated from the following file: