ATLAS Offline Software
CpmMappingTool.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_CPMMAPPINGTOOL_H
6 #define TRIGT1CALOMAPPINGTOOLS_CPMMAPPINGTOOL_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 
32 class CpmMappingTool : public extends<AthAlgTool, IL1CaloMappingTool>
33 {
34  public:
35 
36  using base_class::base_class;
37 
38  virtual StatusCode initialize() override;
39  virtual StatusCode finalize() override;
40 
42  virtual bool mapping(int crate, int module, int channel,
43  double& eta, double& phi, int& layer) const override;
45  virtual bool mapping(double eta, double phi, int layer,
46  int& crate, int& module, int& channel) const override;
47 
48  private:
49 
50  static const int s_crates = 4;
51  static const int s_modules = 14;
52  static const int s_channels = 80;
53 
54  static const int s_etaBinsPerRow = 4;
55 
56  static const double s_phiGran;
57  static const double s_etaGran;
58 
59 };
60 
61 } // end namespace
62 
63 #endif
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
LVL1::CpmMappingTool::s_etaBinsPerRow
static const int s_etaBinsPerRow
Definition: CpmMappingTool.h:54
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::CpmMappingTool::s_etaGran
static const double s_etaGran
Definition: CpmMappingTool.h:57
LVL1::CpmMappingTool::initialize
virtual StatusCode initialize() override
Definition: CpmMappingTool.cxx:28
python.PyAthena.module
module
Definition: PyAthena.py:131
LVL1::CpmMappingTool::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: CpmMappingTool.cxx:43
LVL1::CpmMappingTool
CPM crate/module/channel to eta/phi/layer mappings.
Definition: CpmMappingTool.h:33
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::CpmMappingTool::s_modules
static const int s_modules
Definition: CpmMappingTool.h:51
LVL1::CpmMappingTool::s_crates
static const int s_crates
Definition: CpmMappingTool.h:50
IL1CaloMappingTool.h
LVL1::CpmMappingTool::finalize
virtual StatusCode finalize() override
Definition: CpmMappingTool.cxx:35
LVL1::CpmMappingTool::s_channels
static const int s_channels
Definition: CpmMappingTool.h:52
LVL1::CpmMappingTool::s_phiGran
static const double s_phiGran
Definition: CpmMappingTool.h:56