34 #include <Math/VectorUtil.h>
39 namespace egammaisolation {
54 <<
"This extractor " << (
typeid(
this).
name()) <<
" is not made for tracks";
76 using namespace egammaisolation;
77 using namespace reco::isodeposit;
80 : extRadius_(par.getParameter<double>(
"extRadius")),
81 intRadius_(par.getParameter<double>(
"intRadius")),
82 etLow_(par.getParameter<double>(
"etMin")),
104 Direction candDir(caloPosition.eta(), caloPosition.phi());
107 double sinTheta =
sin(2 * atan(
exp(-sc->eta())));
108 deposit.addCandEnergy(sc->energy() * sinTheta);
113 double hcalHit_eta = hcalHit_position.
eta();
114 double hcalHit_Et = i.
energy() *
sin(2 * atan(
exp(-hcalHit_eta)));
115 if (hcalHit_Et >
etLow_) {
116 deposit.addDeposit(
Direction(hcalHit_eta, hcalHit_position.
phi()), hcalHit_Et);
constexpr float energy() const
const edm::EventSetup & c
constexpr const DetId & detid() const
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
std::vector< Track > TrackCollection
collection of Tracks
auto const & tracks
cannot be loose
Exp< T >::type exp(const T &t)
bool getData(T &iHolder) const
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
bool get(ProductID const &oid, Handle< PROD > &result) const
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
#define DEFINE_EDM_PLUGIN(factory, type, name)
*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