35 if ( iConfig.
exists(
"pathToSelect") )
55 std::vector<int> me_ids;
60 std::vector<int> ps_ids;
150 produces<unsigned int>();
187 auto selection = std::make_unique<unsigned int>(0);
190 unsigned int nb = bFlavorHistoryEvent->
nb();
192 unsigned int nc = cFlavorHistoryEvent->
nc();
199 unsigned int highestFlavor = 0;
208 if ( bFlavorSource >= cFlavorSource ) {
211 dr = bFlavorHistoryEvent->
deltaR();
216 dr = cFlavorHistoryEvent->
deltaR();
reco::FlavorHistorySelectorUtil * c_me_
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
flavor_type flavorSource() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
reco::FlavorHistorySelectorUtil * bb_me_
bool exists(std::string const ¶meterName) const
checks if a parameter exists
bool filter(edm::Event &, const edm::EventSetup &) override
bool select(unsigned int nb, unsigned int nc, unsigned int highestFlavor, FlavorHistory::FLAVOR_T flavorSource, double dr) const
reco::FlavorHistorySelectorUtil * b_ps_comp_
reco::FlavorHistorySelectorUtil * cc_me_
#define DEFINE_FWK_MODULE(type)
unsigned int highestFlavor() const
edm::EDGetTokenT< reco::FlavorHistoryEvent > bsrcToken_
~FlavorHistoryFilter() override
reco::FlavorHistorySelectorUtil * c_ps_comp_
reco::FlavorHistorySelectorUtil * bb_me_comp_
reco::FlavorHistorySelectorUtil * cc_me_comp_
FlavorHistoryFilter(const edm::ParameterSet &)
reco::FlavorHistorySelectorUtil * b_me_
reco::FlavorHistorySelectorUtil * b_ps_
edm::EDGetTokenT< reco::FlavorHistoryEvent > csrcToken_
reco::FlavorHistorySelectorUtil * c_ps_