CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TauJetCorrFactorsProducer.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_PatAlgos_TauJetCorrFactorsProducer_h
2 #define PhysicsTools_PatAlgos_TauJetCorrFactorsProducer_h
3 
22 
25 
30 
31 #include <boost/shared_ptr.hpp>
32 
33 #include <map>
34 #include <string>
35 
36 namespace pat {
37 
39  {
40  public:
43 
44  public:
49 
51  virtual void produce(edm::Event&, const edm::EventSetup&) override;
52 
53  private:
55  std::vector<JetCorrectorParameters> params(const JetCorrectorParametersCollection&, const std::vector<std::string>&) const;
56 
58  float evaluate(edm::View<reco::BaseTau>::const_iterator&, boost::shared_ptr<FactorizedJetCorrector>&, int);
59 
60  private:
63 
66 
68  typedef std::vector<int> vint;
70  {
74 
77  };
78  std::vector<payloadMappingType> payloadMappings_;
79 
86 
88  typedef std::vector<std::string> vstring;
90  };
91 }
92 
93 #endif
TauJetCorrFactorsProducer(const edm::ParameterSet &)
default constructor
float evaluate(edm::View< reco::BaseTau >::const_iterator &, boost::shared_ptr< FactorizedJetCorrector > &, int)
evaluate jet correction factor up to a given level
std::vector< JetCorrectorParameters > params(const JetCorrectorParametersCollection &, const std::vector< std::string > &) const
return the jec parameters as input to the FactorizedJetCorrector for different flavors ...
virtual void produce(edm::Event &, const edm::EventSetup &) override
everything that needs to be done per event
std::vector< std::string > vstring
jec levels
edm::EDGetTokenT< edm::View< reco::BaseTau > > srcToken_
input tau-jet collection
std::vector< int > vint
mapping of reconstructed tau decay modes to payloads
edm::ValueMap< pat::TauJetCorrFactors > JetCorrFactorsMap
value map for JetCorrFactors (to be written into the event)
std::string moduleLabel_
python label of this TauJetCorrFactorsProducer module
std::vector< payloadMappingType > payloadMappings_
Produces a ValueMap between TauJetCorrFactors and the originating reco taus.
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
Definition: View.h:85
~TauJetCorrFactorsProducer()
default destructor