Template class to fill the TtEvent structure. More...
#include "TopQuarkAnalysis/TopEventProducers/interface/TtEvtBuilder.h"
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 | |
virtual void | fillSpecific (C &, const edm::Event &) |
fill data members that are decay-channel specific More... | |
template<> | |
void | fillSpecific (TtFullHadronicEvent &ttEvent, const edm::Event &evt) |
template<> | |
void | fillSpecific (TtFullLeptonicEvent &ttEvent, const edm::Event &evt) |
template<> | |
void | fillSpecific (TtSemiLeptonicEvent &ttEvent, const edm::Event &evt) |
void | produce (edm::Event &, const edm::EventSetup &) override |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | 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 |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
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 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) |
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 33 of file TtEvtBuilder.h.
|
private |
Definition at line 59 of file TtEvtBuilder.h.
|
private |
Definition at line 60 of file TtEvtBuilder.h.
|
explicit |
default constructor
Definition at line 99 of file TtEvtBuilder.h.
References looper::cfg, TtEvtBuilder< C >::decayChnTop1_, TtEvtBuilder< C >::decayChnTop2_, TtEvtBuilder< C >::discToken_, TtEvtBuilder< C >::fitChi2Token_, TtEvtBuilder< C >::fitProbToken_, TtEvtBuilder< C >::genEvt_, TtEvtBuilder< C >::genEvtToken_, TtEvtBuilder< C >::genMatch_, edm::ParameterSet::getParameter(), TtEvtBuilder< C >::hitFit_, TtEvtBuilder< C >::hitFitChi2Token_, TtEvtBuilder< C >::hitFitMTToken_, TtEvtBuilder< C >::hitFitProbToken_, TtEvtBuilder< C >::hitFitSigMTToken_, TtEvtBuilder< C >::hypJetTokens_, TtEvtBuilder< C >::hypNeutrTokens_, TtEvtBuilder< C >::hypTokens_, TtEvtBuilder< C >::kinFit_, TtEvtBuilder< C >::kinSolution_, TtEvtBuilder< C >::methToken_, TtEvtBuilder< C >::mvaDisc_, TtEvtBuilder< C >::solWeightToken_, TtEvtBuilder< C >::sumDRToken_, TtEvtBuilder< C >::sumPtToken_, GlobalPosition_Frontier_DevDB_cff::tag, edm::vector_transform(), and TtEvtBuilder< C >::wrongChargeToken_.
|
inlineoverride |
default destructor
Definition at line 40 of file TtEvtBuilder.h.
References patCaloMETCorrections_cff::C, TtEvtBuilder< C >::fillSpecific(), and TtEvtBuilder< C >::produce().
|
privatevirtual |
fill data members that are decay-channel specific
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::~TtEvtBuilder().
|
private |
Definition at line 247 of file TtEvtBuilder.h.
|
private |
Definition at line 252 of file TtEvtBuilder.h.
References edm::Event::getByToken(), TtEvent::isHypoAvailable(), TtEvent::kKinSolution, TtFullLeptonicEvent::setSolWeight(), TtFullLeptonicEvent::setWrongCharge(), TtFullLepEvtBuilder_cfi::solWeight, TtEvtBuilder< C >::solWeightToken_, TtFullLepEvtBuilder_cfi::wrongCharge, and TtEvtBuilder< C >::wrongChargeToken_.
|
private |
Definition at line 269 of file TtEvtBuilder.h.
References edm::Event::getByToken(), TtEvtBuilder< C >::hypJetTokens_, TtEvtBuilder< C >::hypKeyTokens_, TtEvtBuilder< C >::hypNeutrTokens_, crabWrapper::key, TtEvent::setNumberOfConsideredJets(), and TtSemiLeptonicEvent::setNumberOfRealNeutrinoSolutions().
|
overrideprivate |
produce function (this one is not even accessible for derived classes)
Definition at line 152 of file TtEvtBuilder.h.
References patCaloMETCorrections_cff::C, TtEvtBuilder< C >::decayChnTop1_, TtEvtBuilder< C >::decayChnTop2_, TtSemiLepEvtBuilder_cfi::disc, TtEvtBuilder< C >::discToken_, TtEvtBuilder< C >::fillSpecific(), fitChi2(), TtEvtBuilder< C >::fitChi2Token_, TtEvtBuilder< C >::fitProbToken_, TtGenEvtProducer_cfi::genEvt, TtEvtBuilder< C >::genEvt_, TtEvtBuilder< C >::genEvtToken_, edm::Event::getByToken(), h, TtEvtBuilder< C >::hitFitChi2Token_, TtEvtBuilder< C >::hitFitMTToken_, TtEvtBuilder< C >::hitFitProbToken_, TtEvtBuilder< C >::hitFitSigMTToken_, TtEvtBuilder< C >::hypKeyTokens_, TtEvtBuilder< C >::hypTokens_, crabWrapper::key, TtEvent::kGenMatch, TtEvent::kHitFit, TtEvent::kKinFit, TtEvent::kMVADisc, edm::InputTag::label(), TtSemiLepEvtBuilder_cfi::meth, TtEvtBuilder< C >::methToken_, eostools::move(), edm::Event::put(), TtFullHadEvtBuilder_cfi::sumDR, TtEvtBuilder< C >::sumDRToken_, TtFullHadEvtBuilder_cfi::sumPt, TtEvtBuilder< C >::sumPtToken_, and TtEvtBuilder< C >::verbosity_.
Referenced by TtEvtBuilder< C >::~TtEvtBuilder().
|
private |
decay channels of the two top decay branches; to be filled according to WDecay::LeptonTypes in TtGenEvent
Definition at line 66 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 67 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 95 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 72 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 73 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 62 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 63 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
input parameters for the kGenMatch hypothesis class extras
Definition at line 88 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::TtEvtBuilder().
|
private |
input parameters for the kHitFit hypothesis class extras
Definition at line 76 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 77 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 79 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 78 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 80 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 58 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::fillSpecific(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
vector of hypothesis class names
Definition at line 55 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::fillSpecific(), and TtEvtBuilder< C >::produce().
|
private |
Definition at line 57 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::fillSpecific(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 56 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
input parameters for the kKinFit hypothesis class extras
Definition at line 71 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::TtEvtBuilder().
|
private |
input parameters for the kKinSolution hypothesis class extras
Definition at line 83 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 94 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
input parameters for the kMVADisc hypothesis class extras
Definition at line 93 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 84 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::fillSpecific(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 90 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
Definition at line 89 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce(), and TtEvtBuilder< C >::TtEvtBuilder().
|
private |
vebosity level
Definition at line 53 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::produce().
|
private |
Definition at line 85 of file TtEvtBuilder.h.
Referenced by TtEvtBuilder< C >::fillSpecific(), and TtEvtBuilder< C >::TtEvtBuilder().