1 #ifndef HGCalCommonData_HGCalDDDConstants_h 2 #define HGCalCommonData_HGCalDDDConstants_h 22 #include <unordered_map> 31 std::pair<int,int>
assignCell(
float x,
float y,
int lay,
int subSec,
37 bool cellInLayer(
int waferU,
int waferV,
int cellU,
int cellV,
38 int lay,
bool reco)
const;
40 double cellThickness(
int layer,
int waferU,
int waferV)
const;
44 const double z,
const int layer,
45 int& ieta,
int& iphi,
int& type,
49 int getLayer(
double z,
bool reco)
const;
51 std::vector<HGCalParameters::hgtrap>
getModules()
const;
55 std::vector<HGCalParameters::hgtrform>
getTrForms()
const ;
57 int getTypeHex(
int layer,
int waferU,
int waferV)
const;
60 bool isValidHex8(
int lay,
int modU,
int modV,
int cellU,
62 bool isValidTrap(
int lay,
int ieta,
int iphi)
const;
64 unsigned int layers(
bool reco)
const;
66 std::pair<float,float>
locateCell(
int cell,
int lay,
int type,
68 std::pair<float,float>
locateCell(
int lay,
int waferU,
int waferV,
int cellU,
69 int cellV,
bool reco,
bool all)
const;
70 std::pair<float,float>
locateCellHex(
int cell,
int wafer,
bool reco)
const;
78 int maxCells(
int lay,
bool reco)
const;
81 int maxRows(
int lay,
bool reco)
const;
83 int modules(
int lay,
bool reco)
const;
87 std::vector<int>
numberCells(
int lay,
bool reco)
const;
93 {
return ((dPhi <
dPhiMin) ? 0 : 1); }
95 std::pair<int,int>
simToReco(
int cell,
int layer,
int mod,
bool half)
const;
99 int& wafer,
int& icell,
102 const int layer,
int& waferU,
103 int& waferV,
int& cellU,
int& cellV,
104 int& celltype,
double& wt)
const;
110 std::pair<double,double>
waferPosition(
int wafer,
bool reco)
const;
111 std::pair<double,double>
waferPosition(
int waferU,
int waferV,
bool reco)
const;
115 int wafers(
int layer,
int type)
const;
123 double waferZ(
int layer,
bool reco)
const;
126 int cellHex(
double xx,
double yy,
const double& cellR,
127 const std::vector<double>&
posX,
128 const std::vector<double>&
posY)
const;
129 void cellHex(
double xloc,
double yloc,
int cellType,
int& cellU,
131 std::pair<int,float>
getIndex(
int lay,
bool reco)
const;
132 bool isValidCell(
int layindex,
int wafer,
int cell)
const;
bool isHalfCell(int waferType, int cell) const
bool isValidTrap(int lay, int ieta, int iphi) const
int getTypeTrap(int layer) const
int getLayer(double z, bool reco) const
std::vector< HGCalParameters::hgtrap > getModules() const
std::array< uint32_t, 2 > tot_layers_
std::map< int, HGCWaferParam > waferLayer_
void waferFromPosition(const double x, const double y, int &wafer, int &icell, int &celltyp) const
std::vector< int > moduleLayR_
double cellSizeHex(int type) const
int32_t maxWafersPerLayer_
HGCalParameters::hgtrform getTrForm(unsigned int k) const
Simrecovecs max_modules_layer_
double cellThickness(int layer, int waferU, int waferV) const
unsigned int layersInit(bool reco) const
std::array< std::vector< int32_t >, 2 > Simrecovecs
const HGCalParameters * getParameter() const
std::array< int, 4 > waferMax_
bool cellInLayer(int waferU, int waferV, int cellU, int cellV, int lay, bool reco) const
int maxRows(int lay, bool reco) const
int getTypeHex(int layer, int waferU, int waferV) const
bool waferInLayerTest(int wafer, int lay, bool full) const
int modulesInit(int lay, bool reco) const
std::pair< float, float > locateCell(int cell, int lay, int type, bool reco) const
std::vector< uint32_t > trformIndex_
bool isValidHex(int lay, int mod, int cell, bool reco) const
HGCalGeometryMode::GeometryMode mode_
int cellHex(double xx, double yy, const double &cellR, const std::vector< double > &posX, const std::vector< double > &posY) const
int layerIndex(int lay, bool reco) const
std::pair< float, float > locateCellHex(int cell, int wafer, bool reco) const
int modules(int lay, bool reco) const
std::pair< int, int > simToReco(int cell, int layer, int mod, bool half) const
unsigned int getTrFormN() const
double distFromEdgeTrap(double x, double y, double z) const
unsigned int layers(bool reco) const
bool isValidHex8(int lay, int modU, int modV, int cellU, int cellV) const
int numberCellsHexagon(int wafer) const
std::vector< HGCalParameters::hgtrform > getTrForms() const
double mouseBite(bool reco) const
hgtrform getTrForm(unsigned int k) const
std::pair< int, float > getIndex(int lay, bool reco) const
HGCalDDDConstants(const HGCalParameters *hp, const std::string &name)
std::pair< float, float > locateCellTrap(int lay, int ieta, int iphi, bool reco) const
double waferSepar(bool reco) const
std::unordered_map< int32_t, bool > waferIn_
HGCalGeometryMode::GeometryMode geomMode() const
double waferSize(bool reco) const
bool isValidCell(int layindex, int wafer, int cell) const
int waferTypeL(int wafer) const
int scintType(const float dPhi) const
std::pair< int, int > rowColumnWafer(const int wafer) const
double waferZ(int layer, bool reco) const
int waferType(DetId const &id) const
int waferFromCopy(int copy) const
static double k_ScaleToDDD
int waferToCopy(int wafer) const
int numberCells(bool reco) const
bool waferFullInLayer(int wafer, int lay, bool reco) const
int waferCount(const int type) const
std::array< int, 5 > assignCellHex(float x, float y, int lay, bool reco) const
std::vector< int > waferCopy_
std::pair< double, double > waferPosition(int wafer, bool reco) const
std::pair< int, int > assignCell(float x, float y, int lay, int subSec, bool reco) const
const double k_horizontalShift
std::array< int, 3 > assignCellTrap(float x, float y, float z, int lay, bool reco) const
int maxMoudlesPerLayer() const
std::vector< int > waferTypeT_
std::vector< int > levelT_
int levelTop(int ind=0) const
HGCalParameters::hgtrap getModule(unsigned int k, bool hexType, bool reco) const
const HGCalParameters * hgpar_
int maxCells(bool reco) const
T mod(const T &a, const T &b)
void etaPhiFromPosition(const double x, const double y, const double z, const int layer, int &ieta, int &iphi, int &type, double &wt) const
int waferTypeT(int wafer) const
std::vector< int > waferTypeL_
double distFromEdgeHex(double x, double y, double z) const
std::array< int, 3 > HGCWaferParam
bool waferInLayer(int wafer, int lay, bool reco) const
unsigned int volumes() const