8 #include "CLHEP/Units/PhysicalConstants.h"
9 #include "CLHEP/Units/SystemOfUnits.h"
19 double R = point.
mag();
20 double tmp = R / CLHEP::c_light / CLHEP::ns;
23 int subdet =
id.subdetId();
30 dist = rEB /
sin(theta);
31 }
else if (subdet == static_cast<int>(
EcalEndcap)) {
33 dist = zEE /
cos(theta);
36 dist = zES /
cos(theta);
41 dist = rHB /
sin(theta);
42 }
else if (subdet == static_cast<int>(
HcalEndcap)) {
44 dist = zHE /
cos(theta);
45 }
else if (subdet == static_cast<int>(
HcalOuter)) {
47 dist = rHO /
sin(theta);
50 dist = zHF /
cos(theta);
53 double tmp1 = dist / CLHEP::c_light / CLHEP::ns;
55 edm::LogVerbatim(
"IsoTrack") <<
"Detector " << det <<
"/" << subdet <<
" Eta/Theta " << eta <<
"/"
56 << theta / CLHEP::deg <<
" Dist " << dist / CLHEP::cm <<
" R " << R <<
" TOF " << tmp
Log< level::Info, true > LogVerbatim
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
static const double zFrontHE
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
static const double zFrontHF
Exp< T >::type exp(const T &t)
static const double rFrontHB
static const double zFrontEE
static const double rFrontEB
Cos< T >::type cos(const T &t)
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
Abs< T >::type abs(const T &t)
static const double zFrontES
static const double rFrontHO
double timeOfFlight(DetId id, const CaloGeometry *geo, bool debug=false)
*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