1 #ifndef HGCAL_GEOMETRY_HGCALTBCELLVERTICES_H
2 #define HGCAL_GEOMETRY_HGCALTBCELLVERTICES_H
4 #include "HGCal/Geometry/interface/HGCalTBTopology.h"
5 #include "HGCal/Geometry/interface/HGCalTBCellParameters.h"
27 std::vector<std::pair<double, double>>
GetCellCoordinates(
int layer,
int sensor_iu,
int sensor_iv,
int iu,
int iv,
int sensorsize,
bool flipX =
false);
29 inline std::vector<std::pair<double, double>>
GetCellCoordinatesForPlots(
int layer,
int sensor_iu,
int sensor_iv,
int iu,
int iv,
int sensorsize)
34 std::pair<double, double>
GetCellCentreCoordinates(
int layer,
int sensor_iu,
int sensor_iv,
int iu,
int iv,
int sensorsize,
bool flipX =
false);
44 double a = HGCAL_TB_CELL::FULL_CELL_SIDE;
45 double x_a = sqrt(3) / 2;
49 std::vector<double> x_co_FullHex, y_co_FullHex;
50 std::vector<std::pair<double, double>> Cell_co;
52 double x0 = 2 * x_a * a;
54 double vy0 = vy_a * a;
56 double Xmax(
int iv,
double y);
58 std::pair<double, double> RotateLayer(std::pair<double, double>,
double Angle);
std::pair< double, double > GetCellCentreCoordinatesForPlots(int layer, int sensor_iu, int sensor_iv, int iu, int iv, int sensorsize)
std::vector< std::pair< double, double > > GetCellCoordinatesForPlots(int layer, int sensor_iu, int sensor_iv, int iu, int iv, int sensorsize)
std::pair< double, double > GetCellCentreCoordinates(int layer, int sensor_iu, int sensor_iv, int iu, int iv, int sensorsize, bool flipX=false)
returns the coordinates of each vertex of cell in the lab frame (x,y)
HGCalTBCellVertices()
Constructor from cell iu & iv, valid sensorSizes are 128 and 256.
std::vector< std::pair< double, double > > GetCellCoordinates(int layer, int sensor_iu, int sensor_iv, int iu, int iv, int sensorsize, bool flipX=false)
returns the coordinates of each vertex of cell in the lab frame (x,y)