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
37 virtual ~SVDShaperDigitsFromTracksModule() override;
38
40 virtual void event() override;
41
43 virtual void initialize() override;
44
45 private:
46
47 std::string m_svdshaper;
48 std::string m_svdreco;
49 std::string m_svdcluster;
50 std::string m_recotrack;
51 std::string m_track;
52
53 bool m_inheritance = false;
54 bool m_useWithRel5Reco = false;
55
56 std::string m_outputINArrayName;
58
61
62 static bool isRelatedToTrack(const SVDShaperDigit* shaperdigit);
63 static bool isRelatedToTrackRel5(const SVDShaperDigit*
64 shaperdigit);
65
66 };
67
68}
69
70#endif /* SVDSHAPERDIGITSFROMTRACKSMODULE_H */
Module()
Constructor.
Definition Module.cc:30
The SVD ShaperDigit class.
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
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.
Abstract base class for different kinds of events.