49 : pileupSummaryInfos_(
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)
const std::vector< float > & getPU_pT_hats() const
const edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileupSummaryInfos_
unsigned int bunchCrossing
bool filter(edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
T const * product() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< GenEventInfoProduct > generatorInfo_
void addDefault(ParameterSetDescription const &psetDescription)
RemovePileUpDominatedEventsGen(const edm::ParameterSet &)
Log< level::Info, false > LogInfo
~RemovePileUpDominatedEventsGen() override