ATLAS Offline Software
Loading...
Searching...
No Matches
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
16class IInterface;
17class StatusCode;
18
19namespace LVL1 {
20
21
31
32class 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
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
CPM crate/module/channel to eta/phi/layer mappings.
static const int s_etaBinsPerRow
static const int s_channels
virtual StatusCode finalize() override
virtual StatusCode initialize() override
static const int s_modules
static const double s_etaGran
static const int s_crates
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.
static const double s_phiGran
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...