CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
TtEvtBuilder.h File Reference
#include <vector>
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/transform.h"
#include "AnalysisDataFormats/TopObjects/interface/TtEvent.h"

Go to the source code of this file.

Classes

class  TtEvtBuilder< C >
 Template class to fill the TtEvent structure. More...
 

Functions

 decayChnTop1_ (cfg.getParameter< int >("decayChannel1"))
 
 genEvt_ (cfg.getParameter< edm::InputTag >("genEvent"))
 
 genEvtToken_ (mayConsume< TtGenEvent >(genEvt_))
 
 hypJetTokens_ (edm::vector_transform(cfg.getParameter< std::vector< edm::InputTag > >("hypotheses"), [this](edm::InputTag const &tag){return consumes< int >(edm::InputTag(tag.label(),"NumberOfConsideredJets"));}))
 
 hypNeutrTokens_ (edm::vector_transform(cfg.getParameter< std::vector< edm::InputTag > >("hypotheses"), [this](edm::InputTag const &tag){return consumes< int >(edm::InputTag(tag.label(),"NumberOfRealNeutrinoSolutions"));}))
 
 hypTokens_ (edm::vector_transform(cfg.getParameter< std::vector< edm::InputTag > >("hypotheses"), [this](edm::InputTag const &tag){return consumes< std::vector< TtEvent::HypoCombPair > >(tag);}))
 
 if (cfg.exists("kinFit"))
 
 if (cfg.exists("hitFit"))
 
 if (cfg.exists("kinSolution"))
 
 if (cfg.exists("genMatch"))
 
 if (cfg.exists("mvaDisc"))
 
 produces< C > ()
 

Function Documentation

decayChnTop1_ ( cfg.getParameter< int >  "decayChannel1")
genEvt_ ( cfg.getParameter< edm::InputTag "genEvent")
genEvtToken_ ( mayConsume< TtGenEvent genEvt_)
hypJetTokens_ ( edm::  vector_transformcfg.getParameter< std::vector< edm::InputTag > >("hypotheses"),[this](edm::InputTag const &tag){return consumes< int >(edm::InputTag(tag.label(),"NumberOfConsideredJets"));})
hypNeutrTokens_ ( edm::  vector_transformcfg.getParameter< std::vector< edm::InputTag > >("hypotheses"),[this](edm::InputTag const &tag){return consumes< int >(edm::InputTag(tag.label(),"NumberOfRealNeutrinoSolutions"));})
hypTokens_ ( edm::  vector_transformcfg.getParameter< std::vector< edm::InputTag > >("hypotheses"),[this](edm::InputTag const &tag){return consumes< std::vector< TtEvent::HypoCombPair > >(tag);})
if ( cfg.  exists"kinFit")

Definition at line 108 of file TtEvtBuilder.h.

108  {
109  kinFit_ = cfg.getParameter<edm::ParameterSet>("kinFit");
110  fitChi2Token_ = mayConsume<std::vector<double> >(kinFit_.getParameter<edm::InputTag>("chi2"));
111  fitProbToken_ = mayConsume<std::vector<double> >(kinFit_.getParameter<edm::InputTag>("prob"));
112  }
if ( cfg.  exists"hitFit")

Definition at line 114 of file TtEvtBuilder.h.

114  {
115  hitFit_ = cfg.getParameter<edm::ParameterSet>("hitFit");
116  hitFitChi2Token_ = mayConsume<std::vector<double> >(hitFit_.getParameter<edm::InputTag>("chi2"));
117  hitFitProbToken_ = mayConsume<std::vector<double> >(hitFit_.getParameter<edm::InputTag>("prob"));
118  hitFitMTToken_ = mayConsume<std::vector<double> >(hitFit_.getParameter<edm::InputTag>("mt"));
119  hitFitSigMTToken_ = mayConsume<std::vector<double> >(hitFit_.getParameter<edm::InputTag>("sigmt"));
120  }
if ( cfg.  exists"kinSolution")

Definition at line 122 of file TtEvtBuilder.h.

122  {
123  kinSolution_ = cfg.getParameter<edm::ParameterSet>("kinSolution");
124  solWeightToken_ = mayConsume<std::vector<double> >(kinSolution_.getParameter<edm::InputTag>("solWeight"));
125  wrongChargeToken_ = mayConsume<bool>(kinSolution_.getParameter<edm::InputTag>("wrongCharge"));
126  }
if ( cfg.  exists"genMatch")

Definition at line 128 of file TtEvtBuilder.h.

128  {
129  genMatch_ = cfg.getParameter<edm::ParameterSet>("genMatch");
130  sumPtToken_ = mayConsume<std::vector<double> >(genMatch_.getParameter<edm::InputTag>("sumPt"));
131  sumDRToken_ = mayConsume<std::vector<double> >(genMatch_.getParameter<edm::InputTag>("sumDR"));
132  }
if ( cfg.  exists"mvaDisc")

Definition at line 134 of file TtEvtBuilder.h.

134  {
135  mvaDisc_ = cfg.getParameter<edm::ParameterSet>("mvaDisc");
136  methToken_ = mayConsume<std::string>(mvaDisc_.getParameter<edm::InputTag>("meth"));
137  discToken_ = mayConsume<std::vector<double> >(mvaDisc_.getParameter<edm::InputTag>("disc"));
138  }
produces< C > ( )