 |
Belle II Software
release-05-02-19
|
10 #include <reconstruction/modules/ClusterMatcher/ClusterMatcherModule.h>
12 #include <framework/gearbox/Const.h>
15 #include <mdst/dataobjects/KLMCluster.h>
16 #include <mdst/dataobjects/ECLCluster.h>
17 #include <mdst/dataobjects/Cluster.h>
18 #include <mdst/dataobjects/KlId.h>
29 setDescription(
"Match KLM cluster to ECL Clusters within a certain cone.");
35 "Cone angle in rad, will be devided by 2 for the matching",
63 const TVector3& eclClusterPos = eclCluster.getClusterPosition();
67 eclCluster.addRelationTo(clusterecl);
71 const TVector3& klmClusterPos = klmcluster.getClusterPosition();
73 angleDist = eclClusterPos.Angle(klmClusterPos);
77 eclCluster.addRelationTo(&klmcluster, angleDist);
78 klmcluster.addRelationTo(clusterecl);
84 klmcluster.getRelatedTo<
KlId>()->getKlId()
86 klmcluster.addRelationTo(clusterklm);
void setDescription(const std::string &description)
Sets the description of the module.
Helper functions for all klid modules to improve readability of the code.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
void setLogLikelihood(Const::EDetector det, const Const::Cluster &cluster, float logl)
Set log likelihood for a given detector and particle.
static const Cluster clusterKlong
K^0_L cluster.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
Class to collect log likelihoods from Clusters from ECL and KLM aimed for output to mdst includes fun...
Abstract base class for different kinds of events.
StoreArray< Cluster > m_Clusters
array of output Clusters
virtual void event() override
process event
virtual void initialize() override
init
StoreArray< ECLCluster > m_eclClusters
Required array of input ECLClusters.
virtual ~ClusterMatcherModule()
Destructor.
StoreArray< KLMCluster > m_klmClusters
Required array of input KLMClusters.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
ClusterMatcherModule()
Constructor.
float m_coneInRad
cone angle for matching (whole cone)