1 #ifndef MARLINMT_PROCESSORAPI_h 2 #define MARLINMT_PROCESSORAPI_h 1 59 const std::filesystem::path &path,
60 const std::string_view &name,
61 const std::string_view &title,
78 const std::filesystem::path &path,
79 const std::string_view &name,
80 const std::string_view &title,
99 const std::filesystem::path &path,
100 const std::string_view &name,
101 const std::string_view &title,
121 const std::filesystem::path &path,
122 const std::string_view &name,
123 const std::string_view &title,
140 const std::filesystem::path &path,
141 const std::string_view &name,
142 const std::string_view &title,
161 const std::filesystem::path &path,
162 const std::string_view &name,
163 const std::string_view &title,
183 const std::filesystem::path &path,
184 const std::string_view &name,
185 const std::string_view &title,
202 const std::filesystem::path &path,
203 const std::string_view &name,
204 const std::string_view &title,
223 const std::filesystem::path &path,
224 const std::string_view &name,
225 const std::string_view &title,
242 const std::filesystem::path &path,
243 const std::string_view &name ) ;
254 const std::filesystem::path &path,
255 const std::string_view &name ) ;
266 const std::filesystem::path &path,
267 const std::string_view &name ) ;
280 const std::filesystem::path &path,
281 const std::string_view &name ) ;
292 const std::filesystem::path &path,
293 const std::string_view &name ) ;
304 const std::filesystem::path &path,
305 const std::string_view &name ) ;
318 const std::filesystem::path &path,
319 const std::string_view &name ) ;
330 const std::filesystem::path &path,
331 const std::string_view &name ) ;
342 const std::filesystem::path &path,
343 const std::string_view &name ) ;
356 const std::filesystem::path &path,
357 const std::string_view &name) ;
367 const std::filesystem::path &path,
368 const std::string_view &name) ;
440 template <
typename HANDLER>
457 static void abort(
const Processor *
const proc,
const std::string &reason ) ;
462 template <
typename HANDLER>
static bool isFirstEvent(EventStore *event)
Whether the event is the first event to be processed.
Data selection to identify and manage an Entry.
static H3DEntry getHist3D(const Processor *proc, const std::filesystem::path &path, const std::string_view &name)
Get handle for booked histogram 3D, double type.
static H1IEntry getHist1I(const Processor *proc, const std::filesystem::path &path, const std::string_view &name)
Get handle for booked histogram 1D, integer type.
static const HANDLER * geometry(const Processor *const proc)
Get the geometry handle as a given type.
static H1DEntry getHist1D(const Processor *proc, const std::filesystem::path &path, const std::string_view &name)
Get handle for booked histogram 1D, double type.
static H3FEntry bookHist3F(Processor *proc, const std::filesystem::path &path, const std::string_view &name, const std::string_view &title, const AxisConfigD &axisconfigX, const AxisConfigD &axisconfigY, const AxisConfigD &axisconfigZ, const BookFlag_t &flags=BookFlags::Default)
Book a histogram 3D, float type.
constexpr unsigned long long value(const Flag_t &flag)
static H1IEntry bookHist1I(Processor *proc, const std::filesystem::path &path, const std::string_view &name, const std::string_view &title, const AxisConfigD &axisconfig, const BookFlag_t &flags=BookFlags::Default)
Book a histogram 1D, integer type.
static H1FEntry bookHist1F(Processor *proc, const std::filesystem::path &path, const std::string_view &name, const std::string_view &title, const AxisConfigD &axisconfig, const BookFlag_t &flags=BookFlags::Default)
Book a histogram 1D, float type.
static H2DEntry bookHist2D(Processor *proc, const std::filesystem::path &path, const std::string_view &name, const std::string_view &title, const AxisConfigD &axisconfigX, const AxisConfigD &axisconfigY, const BookFlag_t &flags=BookFlags::Default)
Book a histogram 2D, double type.
Flag type for flags in marlinmt::book.
static H2IEntry getHist2I(const Processor *proc, const std::filesystem::path &path, const std::string_view &name)
Get handle for booked histogram 2D, integer type.
static H2FEntry bookHist2F(Processor *proc, const std::filesystem::path &path, const std::string_view &name, const std::string_view &title, const AxisConfigD &axisconfigX, const AxisConfigD &axisconfigY, const BookFlag_t &flags=BookFlags::Default)
Book a histogram 2D, float type.
static H3IEntry bookHist3I(Processor *proc, const std::filesystem::path &path, const std::string_view &name, const std::string_view &title, const AxisConfigD &axisconfigX, const AxisConfigD &axisconfigY, const AxisConfigD &axisconfigZ, const BookFlag_t &flags=BookFlags::Default)
Book a histogram 3D, integer type.
static unsigned int getRandomSeed(const Processor *const proc, EventStore *event)
Get a random seed from the event.
static void write(Processor *proc, const std::filesystem::path &path, const std::string_view &name)
register Object to write it at end of lifetime.
static void abort(const Processor *const proc, const std::string &reason)
Abort program execution properly.
collection for Axis Description
const GeometryManager & geometryManager() const
Get the geometry manager.
const T * geometry() const
Get the underlying geometry handle Example:
static H1DEntry bookHist1D(Processor *proc, const std::filesystem::path &path, const std::string_view &name, const std::string_view &title, const AxisConfigD &axisconfig, const BookFlag_t &flags=BookFlags::Default)
Book a histogram 1D, double type.
const Application & application() const
Get the application in which the component is registered.
static H2IEntry bookHist2I(Processor *proc, const std::filesystem::path &path, const std::string_view &name, const std::string_view &title, const AxisConfigD &axisconfigX, const AxisConfigD &axisconfigY, const BookFlag_t &flags=BookFlags::Default)
Book a histogram 2D, integer type.
constexpr Flag_t Default(0)
use default arguments
static H3IEntry getHist3I(const Processor *proc, const std::filesystem::path &path, const std::string_view &name)
Get handle for booked histogram 3D, integer type.
static H2FEntry getHist2F(const Processor *proc, const std::filesystem::path &path, const std::string_view &name)
Get handle for booked histogram 2D, float type.
static H3DEntry bookHist3D(Processor *proc, const std::filesystem::path &path, const std::string_view &name, const std::string_view &title, const AxisConfigD &axisconfigX, const AxisConfigD &axisconfigY, const AxisConfigD &axisconfigZ, const BookFlag_t &flags=BookFlags::Default)
Book a histogram 3D, double type.
static void skipCurrentEvent(const Processor *const proc)
Notify the application to skip the current event processing and go directly to the next event by skip...
group function for booking
static H2DEntry getHist2D(const Processor *proc, const std::filesystem::path &path, const std::string_view &name)
Get handle for booked histogram 2D, double type.
static H1FEntry getHist1F(const Processor *proc, const std::filesystem::path &path, const std::string_view &name)
Get handle for booked histogram 1D, float type.
static void dontWrite(Processor *proc, const std::filesystem::path &path, const std::string_view &name)
cancels writing of Object at end of lifetime.
static void setReturnValue(const Processor *const proc, EventStore *event, bool value)
Set the processor return value.
static H3FEntry getHist3F(const Processor *proc, const std::filesystem::path &path, const std::string_view &name)
Get handle for booked histogram 3D, float type.
static void registerForRandomSeeds(Processor *const proc)
Register the processor to get random seeds.