Belle II Software  release-05-02-19
eclFillCellIdMappingModule.h
1 /**************************************************************************
2 * BASF2 (Belle Analysis Framework 2) *
3 * Copyright(C) 2018 - Belle II Collaboration *
4 * *
5 * Author: The Belle II Collaboration *
6 * Contributors: Torben Ferber (torben.ferber@desy.de) *
7 * *
8 * This software is provided "as is" without any warranty. *
9 **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/Module.h>
14 #include <framework/datastore/StoreObjPtr.h>
15 #include <framework/datastore/StoreArray.h>
16 
17 namespace Belle2 {
22  class ECLCellIdMapping;
23  class ECLCalDigit;
24 
25  namespace ECL {
26  class ECLNeighbours;
27  class ECLGeometryPar;
28  }
29 
30 
35  class ECLFillCellIdMappingModule : public Module {
36 
37  public:
38 
43 
45  virtual void initialize() override;
46 
48  virtual void event() override;
49 
51  virtual void terminate() override;
52 
53 
54  private:
56  ECL::ECLGeometryPar* m_geom{nullptr};
57 
60 
63  ECL::ECLNeighbours* m_NeighbourMap7{nullptr};
66  StoreObjPtr<ECLCellIdMapping> m_eclCellIdMapping;
67 
69  std::vector<double> m_CellIdToPhi;
70 
72  std::vector<double> m_CellIdToTheta;
73 
75  std::vector<int> m_CellIdToPhiId;
76 
78  std::vector<int> m_CellIdToThetaId;
79 
80 
81  };
83 }
84 
Belle2::ECLFillCellIdMappingModule::m_eclCellIdMapping
StoreObjPtr< ECLCellIdMapping > m_eclCellIdMapping
Store object pointer: ECLCellIdToECLCalDigitMapping.
Definition: eclFillCellIdMappingModule.h:74
Belle2::ECLFillCellIdMappingModule::m_CellIdToTheta
std::vector< double > m_CellIdToTheta
vector (8736+1 entries) with cell id to theta values
Definition: eclFillCellIdMappingModule.h:80
Belle2::ECLFillCellIdMappingModule::terminate
virtual void terminate() override
Terminate.
Definition: eclFillCellIdMappingModule.cc:92
Belle2::ECLFillCellIdMappingModule::m_CellIdToPhi
std::vector< double > m_CellIdToPhi
vector (8736+1 entries) with cell id to phi values
Definition: eclFillCellIdMappingModule.h:77
Belle2::ECL::ECLNeighbours
Class to get the neighbours for a given cell id.
Definition: ECLNeighbours.h:38
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ECLFillCellIdMappingModule::initialize
virtual void initialize() override
Initialize.
Definition: eclFillCellIdMappingModule.cc:39
Belle2::ECLFillCellIdMappingModule::m_geom
ECL::ECLGeometryPar * m_geom
Geometry.
Definition: eclFillCellIdMappingModule.h:64
Belle2::ECLFillCellIdMappingModule::m_NeighbourMap7
ECL::ECLNeighbours * m_NeighbourMap7
7x7
Definition: eclFillCellIdMappingModule.h:71
Belle2::ECLFillCellIdMappingModule::m_CellIdToThetaId
std::vector< int > m_CellIdToThetaId
vector (8736+1 entries) with cell id to theta id values
Definition: eclFillCellIdMappingModule.h:86
Belle2::ECLFillCellIdMappingModule::m_eclCalDigits
StoreArray< ECLCalDigit > m_eclCalDigits
Store array: ECLCalDigit.
Definition: eclFillCellIdMappingModule.h:67
Belle2::ECL::ECLGeometryPar
The Class for ECL Geometry Parameters.
Definition: ECLGeometryPar.h:45
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::ECLFillCellIdMappingModule::m_NeighbourMap5
ECL::ECLNeighbours * m_NeighbourMap5
Neighbour maps.
Definition: eclFillCellIdMappingModule.h:70
Belle2::ECLFillCellIdMappingModule::event
virtual void event() override
Event.
Definition: eclFillCellIdMappingModule.cc:69
Belle2::ECLFillCellIdMappingModule::m_CellIdToPhiId
std::vector< int > m_CellIdToPhiId
vector (8736+1 entries) with cell id to phi id values
Definition: eclFillCellIdMappingModule.h:83
Belle2::ECLFillCellIdMappingModule::ECLFillCellIdMappingModule
ECLFillCellIdMappingModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: eclFillCellIdMappingModule.cc:33