80 edm::LogInfo(
"RemovePileUpDominatedEventsGen") <<
"In-time pile-up not found!" << endl;
89 float signal_pT_hat = -1;
90 float pu_pT_hat_max = -1;
93 for(
const auto& pu_pT_hat : puSummary_onTime.
getPU_pT_hats())
if (pu_pT_hat>pu_pT_hat_max) pu_pT_hat_max = pu_pT_hat;
96 signal_pT_hat = generatorInfo->
qScale();
99 std::unique_ptr<float> pOut(
new float());
100 *pOut=signal_pT_hat-pu_pT_hat_max;
104 if (signal_pT_hat>pu_pT_hat_max)
return true;
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)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const edm::EDGetTokenT< GenEventInfoProduct > generatorInfo_
#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