Belle II Software  release-08-01-10
ROIGeneratorModule.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 #include <framework/dataobjects/EventMetaData.h>
15 #include <tracking/dataobjects/ROIid.h>
16 
17 namespace Belle2 {
32  class ROIGeneratorModule : public Module {
33 
34  public:
35 
40 
41  private:
42 
46  void initialize() override final;
47 
51  void event() override final;
52 
56  std::string m_ROIListName;
57  int m_divider;
58  int m_layer ;
59  int m_ladder ;
60  int m_sensor ;
62  int m_minU ;
63  int m_maxU ;
65  int m_minV ;
66  int m_maxV ;
69  int m_nROIs;
71  bool m_random;
73  };
75 }
76 
Base class for Modules.
Definition: Module.h:72
The ROI generator Module.
void initialize() override final
Initializer.
std::string m_ROIListName
ROi list name.
int m_nROIs
number of ROIs per event
bool m_random
move single roi pseudo randomly
StoreObjPtr< EventMetaData > m_eventMetaData
EventMetaData DataStore pointer.
void event() override final
This method is called for each event.
int m_divider
generate one ROI every m_divider event
ROIGeneratorModule()
Constructor of the module.
StoreArray< ROIid > m_ROIs
ROIs StoreArray.
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.