Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
trento::Output Class Reference

#include <JETSCAPE/blob/main/external_packages/trento/src/output.h>

+ Collaboration diagram for trento::Output:

Public Member Functions

 Output (const VarMap &var_map)
 Instantiate from the configuration.
 
template<typename... Args>
void operator() (Args &&...args) const
 

Private Attributes

std::vector< std::function
< void(int, double, const
Event &)> > 
writers_
 Internal storage of output functions.
 

Detailed Description

Simple interface for outputting event data. Determines which output formats to create based on the configuration and writes those formats when called.

Definition at line 19 of file output.h.

View newest version in sPHENIX GitHub at line 19 of file output.h

Constructor & Destructor Documentation

Output::Output ( const VarMap var_map)

Instantiate from the configuration.

Definition at line 205 of file output.cxx.

View newest version in sPHENIX GitHub at line 205 of file output.cxx

References Acts::Concepts::exists, trento::hdf5::filename_is_hdf5(), nevents(), path, and writers_.

+ Here is the call graph for this function:

Member Function Documentation

template<typename... Args>
void Output::operator() ( Args &&...  args) const

Call the functor to output event data. Arguments are perfect-forwarded to each output function. The required arguments are

  • int event number
  • double impact parameter
  • const Event& Event object

Definition at line 42 of file output.h.

View newest version in sPHENIX GitHub at line 42 of file output.h

References check_smearing_config::args, write(), and writers_.

+ Here is the call graph for this function:

Member Data Documentation

std::vector<std::function<void(int, double, const Event&)> > trento::Output::writers_
private

Internal storage of output functions.

Definition at line 38 of file output.h.

View newest version in sPHENIX GitHub at line 38 of file output.h

Referenced by operator()(), and Output().


The documentation for this class was generated from the following files: