Belle II Software development
SVDShaperDigitsFromTracksModule.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#ifndef SVDSHAPERDIGITSFROMTRACKSMODULE_H
10#define SVDSHAPERDIGITSFROMTRACKSMODULE_H
11
12#include <framework/core/Module.h>
13#include <framework/datastore/SelectSubset.h>
14
15#include <svd/dataobjects/SVDShaperDigit.h>
16
17namespace Belle2 {
28
29 public:
30
35
38
40 virtual void beginRun() override;
41
43 virtual void event() override;
44
46 virtual void endRun() override;
47
49 virtual void terminate() override;
50
52 virtual void initialize() override;
53
54 private:
55
56 std::string m_svdshaper;
57 std::string m_svdreco;
58 std::string m_svdcluster;
59 std::string m_recotrack;
60 std::string m_track;
62 bool m_inheritance = false;
63 bool m_useWithRel5Reco = false;
65 std::string m_outputINArrayName;
71 static bool isRelatedToTrack(const SVDShaperDigit* shaperdigit);
72 static bool isRelatedToTrackRel5(const SVDShaperDigit*
73 shaperdigit);
75 };
77}
78
79#endif /* SVDSHAPERDIGITSFROMTRACKSMODULE_H */
Base class for Modules.
Definition: Module.h:72
The SVD ShaperDigit class.
generates two new StoreArray from the input StoreArray.
std::string m_outputOUTArrayName
StoreArray with the NOT selected output shaperdigits.
std::string m_outputINArrayName
StoreArray with the selected output shaperdigits.
SelectSubset< SVDShaperDigit > m_selectedShaperDigits
all shaperdigits
std::string m_svdshaper
StoreArray with the input shaperdigits.
virtual void initialize() override
init the module
SVDShaperDigitsFromTracksModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void event() override
processes the event
virtual void terminate() override
terminates the module
virtual void beginRun() override
initializes the module
std::string m_svdreco
SVDRecoDigits StoreArray.
SelectSubset< SVDShaperDigit > m_notSelectedShaperDigits
all shaperdigits from tracks
static bool isRelatedToTrackRel5(const SVDShaperDigit *shaperdigit)
select the shaperdigits related to tracks using SVDRecoDigits
bool m_inheritance
if true all relations are inherited
bool m_useWithRel5Reco
if true uses SVDRecoDigits relations
static bool isRelatedToTrack(const SVDShaperDigit *shaperdigit)
select the shaperdigits related to tracks
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
Definition: SelectSubset.h:193
Abstract base class for different kinds of events.