ATLAS Offline Software
Loading...
Searching...
No Matches
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
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
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
static EfexCSVTables & getInstance()
std::string m_latomeid
void init(int crate, int efexnumber, int fpga, int quad, int mgtchannel, int dataword)
EfexCellMapping(int crate, int efexnumber, int fpga, int quad, int mgtchannel, int dataword)
std::string findModuleCords(int crate, int efexnumber) const
EfexHardwareInfo m_hwinfo
L1CaloDetectorRegion getDetectorRegion() const
std::string getLatomeID() const
EfexHardwareInfo getHardwareInfo() const
L1CaloDetectorRegion m_region
EfexCSVTables & m_tables
Simple class to mainly store eta/phi information (indices, granularity, trigger tower coordinates) as...