Belle II Software development
ROIPayloadAssemblerModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <framework/core/Module.h>
12#include <framework/datastore/StoreArray.h>
13#include <framework/datastore/StoreObjPtr.h>
14
15#include <string>
16
17namespace Belle2 {
22 class EventMetaData;
23 class ROIid;
24 class ROIpayload;
25
33
34 public:
35
40
41 private:
42
46 void initialize() override final;
47
49 void event() override final;
50
55 std::string m_ROIListName;
56 std::string m_ROIpayloadName;
57 unsigned int mSendAllDS;
58 unsigned int mSendROIsDS;
59 unsigned int mCutNrROIs;
63 };
65}
Base class for Modules.
Definition: Module.h:72
The ROI Payload Assembler Module.
unsigned int mSendROIsDS
Send ROIs downscaler; Workaround for missing ONSEN functionality.
void initialize() override final
Initializes the Module.
bool mNoRejectFlag
Never reject, just send no ROI.
std::string m_ROIListName
name of the ROI list
StoreObjPtr< ROIpayload > m_roiPayloads
pointer to the ROIpayload dataobject
std::string m_ROIpayloadName
name of the payload to be sent to ONSEN
StoreObjPtr< EventMetaData > m_eventMetaData
pointer to the dataobject with event number etc
unsigned int mCutNrROIs
If Nr of ROIs per DHHID reach this, send out only one full sensor ROI.
void event() override final
This method is the core of the module.
bool mAcceptAll
Accept all event, dont use HLT decision.
ROIPayloadAssemblerModule()
Constructor of the module.
unsigned int mSendAllDS
Send all Data (no selection) downscaler; Workaround for missing ONSEN functionality.
StoreArray< ROIid > m_ROIList
the ROIids dataobjects collection
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.