Belle II Software development
ROICalculator.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#pragma once
9
10#include <tracking/trackFindingCDC/findlets/base/Findlet.h>
11#include <framework/datastore/StoreArray.h>
12
13#include <string>
14#include <vector>
15
16namespace Belle2 {
21 class ModuleParamList;
22 class VxdID;
23 class ROIid;
24
28 class ROICalculator : public TrackFindingCDC::Findlet<const std::pair<VxdID, long>, const std::pair<VxdID, long>> {
30 using Super = TrackFindingCDC::Findlet<const std::pair<VxdID, long>, const std::pair<VxdID, long>>;
31
32 public:
35
37 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) override;
38
40 void initialize() override;
41
43 void apply(const std::vector<std::pair<VxdID, long>>& uExtrapolations,
44 const std::vector<std::pair<VxdID, long>>& vExtrapolations) override;
45
46 private:
47
49 std::string m_param_ROIsStoreArrayName = "DATCONFPGAROIs";
52
61
62 };
64}
The Module parameter list class.
Findlet to calculate ROI on the PXD sensors based on input hits.
Definition: ROICalculator.h:28
void initialize() override
Create the store arrays.
short m_param_uROIsizeL2
ROI size in u direction on L2.
Definition: ROICalculator.h:56
short m_param_uROIsizeL1
ROI size in u direction on L1.
Definition: ROICalculator.h:54
void apply(const std::vector< std::pair< VxdID, long > > &uExtrapolations, const std::vector< std::pair< VxdID, long > > &vExtrapolations) override
Load in the prepared hits and create tracks for extrapolation to PXD.
short m_param_vROIsizeL2
ROI size in v direction on L2.
Definition: ROICalculator.h:60
ROICalculator()
Find intercepts in the 2D Hough space.
short m_param_vROIsizeL1
ROI size in v direction on L1.
Definition: ROICalculator.h:58
StoreArray< ROIid > m_storeDATCONROIs
PXDIntercept StoreArray.
Definition: ROICalculator.h:51
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub findlets.
std::string m_param_ROIsStoreArrayName
name of the PXDIntercept StoreArray
Definition: ROICalculator.h:49
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
Abstract base class for different kinds of events.