16 unsigned ncorners= vec.
size();
17 if(ncorners!=8)
return;
29 for(
unsigned ic=0;ic<8;++ic)
81 for(
unsigned ic=0;ic<4;++ic)
83 unsigned i1=(unsigned)((zsign*ic+offset)%4);
96 for(
unsigned ic=0;ic<8;++ic)
111 for(
unsigned il=0;il<4;++il)
119 for(
unsigned i=0;
i<4;++
i)
130 for(
unsigned i=0;
i<6;++
i)
157 if(corners.size()==4)
176 if(corners.size()==4)
196 if(corners.size()==4&&i<4U)
284 for(
unsigned ic=0;ic<
corners_.size();++ic)
289 std::cout <<
" Normales sortantes " << std::endl;
const double Z[kNumberCalorimeter]
void getLateralEdges(unsigned i, XYZPoint &, XYZPoint &) const
get the lateral edges
XYZVector firstedgedirection_
void setCorners(const CaloCellGeometry::CornersVec &vec, const GlobalPoint &pos)
std::vector< XYZVector > lateraldirection_
std::vector< XYZPoint > corners_
void getDrawingCoordinates(std::vector< float > &x, std::vector< float > &y, std::vector< float > &z) const
for debugging.
BaseCrystal()
Empty constructor.
void getBackSide(XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const
Coordinates of the back side.
uint32_t rawId() const
get the raw id
ROOT::Math::Plane3D Plane3D
std::vector< XYZVector > exitingNormal_
void getSide(const CaloDirection &side, XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const
generic access
void getLateralSide(unsigned i, XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const
Coordinates of the i=th lateral side.
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static CaloDirection Side(unsigned i)
unsigned int -> Side conversion
std::vector< Plane3D > lateralPlane_
CaloDirection
Codes the local directions in the cell lattice.
void getFrontSide(XYZPoint &a, XYZPoint &b, XYZPoint &c, XYZPoint &d) const
coordinates of the front side
XYZVector fifthedgedirection_
void computeBasicProperties()