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
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< GenEventInfoProduct > generatorInfo_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
#define DEFINE_FWK_MODULE(type)
void addDefault(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
RemovePileUpDominatedEventsGen(const edm::ParameterSet &)
const std::vector< float > & getPU_pT_hats() const
T const * product() const
~RemovePileUpDominatedEventsGen() override