13 #include <Math/VectorUtil.h> 36 : extRadius_(par.getParameter<double>(
"extRadius")),
37 intRadius_(par.getParameter<double>(
"intRadius")),
38 etLow_(par.getParameter<double>(
"etMin")),
62 Direction candDir(caloPosition.eta(), caloPosition.phi());
65 double sinTheta =
sin(2 * atan(
exp(-sc->eta())));
66 deposit.addCandEnergy(sc->energy() * sinTheta);
71 double hcalHit_eta = hcalHit_position.
eta();
72 double hcalHit_Et = i.
energy() *
sin(2 * atan(
exp(-hcalHit_eta)));
74 deposit.addDeposit(
Direction(hcalHit_eta, hcalHit_position.
phi()), hcalHit_Et);
constexpr float energy() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
constexpr const DetId & detid() const
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
XYZPointD XYZPoint
point in space with cartesian internal representation
void selectCallback(double eta, double phi, const edm::SortedCollection< T > &inputCollection, std::function< void(const T &)> callback)
T get() const
get a component
T const * product() 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