52 return std::make_unique<AlCaGammaJet::Counters>();
57 void endStream()
override;
96 minPtPhoton_ = iConfig.
getParameter<
double>(
"MinPtPhoton");
99 tok_Photon_ = consumes<reco::PhotonCollection>(labelPhoton_);
100 tok_PFJet_ = consumes<reco::PFJetCollection>(labelPFJet_);
116 desc.
add<
double>(
"MinPtJet", 10.0);
117 desc.
add<
double>(
"MinPtPhoton", 10.0);
129 edm::LogWarning(
"AlCaGammaJet") <<
"AlCaGammaJetProducer: Error! can't get the product " << labelPhoton_;
137 edm::LogWarning(
"AlCaGammaJet") <<
"AlCaGammaJetProducer: Error! can't get product " << labelPFJet_;
143 if (!(
select(photons, pfjets)))
167 for (reco::PFJetCollection::const_iterator itr = jets.begin(); itr != jets.end(); ++itr) {
168 if (itr->pt() >= minPtJet_) {
175 for (reco::PhotonCollection::const_iterator itr = photons.begin(); itr != photons.end(); ++itr) {
176 if (itr->pt() >= minPtPhoton_)
T getParameter(std::string const &) const
void endStream() override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static void globalEndJob(const AlCaGammaJet::Counters *counters)
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
std::atomic< unsigned int > nSelected_
~AlCaGammaJetSelector() override
AlCaGammaJetSelector(const edm::ParameterSet &, const AlCaGammaJet::Counters *count)
#define DEFINE_FWK_MODULE(type)
void addDefault(ParameterSetDescription const &psetDescription)
edm::InputTag labelPhoton_
bool filter(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< reco::PFJetCollection > tok_PFJet_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void endRun(edm::Run const &, edm::EventSetup const &) override
T const * product() const
bool select(const reco::PhotonCollection &, const reco::PFJetCollection &)
std::vector< Photon > PhotonCollection
collectin of Photon objects
static std::unique_ptr< AlCaGammaJet::Counters > initializeGlobalCache(edm::ParameterSet const &)
void beginRun(edm::Run const &, edm::EventSetup const &) override
select
when omitted electron plots will be filled w/o cut on electronId electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), cutValue = cms.double(0.5) ), when omitted electron plots will be filled w/o additional pre- selection of the electron candidates
std::vector< PFJet > PFJetCollection
collection of PFJet objects
std::atomic< unsigned int > nProcessed_
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
edm::EDGetTokenT< reco::PhotonCollection > tok_Photon_