1 #ifndef FastSimulation_CaloGeometryTools_CrystalPad 2 #define FastSimulation_CaloGeometryTools_CrystalPad 6 #include "CLHEP/Vector/TwoVector.h" 28 const std::vector<XYZPoint>& corners,
34 const std::vector<XYZPoint>& corners,
37 bool bothdirections =
false);
67 CLHEP::Hep2Vector&
edge(
unsigned iside,
int n);
101 static std::vector<CLHEP::Hep2Vector>
aVector;
104 std::vector<CLHEP::Hep2Vector>
dir_;
double survivalProbability_
const std::vector< CLHEP::Hep2Vector > & getCorners() const
Check that the point (in the global frame) is inside the crystal.
ROOT::Math::Rotation3D rotation_
double survivalProbability() const
access methods to the survivalProbability
ROOT::Math::Transform3DPJ::Point Point
std::ostream & operator<<(std::ostream &o, CrystalPad &quad)
void extrems(double &xmin, double &xmax, double &ymin, double &ymax) const
xmin xmax, ymin ymax of the quad
void resetCorners()
Rescale the Quad to allow for some inaccuracy ...
const CLHEP::Hep2Vector & center() const
get the center
CLHEP::Hep2Vector & edge(unsigned iside, int n)
access to the corners in direction iside; n=0,1
CrystalPad & operator=(const CrystalPad &rhs)
bool operator<(const CrystalPad &quad) const
static std::vector< CLHEP::Hep2Vector > aVector
ROOT::Math::Transform3DPJ Transform3D
std::vector< double > vec1
std::vector< CLHEP::Hep2Vector > dir_
math::XYZVector XYZVector
bool inside(const CLHEP::Hep2Vector &point, bool debug=false) const
Check that the point (in the local frame) is inside the crystal.
bool operator==(const CrystalPad &quad) const
get the coordinates in the original frame
XYZVectorD XYZVector
spatial vector with cartesian internal representation
std::vector< CLHEP::Hep2Vector > corners_
CLHEP::Hep2Vector center_
void getDrawingCoordinates(std::vector< float > &x, std::vector< float > &y) const
for graphic debugging
unsigned getNumber() const
access to the number
void setSurvivalProbability(double val)
CaloDirection
Codes the local directions in the cell lattice.
math::XYZVector XYZVector
bool operator()(const CrystalPad &quad) const
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point