Template class to fill the TtEvent structure. More...
Private Types | |
typedef std::vector< edm::EDGetTokenT< int > >::const_iterator | EventHypoIntToken |
typedef std::vector< edm::EDGetTokenT< std::vector< TtEvent::HypoCombPair > > >::const_iterator | EventHypoToken |
Private Member Functions | |
void | fillSpecific (C &, const edm::Event &) const |
fill data members that are decay-channel specific More... | |
template<> | |
void | fillSpecific (TtFullHadronicEvent &ttEvent, const edm::Event &evt) const |
template<> | |
void | fillSpecific (TtFullLeptonicEvent &ttEvent, const edm::Event &evt) const |
template<> | |
void | fillSpecific (TtSemiLeptonicEvent &ttEvent, const edm::Event &evt) const |
void | produce (edm::StreamID, edm::Event &, const edm::EventSetup &) const override |
Additional Inherited Members | |
Public Types inherited from edm::global::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
template<typename T > | |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
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 |
Static Public Member Functions inherited from edm::global::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::ProducerBase | |
template<Transition Tr = Transition::Event> | |
auto | produces (std::string instanceName) noexcept |
declare what type of product will make and with which optional label More... | |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
template<Transition Tr = Transition::Event> | |
auto | produces () noexcept |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
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) |
void | resetItemsToGetFrom (BranchType iType) |
Template class to fill the TtEvent structure.
Template class to fill the TtEvent structure for:
TtSemiLeptonicEvent TtFullLeptonicEvent TtFullHadronicEvent
event hypothesis, genEvent and extra information (if available) are read from the event and contracted into the TtEvent
Definition at line 31 of file TtEvtBuilder.cc.
|
private |
Definition at line 51 of file TtEvtBuilder.cc.
|
private |
Definition at line 52 of file TtEvtBuilder.cc.
|
explicit |
default constructor
Definition at line 93 of file TtEvtBuilder.cc.
References ProducerED_cfi::InputTag, and makeGlobalPositionRcd_cfg::tag.
|
private |
fill data members that are decay-channel specific
|
inlineprivate |
Definition at line 218 of file TtEvtBuilder.cc.
|
inlineprivate |
Definition at line 222 of file TtEvtBuilder.cc.
References edm::Event::get(), TtEvent::isHypoAvailable(), TtEvent::kKinSolution, TtFullLeptonicEvent::setSolWeight(), and TtFullLeptonicEvent::setWrongCharge().
|
inlineprivate |
Definition at line 231 of file TtEvtBuilder.cc.
References edm::Event::get(), crabWrapper::key, TtEvent::setNumberOfConsideredJets(), and TtSemiLeptonicEvent::setNumberOfRealNeutrinoSolutions().
|
overrideprivatevirtual |
produce function (this one is not even accessible for derived classes)
Implements edm::global::EDProducerBase.
Definition at line 155 of file TtEvtBuilder.cc.
References correctionTermsCaloMet_cff::C, edm::Event::emplace(), TtGenEvtProducer_cfi::genEvt, edm::Event::get(), edm::Event::getByToken(), h, crabWrapper::key, TtEvent::kGenMatch, TtEvent::kHitFit, TtEvent::kKinFit, TtEvent::kMVADisc, and eostools::move().
|
private |
decay channels of the two top decay branches; to be filled according to WDecay::LeptonTypes in TtGenEvent
Definition at line 58 of file TtEvtBuilder.cc.
|
private |
Definition at line 59 of file TtEvtBuilder.cc.
|
private |
Definition at line 87 of file TtEvtBuilder.cc.
|
private |
Definition at line 64 of file TtEvtBuilder.cc.
|
private |
Definition at line 65 of file TtEvtBuilder.cc.
|
private |
Definition at line 54 of file TtEvtBuilder.cc.
|
private |
Definition at line 55 of file TtEvtBuilder.cc.
|
private |
input parameters for the kGenMatch hypothesis class extras
Definition at line 80 of file TtEvtBuilder.cc.
|
private |
input parameters for the kHitFit hypothesis class extras
Definition at line 68 of file TtEvtBuilder.cc.
|
private |
Definition at line 69 of file TtEvtBuilder.cc.
|
private |
Definition at line 71 of file TtEvtBuilder.cc.
|
private |
Definition at line 70 of file TtEvtBuilder.cc.
|
private |
Definition at line 72 of file TtEvtBuilder.cc.
|
private |
Definition at line 50 of file TtEvtBuilder.cc.
|
private |
vector of hypothesis class names
Definition at line 47 of file TtEvtBuilder.cc.
|
private |
Definition at line 49 of file TtEvtBuilder.cc.
|
private |
Definition at line 48 of file TtEvtBuilder.cc.
|
private |
input parameters for the kKinFit hypothesis class extras
Definition at line 63 of file TtEvtBuilder.cc.
|
private |
input parameters for the kKinSolution hypothesis class extras
Definition at line 75 of file TtEvtBuilder.cc.
|
private |
Definition at line 86 of file TtEvtBuilder.cc.
|
private |
input parameters for the kMVADisc hypothesis class extras
Definition at line 85 of file TtEvtBuilder.cc.
|
private |
Definition at line 89 of file TtEvtBuilder.cc.
|
private |
Definition at line 76 of file TtEvtBuilder.cc.
|
private |
Definition at line 82 of file TtEvtBuilder.cc.
|
private |
Definition at line 81 of file TtEvtBuilder.cc.
|
private |
vebosity level
Definition at line 45 of file TtEvtBuilder.cc.
|
private |
Definition at line 77 of file TtEvtBuilder.cc.