Belle II Software development
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
18namespace Belle2 {
23 class ECLCluster;
24 class ECLShower;
25 class ECLCalDigit;
26 class MCParticle;
27
28
34
35 public:
36
41
43 virtual void initialize() override;
44
46 virtual void event() override;
47
49 virtual void terminate() override;
50
51 private:
52
53 bool selectShower(const ECLShower* shower);
54 bool selectDigit(const ECLCalDigit* digit);
61 std::string m_ShowerArrayName = "ECLTrimmedShowers";
62 std::string m_DigitArrayName = "ECLTrimmedDigits";
67 unsigned short maxCellID = 9999;
69 };
71}
72
73
74
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.