Go to the documentation of this file.
8 #include "CLHEP/Units/PhysicalConstants.h"
9 #include "CLHEP/Units/SystemOfUnits.h"
22 double tmp =
R / CLHEP::c_light / CLHEP::ns;
26 int subdet =
id.subdetId();
34 }
else if (subdet == static_cast<int>(
EcalEndcap)) {
45 }
else if (subdet == static_cast<int>(
HcalEndcap)) {
48 }
else if (subdet == static_cast<int>(
HcalOuter)) {
56 double tmp1 = dist / CLHEP::c_light / CLHEP::ns;
58 std::cout <<
"Detector " << det <<
"/" << subdet <<
" Eta/Theta " <<
eta <<
"/" <<
theta / CLHEP::deg <<
" Dist "
59 << dist / CLHEP::cm <<
" R " <<
R <<
" TOF " <<
tmp <<
":" << tmp1 << std::endl;
static const double zFrontHF
static const double rFrontEB
static const double zFrontES
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
static const double rFrontHO
Sin< T >::type sin(const T &t)
double timeOfFlight(DetId id, const CaloGeometry *geo, bool debug=false)
Cos< T >::type cos(const T &t)
static const double zFrontEE
Geom::Theta< T > theta() const
static const double rFrontHB
static const double zFrontHE
Abs< T >::type abs(const T &t)
*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