Belle II Software  release-08-01-10
ECLTrimShowersAndDigitsModule.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 <framework/core/Module.h>
12 #include <framework/datastore/StoreArray.h>
13 #include <framework/datastore/SelectSubset.h>
14 #include <ecl/dataobjects/ECLShower.h>
15 #include <ecl/dataobjects/ECLCalDigit.h>
16 
17 
18 namespace Belle2 {
23  class ECLCluster;
24  class ECLShower;
25  class ECLCalDigit;
26  class MCParticle;
27 
28 
37 
38  public:
39 
44 
46  virtual void initialize() override;
47 
49  virtual void event() override;
50 
52  virtual void terminate() override;
53 
54  private:
55 
56  bool selectShower(const ECLShower* shower);
57  bool selectDigit(const ECLCalDigit* digit);
64  std::string m_ShowerArrayName = "ECLTrimmedShowers";
65  std::string m_DigitArrayName = "ECLTrimmedDigits";
70  unsigned short maxCellID = 9999;
72  };
74 }
75 
76 
77 
Class to store calibrated ECLDigits: ECLCalDigits.
Definition: ECLCalDigit.h:23
Class to store ECL Showers.
Definition: ECLShower.h:30
Create new dataobjects containing only the ECLShower and ECLCalDigits associated with the selected EC...
StoreArray< MCParticle > m_mcParticleArray
Array of MCParticles.
StoreArray< ECLShower > m_eclShowerArray
Array of ECLShowers.
std::string m_DigitArrayName
Name of new ECLCalDigit StoreArray.
virtual void initialize() override
Register input and output data.
StoreArray< ECLCluster > m_eclClusterArray
Array of ECLClusters.
bool selectShower(const ECLShower *shower)
keep the ECLShower or not
std::string m_ShowerArrayName
Name of new ECLShower StoreArray.
bool selectDigit(const ECLCalDigit *digit)
keep the ECLCalDigit or not
ECLTrimShowersAndDigitsModule()
Constructor: Sets the description, the properties and the parameters of the module.
StoreArray< ECLCalDigit > m_eclCalDigitArray
Array of ECLCalDigits.
SelectSubset< ECLCalDigit > m_selectedDigits
selected ECLCalDigits
unsigned short maxCellID
used to identify the cluster of interest
SelectSubset< ECLShower > m_selectedShowers
selected ECLShowers
Base class for Modules.
Definition: Module.h:72
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
Definition: SelectSubset.h:193
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.