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"))) {
64 Direction candDir(caloPosition.eta(), caloPosition.phi());
67 double sinTheta =
sin(2*atan(
exp(-sc->eta())));
68 deposit.addCandEnergy(sc->energy()*sinTheta);
71 std::auto_ptr<CaloRecHitMetaCollectionV> chosen = coneSel.
select(
point, mhbhe);
75 double hcalHit_eta = hcalHit_position.
eta();
76 double hcalHit_Et =
i->energy()*
sin(2*atan(
exp(-hcalHit_eta)));
77 if ( hcalHit_Et >
etLow_) {
78 deposit.addDeposit(
Direction(hcalHit_eta, hcalHit_position.
phi()), hcalHit_Et);
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
std::auto_ptr< CaloRecHitMetaCollectionV > select(double eta, double phi, const CaloRecHitMetaCollectionV &inputCollection)
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
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