1 #ifndef RECOCALOTOOLS_SELECTORS_CALODUALCONESELECTOR_H
2 #define RECOCALOTOOLS_SELECTORS_CALODUALCONESELECTOR_H 1
38 std::set_difference(dis_all.begin(),dis_all.end(),
39 dis_excl.begin(),dis_excl.end(),
40 std::inserter(dis,dis.begin()));
45 for (CaloSubdetectorGeometry::DetIdSet::iterator
i=dis.begin();
i!=dis.end();
i++) {
46 if (
i->subdetId()!=subdet)
continue;
47 j=inputCollection.
find(*
i);
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
DetId::Detector detector_
std::set< DetId > DetIdSet
std::vector< T >::const_iterator const_iterator
CaloDualConeSelector(double dRmin, double dRmax, const CaloGeometry *geom)
virtual DetIdSet getCells(const GlobalPoint &r, double dR) const
Get a list of all cells within a dR of the given cell.
helper::RootFunctionHelper< F, args >::root_function function(F &f)
const CaloGeometry * geom_
CaloDualConeSelector(double dRmin, double dRmax, const CaloGeometry *geom, DetId::Detector detector, int subdet=0)
const_iterator end() const
void selectCallback(const GlobalPoint &p, const edm::SortedCollection< T > &inputCollection, std::function< void(const T &)> callback)
void selectCallback(double eta, double phi, const edm::SortedCollection< T > &inputCollection, std::function< void(const T &)> callback)
iterator find(key_type k)