Belle II Software  release-06-02-00
ECLClusterPropertiesModule.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 #pragma once
10 
11 #include <ecl/dataobjects/ECLCalDigit.h>
12 #include <ecl/dataobjects/ECLShower.h>
13 #include <framework/core/Module.h>
14 #include <framework/datastore/StoreArray.h>
15 #include <mdst/dataobjects/ECLCluster.h>
16 #include <mdst/dataobjects/Track.h>
17 #include <tracking/dataobjects/ExtHit.h>
18 
19 namespace Belle2 {
34 
35  public:
36 
41 
44 
46  virtual void initialize() override;
47 
49  virtual void event() override;
50 
51 
52  private:
53 
55  double computeTrkMinDistance(const ECLShower&, StoreArray<Track>&, unsigned short& trackID) const;
56 
69  void computeDepth(const ECLShower& shower, double& lTrk, double& lShower) const;
70 
71  // Required input
80  };
82 }
This module calculates some properties of ECL clusters.
std::string m_trackClusterRelationName
name of relation array between tracks and ECL clusters
StoreArray< ECLShower > m_eclShowers
Required input array of ECLShowers.
virtual void initialize() override
Initialize the required input arrays.
virtual void event() override
Event loop.
void computeDepth(const ECLShower &shower, double &lTrk, double &lShower) const
Computation of depths / distances.
StoreArray< Track > m_tracks
Required input array of Tracks.
StoreArray< ECLCluster > m_eclClusters
Required input array of ECLClusters.
double computeTrkMinDistance(const ECLShower &, StoreArray< Track > &, unsigned short &trackID) const
Minimal distance between track and shower.
ECLClusterPropertiesModule()
Constructor: Sets the description, the properties and the parameters of the module.
StoreArray< ExtHit > m_extHits
Required input array of ExtHits.
StoreArray< ECLCalDigit > m_eclCalDigits
Required input array of ECLCalDigits.
Class to store ECL Showers.
Definition: ECLShower.h:25
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.