LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
DetectorClocksStandardTriggerLoader.h File Reference

Functions to load trigger time in detinfo::DetectorClocksStandard. More...

#include "lardataobj/RawData/TriggerData.h"
#include "canvas/Utilities/InputTag.h"
#include "cetlib_except/exception.h"
#include <optional>
#include <vector>

Go to the source code of this file.

Namespaces

 detinfo
 General LArSoft Utilities.
 

Functions

template<typename Event >
std::optional< std::pair< double, double > > detinfo::trigger_times_for_event (art::InputTag const &triggerTag, Event const &event)
 Loads DetectorClocksStandard trigger times. More...
 
template<typename Event >
std::optional< double > detinfo::g4ref_time_for_event (art::InputTag const &triggerTag, Event const &event)
 Loads DetectorClocksStandard G4Ref correction times. More...
 

Detailed Description

Functions to load trigger time in detinfo::DetectorClocksStandard.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.fnal..nosp@m.gov)
Date
March 21, 2018

This header contains framework-dependent functions to:

  • set DetectorClocksStandard trigger time from a raw::Trigger
  • set DetectorClocksStandard trigger time from a raw::Trigger in an event
  • do the former, and fall back to default values on failure

These functions are compatible with both art and gallery.

This is a pure header library. Effective dependencies include:

  • lardata_DetectorInfo
  • lardataobj_RawData
  • canvas
  • cetlib_except

Definition in file DetectorClocksStandardTriggerLoader.h.