#include <EventDependentAbsVetos.h>
|
void | centerOn (double eta, double phi) override |
| Set axis for matching jets. More...
|
|
| OtherJetConstituentsDeltaRVeto (Direction dir, const edm::InputTag &jets, double dRjet, const edm::InputTag &pfCandAssocMap, double dRconstituent, edm::ConsumesCollector &iC) |
| Create a veto specifying the input collection of the jets, the candidates, and the deltaR. More...
|
|
void | setEvent (const edm::Event &evt, const edm::EventSetup &es) override |
| Picks up the directions of the given candidates. More...
|
|
bool | veto (double eta, double phi, float value) const override |
|
| ~OtherJetConstituentsDeltaRVeto () override |
|
| ~EventDependentAbsVeto () override |
|
virtual | ~AbsVeto () |
|
Definition at line 64 of file EventDependentAbsVetos.h.
◆ JetToPFCandidateAssociation
◆ OtherJetConstituentsDeltaRVeto()
Create a veto specifying the input collection of the jets, the candidates, and the deltaR.
Definition at line 67 of file EventDependentAbsVetos.h.
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::AssociationMap< edm::OneToMany< std::vector< reco::PFJet >, std::vector< reco::PFCandidate >, unsigned int > > JetToPFCandidateAssociation
edm::EDGetTokenT< JetToPFCandidateAssociation > srcPFCandAssocMap_
edm::EDGetTokenT< reco::PFJetCollection > srcJets_
std::vector< PFJet > PFJetCollection
collection of PFJet objects
◆ ~OtherJetConstituentsDeltaRVeto()
reco::isodeposit::OtherJetConstituentsDeltaRVeto::~OtherJetConstituentsDeltaRVeto |
( |
| ) |
|
|
inlineoverride |
◆ centerOn()
void reco::isodeposit::OtherJetConstituentsDeltaRVeto::centerOn |
( |
double |
eta, |
|
|
double |
phi |
|
) |
| |
|
overridevirtual |
◆ initialize()
void reco::isodeposit::OtherJetConstituentsDeltaRVeto::initialize |
( |
void |
| ) |
|
|
private |
Definition at line 54 of file EventDependentAbsVetos.cc.
References cms::cuda::assert(), edm::RefVector< C, T, F >::begin(), reco::deltaR2(), edm::RefVector< C, T, F >::end(), heavyIonCSV_trainingSettings::idx, edm::Ref< C, T, F >::isNonnull(), metsig::jet, and PDWG_EXODelayedJetMET_cff::jets.
65 size_t numJets =
jets->size();
66 for (
size_t jetIndex = 0; jetIndex < numJets; ++jetIndex) {
79 pfCand != pfCandsMappedToJet.
end();
82 items_.push_back(Direction((*pfCand)->eta(), (*pfCand)->phi()));
bool isNonnull() const
Checks for non-null.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Direction > items_
edm::EDGetTokenT< JetToPFCandidateAssociation > srcPFCandAssocMap_
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
const_iterator end() const
Termination of iteration.
edm::EDGetTokenT< reco::PFJetCollection > srcJets_
const_iterator begin() const
Initialize an iterator over the RefVector.
◆ setEvent()
◆ veto()
bool reco::isodeposit::OtherJetConstituentsDeltaRVeto::veto |
( |
double |
eta, |
|
|
double |
phi, |
|
|
float |
value |
|
) |
| const |
|
overridevirtual |
Return "true" if a deposit at specific (eta,phi) with that value must be vetoed in the sum This is true if the deposit is within the stored AbsVeto of any item of the source collection
Implements reco::isodeposit::AbsVeto.
Definition at line 42 of file EventDependentAbsVetos.cc.
References reco::deltaR2(), and PVValHelper::eta.
43 for (std::vector<Direction>::const_iterator it =
items_.begin(), ed =
items_.end(); it != ed; ++it) {
std::vector< Direction > items_
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
◆ dR2constituent_
double reco::isodeposit::OtherJetConstituentsDeltaRVeto::dR2constituent_ |
|
private |
◆ dR2jet_
double reco::isodeposit::OtherJetConstituentsDeltaRVeto::dR2jet_ |
|
private |
◆ evt_
const edm::Event* reco::isodeposit::OtherJetConstituentsDeltaRVeto::evt_ |
|
private |
◆ items_
std::vector<Direction> reco::isodeposit::OtherJetConstituentsDeltaRVeto::items_ |
|
private |
◆ srcJets_
◆ srcPFCandAssocMap_
◆ vetoDir_
Direction reco::isodeposit::OtherJetConstituentsDeltaRVeto::vetoDir_ |
|
private |