13 #include <Math/VectorUtil.h>
32 using namespace egammaisolation;
33 using namespace reco::isodeposit;
36 extRadius_(par.getParameter<double>(
"extRadius")),
37 intRadius_(par.getParameter<double>(
"intRadius")),
38 etLow_(par.getParameter<double>(
"etMin")),
39 hcalRecHitProducerToken_(iC.consumes<
HBHERecHitCollection>(par.getParameter<edm::InputTag>(
"hcalRecHits"))) {
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
const GlobalPoint & getPosition(const DetId &id) const
Get the position of a given detector id.
XYZPointD XYZPoint
point in space with cartesian internal representation
T const * product() const
void selectCallback(double eta, double phi, const edm::SortedCollection< T > &inputCollection, std::function< void(const T &)> callback)
T get() const
get a component
*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