#include <PhysicsTools/FlavorHistoryFilter/src/FlavorHistoryFilter.cc>
Public Types | |
typedef reco::FlavorHistory::FLAVOR_T | flavor_type |
typedef std::vector< int > | flavor_vector |
Public Types inherited from edm::EDFilter | |
typedef EDFilter | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Private Member Functions | |
void | endJob () override |
bool | filter (edm::Event &, const edm::EventSetup &) override |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::EDFilter | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
This now filters events hierarchically. Previously this was done at the python configuration level, which was cumbersome for users to use.
Now, the hierarchy is:
Create prioritized paths to separate HF composition samples.
These are exclusive priorities, so sample "i" will not overlap with "i+1". Note that the "dr" values below correspond to the dr between the matched genjet, and the sister genjet.
1) W+bb with >= 2 jets from the ME (dr > 0.5) 2) W+b or W+bb with 1 jet from the ME 3) W+cc from the ME (dr > 0.5) 4) W+c or W+cc with 1 jet from the ME 5) W+bb with 1 jet from the parton shower (dr == 0.0) 6) W+cc with 1 jet from the parton shower (dr == 0.0)
These are the "trash bin" samples that we're throwing away:
7) W+bb with >= 2 partons but 1 jet from the ME (dr == 0.0) 8) W+cc with >= 2 partons but 1 jet from the ME (dr == 0.0) 9) W+bb with >= 2 partons but 2 jets from the PS (dr > 0.5) 10)W+cc with >= 2 partons but 2 jets from the PS (dr > 0.5)
And here is the true "light flavor" sample:
11) Veto of all the previous (W+ light jets)
Implementation: <Notes on="" implementation>="">
Definition at line 76 of file FlavorHistoryFilter.h.
Definition at line 78 of file FlavorHistoryFilter.h.
typedef std::vector<int> FlavorHistoryFilter::flavor_vector |
Definition at line 79 of file FlavorHistoryFilter.h.
|
explicit |
Definition at line 31 of file FlavorHistoryFilter.cc.
References b_me_, b_ps_, b_ps_comp_, bb_me_, bb_me_comp_, c_me_, c_ps_, c_ps_comp_, cc_me_, cc_me_comp_, dr_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), pathToSelect_, and verbose.
|
override |
Definition at line 154 of file FlavorHistoryFilter.cc.
References b_me_, b_ps_, b_ps_comp_, bb_me_, bb_me_comp_, c_me_, c_ps_, c_ps_comp_, cc_me_, and cc_me_comp_.
|
overrideprivatevirtual |
Reimplemented from edm::EDFilter.
Definition at line 249 of file FlavorHistoryFilter.cc.
References DEFINE_FWK_MODULE.
|
overrideprivate |
Definition at line 177 of file FlavorHistoryFilter.cc.
References b_me_, b_ps_, b_ps_comp_, bb_me_, bb_me_comp_, bsrcToken_, c_me_, c_ps_, c_ps_comp_, cc_me_, cc_me_comp_, csrcToken_, reco::FlavorHistoryEvent::deltaR(), runTauDisplay::dr, reco::FlavorHistoryEvent::flavorSource(), edm::Event::getByToken(), reco::FlavorHistoryEvent::highestFlavor(), eostools::move(), reco::FlavorHistoryEvent::nb(), reco::FlavorHistoryEvent::nc(), pathToSelect_, edm::Event::put(), TauGenJetsDecayModeSelectorAllHadrons_cfi::select, reco::FlavorHistorySelectorUtil::select(), and corrVsCorr::selection.
|
private |
Definition at line 95 of file FlavorHistoryFilter.h.
Referenced by filter(), FlavorHistoryFilter(), and ~FlavorHistoryFilter().
|
private |
Definition at line 98 of file FlavorHistoryFilter.h.
Referenced by filter(), FlavorHistoryFilter(), and ~FlavorHistoryFilter().
|
private |
Definition at line 102 of file FlavorHistoryFilter.h.
Referenced by filter(), FlavorHistoryFilter(), and ~FlavorHistoryFilter().
|
private |
Definition at line 94 of file FlavorHistoryFilter.h.
Referenced by filter(), FlavorHistoryFilter(), and ~FlavorHistoryFilter().
|
private |
Definition at line 100 of file FlavorHistoryFilter.h.
Referenced by filter(), FlavorHistoryFilter(), and ~FlavorHistoryFilter().
|
private |
Definition at line 89 of file FlavorHistoryFilter.h.
Referenced by filter().
|
private |
Definition at line 97 of file FlavorHistoryFilter.h.
Referenced by filter(), FlavorHistoryFilter(), and ~FlavorHistoryFilter().
|
private |
Definition at line 99 of file FlavorHistoryFilter.h.
Referenced by filter(), FlavorHistoryFilter(), and ~FlavorHistoryFilter().
|
private |
Definition at line 103 of file FlavorHistoryFilter.h.
Referenced by filter(), FlavorHistoryFilter(), and ~FlavorHistoryFilter().
|
private |
Definition at line 96 of file FlavorHistoryFilter.h.
Referenced by filter(), FlavorHistoryFilter(), and ~FlavorHistoryFilter().
|
private |
Definition at line 101 of file FlavorHistoryFilter.h.
Referenced by filter(), FlavorHistoryFilter(), and ~FlavorHistoryFilter().
|
private |
Definition at line 90 of file FlavorHistoryFilter.h.
Referenced by filter().
|
private |
Definition at line 92 of file FlavorHistoryFilter.h.
Referenced by FlavorHistoryFilter().
|
private |
Definition at line 91 of file FlavorHistoryFilter.h.
Referenced by filter(), and FlavorHistoryFilter().