Belle II Software  release-08-01-10
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 /* ECL headers. */
12 #include <ecl/dataobjects/ECLCalDigit.h>
13 #include <ecl/dataobjects/ECLShower.h>
14 
15 /* Basf2 headers. */
16 #include <framework/core/Module.h>
17 #include <framework/datastore/StoreArray.h>
18 #include <mdst/dataobjects/ECLCluster.h>
19 #include <mdst/dataobjects/Track.h>
20 #include <tracking/dataobjects/ExtHit.h>
21 
22 namespace Belle2 {
37 
38  public:
39 
44 
47 
49  virtual void initialize() override;
50 
52  virtual void event() override;
53 
54 
55  private:
56 
58  double computeTrkMinDistance(const ECLShower&, StoreArray<Track>&, unsigned short& trackID) const;
59 
72  void computeDepth(const ECLShower& shower, double& lTrk, double& lShower) const;
73 
74  // Required input
83  };
85 }
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:30
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.