ATLAS Offline Software
JemMappingTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGT1CALOMAPPINGTOOLS_JEMMAPPINGTOOL_H
6 #define TRIGT1CALOMAPPINGTOOLS_JEMMAPPINGTOOL_H
7 
8 #include <map>
9 #include <utility>
10 #include <vector>
11 
13 
15 
16 class IInterface;
17 class StatusCode;
18 
19 namespace LVL1 {
20 
21 
34 class JemMappingTool : public extends<AthAlgTool, IL1CaloMappingTool>
35 {
36 
37  public:
38 
39  using base_class::base_class;
40 
41  virtual StatusCode initialize() override;
42  virtual StatusCode finalize() override;
43 
45  virtual bool mapping(int crate, int module, int channel,
46  double& eta, double& phi, int& layer) const override;
48  virtual bool mapping(double eta, double phi, int layer,
49  int& crate, int& module, int& channel) const override;
50 
51  private:
52 
53  static const int s_crates = 2;
54  static const int s_modules = 16;
55  static const int s_channels = 44;
56 
57  static const int s_modulesPerQuadrant = 8;
58  static const int s_extremeNegModule = 0;
59  static const int s_extremePosModule = 7;
60  static const int s_etaBinsPerRow = 4;
61 
62  static const double s_phiGran;
63  static const double s_etaGran;
64 
65  // Extreme eta data vectors
66  std::vector<double> m_etasNegative;
67  std::vector<double> m_granNegative;
68  std::vector<double> m_etasPositive;
69  std::vector<double> m_granPositive;
70 
71  // Extreme eta remapping vectors
72  std::vector<int> m_negChans;
73  std::vector<int> m_posChans;
74 
75 };
76 
77 } // end namespace
78 
79 #endif
LVL1::JemMappingTool::s_etaGran
static const double s_etaGran
Definition: JemMappingTool.h:63
LVL1::JemMappingTool::s_etaBinsPerRow
static const int s_etaBinsPerRow
Definition: JemMappingTool.h:60
LVL1::JemMappingTool::initialize
virtual StatusCode initialize() override
Definition: JemMappingTool.cxx:32
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
LVL1::JemMappingTool::finalize
virtual StatusCode finalize() override
Definition: JemMappingTool.cxx:61
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::JemMappingTool
JEM crate/module/channel to eta/phi/layer mappings.
Definition: JemMappingTool.h:35
LVL1::JemMappingTool::m_etasNegative
std::vector< double > m_etasNegative
Definition: JemMappingTool.h:66
LVL1::JemMappingTool::m_granNegative
std::vector< double > m_granNegative
Definition: JemMappingTool.h:67
LVL1::JemMappingTool::s_channels
static const int s_channels
Definition: JemMappingTool.h:55
python.PyAthena.module
module
Definition: PyAthena.py:131
LVL1::JemMappingTool::mapping
virtual bool mapping(int crate, int module, int channel, double &eta, double &phi, int &layer) const override
Return eta, phi and layer mapping for given crate/module/channel.
Definition: JemMappingTool.cxx:69
LVL1::JemMappingTool::s_modules
static const int s_modules
Definition: JemMappingTool.h:54
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
AthAlgTool.h
LVL1::JemMappingTool::m_negChans
std::vector< int > m_negChans
Definition: JemMappingTool.h:72
LVL1::JemMappingTool::s_extremePosModule
static const int s_extremePosModule
Definition: JemMappingTool.h:59
LVL1::JemMappingTool::s_phiGran
static const double s_phiGran
Definition: JemMappingTool.h:62
LVL1::JemMappingTool::s_extremeNegModule
static const int s_extremeNegModule
Definition: JemMappingTool.h:58
IL1CaloMappingTool.h
LVL1::JemMappingTool::s_crates
static const int s_crates
Definition: JemMappingTool.h:53
LVL1::JemMappingTool::s_modulesPerQuadrant
static const int s_modulesPerQuadrant
Definition: JemMappingTool.h:57
LVL1::JemMappingTool::m_etasPositive
std::vector< double > m_etasPositive
Definition: JemMappingTool.h:68
LVL1::JemMappingTool::m_granPositive
std::vector< double > m_granPositive
Definition: JemMappingTool.h:69
LVL1::JemMappingTool::m_posChans
std::vector< int > m_posChans
Definition: JemMappingTool.h:73