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

Creates a ROOT tree with trigger information. More...

#include "icaruscode/PMT/Trigger/Algorithms/BeamGateMaker.h"
#include "icaruscode/PMT/Trigger/Algorithms/BeamGateStruct.h"
#include "icaruscode/PMT/Trigger/Algorithms/details/EventInfoTree.h"
#include "icaruscode/PMT/Trigger/Algorithms/details/EventIDTree.h"
#include "icaruscode/PMT/Trigger/Algorithms/details/TreeHolder.h"
#include "icaruscode/PMT/Trigger/Algorithms/details/EventInfoUtils.h"
#include "icaruscode/PMT/Trigger/Algorithms/details/EventInfo_t.h"
#include "icaruscode/PMT/Trigger/Algorithms/TriggerGateBuilder.h"
#include "icaruscode/PMT/Trigger/Algorithms/TriggerTypes.h"
#include "icaruscode/PMT/Trigger/Utilities/TrackedOpticalTriggerGate.h"
#include "icaruscode/PMT/Trigger/Utilities/TriggerDataUtils.h"
#include "icaruscode/Utilities/DetectorClocksHelpers.h"
#include "icaruscode/Utilities/DataProductPointerMap.h"
#include "icarusalg/Utilities/FHiCLutils.h"
#include "icarusalg/Utilities/ChangeMonitor.h"
#include "sbnobj/ICARUS/PMT/Trigger/Data/OpticalTriggerGate.h"
#include "sbnobj/ICARUS/PMT/Trigger/Data/TriggerGateData.h"
#include "sbnobj/ICARUS/PMT/Data/WaveformBaseline.h"
#include "lardata/DetectorInfoServices/DetectorClocksService.h"
#include "larcore/Geometry/Geometry.h"
#include "larcore/CoreUtils/ServiceUtil.h"
#include "lardataalg/DetectorInfo/DetectorTimings.h"
#include "lardataalg/DetectorInfo/DetectorTimingTypes.h"
#include "lardataalg/Utilities/intervals_fhicl.h"
#include "lardataalg/Utilities/quantities_fhicl.h"
#include "larcorealg/Geometry/geo_vectors_utils.h"
#include "larcorealg/Geometry/GeometryCore.h"
#include "larcorealg/CoreUtils/enumerate.h"
#include "larcorealg/CoreUtils/values.h"
#include "lardataobj/RawData/OpDetWaveform.h"
#include "art_root_io/TFileService.h"
#include "art/Framework/Services/Registry/ServiceHandle.h"
#include "art/Framework/Core/EDAnalyzer.h"
#include "art/Framework/Core/ModuleMacros.h"
#include "art/Framework/Principal/Event.h"
#include "canvas/Utilities/Exception.h"
#include "messagefacility/MessageLogger/MessageLogger.h"
#include "fhiclcpp/types/OptionalSequence.h"
#include "fhiclcpp/types/Sequence.h"
#include "fhiclcpp/types/OptionalAtom.h"
#include "fhiclcpp/types/Atom.h"
#include "TTree.h"
#include <memory>
#include <string>
#include <optional>
#include <utility>
#include <limits>

Go to the source code of this file.

Classes

struct  TriggerGatesInfo
 All information from the trigger gates. More...
 
struct  TriggerGatesInfo::TriggerGateInfo
 Information from a single trigger gate. More...
 
struct  TriggerGateTree
 Class managing the serialization of trigger gates in a simple ROOT tree. More...
 
class  icarus::trigger::MakeTriggerSimulationTree
 Make ROOT tree with information about event and trigger input. More...
 
struct  icarus::trigger::MakeTriggerSimulationTree::Config
 

Namespaces

 icarus::trigger
 

Functions

std::ostream & operator<< (std::ostream &out, TriggerGatesInfo::TriggerGateInfo const &info)
 
std::ostream & operator<< (std::ostream &out, TriggerGatesInfo const &info)
 

Detailed Description

Creates a ROOT tree with trigger information.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.slac..nosp@m.stan.nosp@m.ford..nosp@m.edu)
Date
May 15, 2020

Definition in file MakeTriggerSimulationTree_module.cc.

Function Documentation

std::ostream & operator<< ( std::ostream &  out,
TriggerGatesInfo::TriggerGateInfo const &  info 
)

Definition at line 469 of file MakeTriggerSimulationTree_module.cc.

470 {
471  out << "center at " << info.center;
472  if (info.nOpenings == 0) out << " never opened";
473  else {
474  out << " opened " << info.nOpenings << " times, first at "
475  << info.firstOpenTime;
476  }
477  return out;
478 } // operator<< (TriggerGatesInfo::TriggerGateInfo const&)
std::ostream & operator<< ( std::ostream &  out,
TriggerGatesInfo const &  info 
)

Definition at line 482 of file MakeTriggerSimulationTree_module.cc.

482  {
483  out << size(info.TriggerGates) << " gates:";
484  for (auto const& [ iGate, gate ]: util::enumerate(info.TriggerGates))
485  out << "\n [" << iGate << "] " << gate;
486  out << "\n";
487  return out;
488 } // operator<< (TriggerGatesInfo const&)
std::size_t size(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:561
auto enumerate(Iterables &&...iterables)
Range-for loop helper tracking the number of iteration.
Definition: enumerate.h:69