CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ShiftedMETcorrInputProducer.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_PatUtils_ShiftedMETcorrInputProducer_h
2 #define PhysicsTools_PatUtils_ShiftedMETcorrInputProducer_h
3 
22 
23 #include <string>
24 
26 {
27  public:
28 
31 
32  private:
33 
34  void produce(edm::Event&, const edm::EventSetup&);
35 
36  std::string moduleLabel_;
37 
38  typedef std::vector<edm::InputTag> vInputTag;
40 
42  {
43  binningEntryType(double uncertainty)
44  : binLabel_(""),
45  binUncertainty_(uncertainty)
46  {}
48  : binLabel_(cfg.getParameter<std::string>("binLabel")),
49  binUncertainty_(cfg.getParameter<double>("binUncertainty"))
50  {}
51  std::string getInstanceLabel_full(const std::string& instanceLabel)
52  {
53  std::string retVal = instanceLabel;
54  if ( instanceLabel != "" && binLabel_ != "" ) retVal.append("#");
55  retVal.append(binLabel_);
56  return retVal;
57  }
59  std::string binLabel_;
61  };
62  std::vector<binningEntryType*> binning_;
63 
64  double shiftBy_;
65 };
66 
67 #endif
68 
69 
70 
71 
void produce(edm::Event &, const edm::EventSetup &)
ShiftedMETcorrInputProducer(const edm::ParameterSet &)
std::string getInstanceLabel_full(const std::string &instanceLabel)
std::vector< binningEntryType * > binning_
std::vector< edm::InputTag > vInputTag