 |
Belle II Software
release-05-01-25
|
11 #include <svd/modules/svdPerformance/SVDShaperDigitsFromTracksModule.h>
13 #include <svd/dataobjects/SVDCluster.h>
14 #include <svd/dataobjects/SVDRecoDigit.h>
16 #include <tracking/dataobjects/RecoTrack.h>
17 #include <mdst/dataobjects/Track.h>
19 #include <framework/datastore/StoreArray.h>
35 B2DEBUG(1,
"Constructor");
37 setDescription(
"generates two new StoreArray from the input StoreArray. One contains all ShaperDigits related to Tracks and the other contains all SahperDigits not related to tracks");
40 addParam(
"SVDShaperDigits", m_svdshaper,
"StoreArray with the input shaperdigits", std::string(
"SVDShaperDigits"));
41 addParam(
"SVDRecoDigits", m_svdreco,
"StoreArray with the input recodigits", std::string(
"SVDRecoDigits"));
42 addParam(
"SVDClusters", m_svdcluster,
"StoreArray with the input clusters", std::string(
"SVDClusters"));
43 addParam(
"Tracks", m_track,
"StoreArray with the input tracks", std::string(
"Tracks"));
44 addParam(
"RecoTracks", m_recotrack,
"StoreArray with the input recotracks", std::string(
"RecoTracks"));
45 addParam(
"outputINArrayName", m_outputINArrayName,
"StoreArray with the output shaperdigits",
46 std::string(
"SVDShaperDigitsFromTracks"));
47 addParam(
"outputOUTArrayName", m_outputOUTArrayName,
"StoreArray with the output shaperdigits",
48 std::string(
"SVDShaperDigitsNotFromTracks"));
49 addParam(
"InheritAllRelations", m_inheritance,
50 "Set true if you want to inherit all relations between StoreArray, the default is false",
bool(
false));
55 B2DEBUG(20,
"Destructor");
63 B2DEBUG(10,
"SVDRecoDigits: " <<
m_svdreco);
65 B2DEBUG(10,
"Tracks: " <<
m_track);
76 ShaperDigits.isRequired();
77 Clusters.isRequired();
78 RecoDigits.isRequired();
79 recoTracks.isRequired();
125 if (reco_rel_shape.
size() == 0) {
return false;}
128 if (cluster_rel_reco.
size() == 0) {
return false;}
131 if (recotrack_rel_cluster.
size() == 0) {
return false;}
134 if (track_rel_recotrack.
size() == 0) {
return false;}
size_t size() const
Get number of relations.
std::string m_outputOUTArrayName
StoreArray with the NOT selected output shaperdigits.
std::string m_svdshaper
StoreArray with the input shaperdigits.
SelectSubset< SVDShaperDigit > m_notSelectedShaperDigits
all shaperdigits from tracks
virtual void initialize() override
init the module
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
virtual void terminate() override
terminates the module
std::string m_recotrack
reco track store array
generates two new StoreArray from the input StoreArray.
SelectSubset< SVDShaperDigit > m_selectedShaperDigits
all shaperdigits
virtual void endRun() override
end the run
The SVD ShaperDigit class.
std::string m_svdreco
SVDRecoDigits StoreArray.
This is the Reconstruction Event-Data Model Track.
Class for type safe access to objects that are referred to in relations.
Abstract base class for different kinds of events.
bool m_inheritance
if true all relations are inherited
RelationVector< FROM > getRelationsFrom(const std::string &name="", const std::string &namedRelation="") const
Get the relations that point from another store array to this object.
virtual void event() override
processes the event
std::string m_track
Track store array.
std::string m_outputINArrayName
StoreArray with the selected output shaperdigits.
The SVD Cluster class This class stores all information about reconstructed SVD clusters.
virtual ~SVDShaperDigitsFromTracksModule()
if required
Class that bundles various TrackFitResults.
Accessor to arrays stored in the data store.
std::string m_svdcluster
SVDCLuster store array.
static bool isRelatedToTrack(const SVDShaperDigit *shaperdigit)
select the shaperdigits related to tracks
virtual void beginRun() override
initializes the module