All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Typedefs | Functions
TriggerDataUtils.h File Reference

Utilities for the conversion of trigger gate data formats. More...

#include "icaruscode/PMT/Trigger/Utilities/TrackedOpticalTriggerGate.h"
#include "icaruscode/Utilities/DataProductPointerMap.h"
#include "icaruscode/IcarusObj/OpDetWaveformMeta.h"
#include "sbnobj/ICARUS/PMT/Trigger/Data/OpticalTriggerGate.h"
#include "larcorealg/CoreUtils/enumerate.h"
#include "lardataobj/RawData/OpDetWaveform.h"
#include "art/Persistency/Common/PtrMaker.h"
#include "canvas/Persistency/Common/Assns.h"
#include "canvas/Persistency/Common/Ptr.h"
#include "canvas/Utilities/InputTag.h"
#include "cetlib_except/exception.h"
#include <map>
#include <vector>
#include <tuple>
#include <string>
#include <stdexcept>
#include <utility>
#include <type_traits>

Go to the source code of this file.

Classes

class  icarus::trigger::TriggerGateReader< OpDetInfo >
 Assembles and returns trigger gates from serialized data. More...
 
class  icarus::trigger::TriggerGateIndex< GateObject >
 Associates each optical detector channel to a gate. More...
 
class  icarus::trigger::TriggerGateReader< OpDetInfo >
 Assembles and returns trigger gates from serialized data. More...
 

Namespaces

 icarus::trigger
 

Typedefs

using icarus::trigger::OpDetWaveformDataProductMap_t = util::DataProductPointerMap_t< raw::OpDetWaveform >
 Map util::DataProductPointerMap_t for raw::OpDetWaveform objects. More...
 
using icarus::trigger::OpDetWaveformMetaDataProductMap_t = util::DataProductPointerMap_t< sbn::OpDetWaveformMeta >
 Map util::DataProductPointerMap_t for sbn::OpDetWaveformMeta objects. More...
 

Functions

template<typename Gates >
std::vector
< icarus::trigger::OpticalTriggerGateData_t
icarus::trigger::transformIntoOpticalTriggerGate (Gates &&gates)
 Returns the trigger gates in serializable format. More...
 
template<typename OpDetInfo = sbn::OpDetWaveformMeta>
std::tuple< std::vector
< icarus::trigger::OpticalTriggerGateData_t >
, art::Assns
< icarus::trigger::OpticalTriggerGateData_t,
OpDetInfo > > 
icarus::trigger::transformIntoOpticalTriggerGate (std::vector< icarus::trigger::TrackedOpticalTriggerGate< OpDetInfo >> &&gates, art::PtrMaker< icarus::trigger::OpticalTriggerGateData_t > const &makeGatePtr, util::DataProductPointerMap_t< OpDetInfo > const &opDetInfoPtrs)
 Returns the trigger gates in serializable format. More...
 
template<typename OpDetInfo >
std::vector
< icarus::trigger::TrackedOpticalTriggerGate
< OpDetInfo > > 
icarus::trigger::FillTriggerGates (std::vector< icarus::trigger::OpticalTriggerGateData_t > const &gates, art::Assns< icarus::trigger::OpticalTriggerGateData_t, OpDetInfo > const &gateToWaveformInfo)
 Creates a gate object out of trigger gate data products. More...
 
template<typename OpDetInfo = sbn::OpDetWaveformMeta, typename Event >
std::vector
< icarus::trigger::TrackedOpticalTriggerGate
< OpDetInfo > > 
icarus::trigger::ReadTriggerGates (Event const &event, art::InputTag const &dataTag)
 Assembles and returns trigger gates from serialized data. More...
 

Detailed Description

Utilities for the conversion of trigger gate data formats.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.slac..nosp@m.stan.nosp@m.ford..nosp@m.edu)

Definition in file TriggerDataUtils.h.