49 : pileupSummaryInfos_(
70 pileupSummaryInfos.product()->at(
bunchCrossing).getBunchCrossing() != 0) {
73 if (pileupSummaryInfos.product()->at(
bunchCrossing).getBunchCrossing() == 0) {
79 edm::LogInfo(
"RemovePileUpDominatedEventsGen") <<
"In-time pile-up not found!" << endl;
88 float signal_pT_hat = -1;
89 float pu_pT_hat_max = -1;
92 for (
const auto& pu_pT_hat : puSummary_onTime.getPU_pT_hats())
93 if (pu_pT_hat > pu_pT_hat_max)
94 pu_pT_hat_max = pu_pT_hat;
97 signal_pT_hat = generatorInfo->qScale();
100 std::unique_ptr<float> pOut(
new float());
101 *pOut = signal_pT_hat - pu_pT_hat_max;
105 if (signal_pT_hat > pu_pT_hat_max)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileupSummaryInfos_
unsigned int bunchCrossing
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool filter(edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< GenEventInfoProduct > generatorInfo_
void addDefault(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
RemovePileUpDominatedEventsGen(const edm::ParameterSet &)
Log< level::Info, false > LogInfo
~RemovePileUpDominatedEventsGen() override