13 #include <Math/VectorUtil.h> 36 extRadius_(par.getParameter<double>(
"extRadius")),
37 intRadius_(par.getParameter<double>(
"intRadius")),
38 etLow_(par.getParameter<double>(
"etMin")),
63 Direction candDir(caloPosition.eta(), caloPosition.phi());
66 double sinTheta =
sin(2*atan(
exp(-sc->eta())));
67 deposit.addCandEnergy(sc->energy()*sinTheta);
72 double hcalHit_eta = hcalHit_position.
eta();
73 double hcalHit_Et = i.
energy()*
sin(2*atan(
exp(-hcalHit_eta)));
74 if ( hcalHit_Et >
etLow_) {
75 deposit.addDeposit(
Direction(hcalHit_eta, hcalHit_position.
phi()), hcalHit_Et);
const DetId & detid() const
bool getByToken(EDGetToken token, Handle< PROD > &result) 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