ATLAS Offline Software
EfexCellMapping.h
Go to the documentation of this file.
1 #ifndef EFEX_CELL_MAPPING_H
2 #define EFEX_CELL_MAPPING_H
3 
7 
8 #include <cmath>
9 #include <string>
10 #include <iostream>
11 #include <stdio.h>
12 #include <cstdlib>
13 #include <memory>
15 
16  public:
17  enum roiType { Roi };
18  // Constructor for input data
19  EfexCellMapping (int crate,
20  int efexnumber, int fpga, int quad, int mgtchannel, int dataword){
21  init( crate, efexnumber, fpga, quad, mgtchannel, dataword);
22  };
23  //Constructor for output MGT scheme (0 to 48):
24  EfexCellMapping (int crate,
25  int efexnumber, int fpga, int mgtchannelout, int dataword);
26  // Constructor for TOB positions
27  EfexCellMapping ( roiType t, int crate,
28  int efexnumber, int fpga, int eta, int phi );
29  // Constructor for TOB positions with seed
30  EfexCellMapping ( roiType t, int crate,
31  int efexnumber, int fpga, int eta, int phi, int seed );
32  // From full HW info returns an L1CaloDetectorRegion object which
33  // gives exact tower/supercell + depth
36  std::string getLatomeID() const;
37  //Dirty additions for Steve TODO remove later
38  int m_fibrenumber{-1};
40  private:
41  void init(int crate, int efexnumber,int fpga, int quad, int mgtchannel , int dataword);
42  std::string findModuleCords(int crate, int efexnumber) const;
46  std::string m_latomeid;
47 };
48 
49 #endif // EFEX_CELL_MAPPING_H
EfexCellMapping::m_tables
EfexCSVTables & m_tables
Definition: EfexCellMapping.h:45
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
EfexCellMapping::getDetectorRegion
L1CaloDetectorRegion getDetectorRegion() const
Definition: EfexCellMapping.cxx:73
EfexCellMapping::getHardwareInfo
EfexHardwareInfo getHardwareInfo() const
Definition: EfexCellMapping.cxx:78
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
EfexHardwareInfo.h
EfexHardwareInfo
Definition: EfexHardwareInfo.h:4
EfexCellMapping::EfexCellMapping
EfexCellMapping(int crate, int efexnumber, int fpga, int quad, int mgtchannel, int dataword)
Definition: EfexCellMapping.h:19
EfexCellMapping::m_latomeid
std::string m_latomeid
Definition: EfexCellMapping.h:46
EfexCellMapping::Roi
@ Roi
Definition: EfexCellMapping.h:17
EfexCellMapping::roiType
roiType
Definition: EfexCellMapping.h:17
L1CaloDetectorRegion.h
EfexCSVTables.h
EfexCellMapping::m_inputconnector
int m_inputconnector
Definition: EfexCellMapping.h:39
EfexCellMapping::init
void init(int crate, int efexnumber, int fpga, int quad, int mgtchannel, int dataword)
Definition: EfexCellMapping.cxx:86
EfexCellMapping::m_hwinfo
EfexHardwareInfo m_hwinfo
Definition: EfexCellMapping.h:44
L1CaloDetectorRegion
Definition: L1CaloDetectorRegion.h:8
EfexCellMapping::m_fibrenumber
int m_fibrenumber
Definition: EfexCellMapping.h:38
EfexCellMapping::findModuleCords
std::string findModuleCords(int crate, int efexnumber) const
Definition: EfexCellMapping.cxx:239
EfexCSVTables::getInstance
static EfexCSVTables & getInstance()
Definition: EfexCSVTables.cxx:5
EfexCellMapping
Definition: EfexCellMapping.h:14
EfexCSVTables
Definition: EfexCSVTables.h:6
EfexCellMapping::getLatomeID
std::string getLatomeID() const
Definition: EfexCellMapping.cxx:82
dumpNswErrorDb.quad
def quad
Definition: dumpNswErrorDb.py:24
EfexCellMapping::m_region
L1CaloDetectorRegion m_region
Definition: EfexCellMapping.h:43