Belle II Software  release-06-02-00
ECLTRGInformationModule.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 #pragma once
9 
10 #include <framework/core/Module.h>
11 #include <framework/datastore/StoreArray.h>
12 #include <framework/datastore/StoreObjPtr.h>
13 
14 namespace Belle2 {
20  class ECLCalDigit;
21  class ECLCluster;
22  class ECLTRGInformation;
23  class ECLTriggerCell;
24  class TRGECLUnpackerStore;
25  class TRGECLUnpackerEvtStore;
26  class TrgEclMapping;
27 
35 
36  public:
37 
42 
44  virtual void initialize() override;
45 
47  virtual void event() override;
48 
50  virtual void terminate() override;
51 
52  private:
53 
56 
58  typedef std::map <unsigned, float> tcmap;
59 
60 
62  std::vector< int > m_calDigitStoreArrPosition;
63 
65  std::vector< int > m_TCStoreArrPosition;
66 
69 
77  };
79 }
Module to get ECL TRG energy information.
StoreObjPtr< ECLTRGInformation > m_eclTRGInformation
Analysis level information per event holding TRG information.
virtual void initialize() override
initialize
ECLTRGInformationModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void event() override
event
std::vector< int > m_TCStoreArrPosition
vector (576+1 entries) with TC id to store array positions
virtual void terminate() override
terminate
std::vector< int > m_calDigitStoreArrPosition
vector (8736+1 entries) with cell id to store array positions
std::map< unsigned, float > tcmap
map TCId, energy
StoreArray< TRGECLUnpackerStore > m_trgUnpackerStore
Required input array of TRGECLUnpackerStore
StoreArray< ECLCluster > m_eclClusters
Required input array of ECLClusters
TrgEclMapping * m_trgmap
TC mapping class.
StoreArray< ECLCalDigit > m_eclCalDigits
Required input array of ECLCalDigits
double m_clusterEnergyThreshold
threshold for eclcluster energy sum
StoreArray< ECLTriggerCell > m_eclTCs
Output array of ECLTCs
StoreArray< TRGECLUnpackerEvtStore > m_trgUnpackerEvtStore
Required input array of TRGECLUnpackerEvtStore
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:95
A class of TC Mapping.
Definition: TrgEclMapping.h:26
Abstract base class for different kinds of events.