14 double theta=2.0*std::atan(
exp(-eta));
23 if (debug)
std::cout <<
"findDetIdECAL: eta " << eta <<
" theta " << theta <<
" phi " << phi <<
" radius " << radius <<
" subdet " << subdet << std::endl;
29 double theta=2.0*std::atan(
exp(-eta));
33 if (debug)
std::cout <<
"findDetIdHCAL: eta " << eta <<
" theta "<<theta<<
" phi " << phi <<
" radius " << radius << std::endl;
39 double rcyl = radius*
std::sin(theta);
44 std::cout <<
"findDetIdCalo: rcyl " << rcyl <<
" z " << z <<
" Point " << point <<
" DetId ";
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
const DetId findDetIdCalo(const CaloSubdetectorGeometry *geo, double theta, double phi, double radius, bool debug=false)
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
Exp< T >::type exp(const T &t)
const DetId findDetIdHCAL(const CaloGeometry *geo, double eta, double phi, bool debug=false)
Cos< T >::type cos(const T &t)
const DetId findDetIdECAL(const CaloGeometry *geo, double eta, double phi, bool debug=false)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
virtual DetId getClosestCell(const GlobalPoint &r) const
Detector det() const
get the detector field from this detid
*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