test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EmbeddingKineReweightNtupleProducer.h
Go to the documentation of this file.
1 #ifndef TauAnalysis_MCEmbeddingTools_EmbeddingKineReweightNtupleProducer_h
2 #define TauAnalysis_MCEmbeddingTools_EmbeddingKineReweightNtupleProducer_h
3 
21 
23 
24 #include <TTree.h>
25 
26 #include <map>
27 #include <string>
28 #include <vector>
29 #include <ostream>
30 
32 {
33  public:
34 
37 
38  void analyze(const edm::Event&, const edm::EventSetup&);
39  void beginJob();
40 
41  private:
42 
43  void addBranchF(const std::string&);
44  void addBranchI(const std::string&);
45  void addBranch_EnPxPyPz(const std::string&);
47 
48  void printBranches(std::ostream&);
49 
50  void setValueF(const std::string&, double);
51  void setValueI(const std::string&, int);
54 
56 
58 
61 
64 
66 
71 
72  typedef std::vector<edm::InputTag> vInputTag;
75 
77  {
78  Float_t valueF_;
79  Int_t valueI_;
80  };
81 
82  typedef std::map<std::string, branchEntryType> branchMap; // key = branch name
84 
85  TTree* ntuple_;
86 
87  static int verbosity_;
88 };
89 
90 #endif
91 
92 
void analyze(const edm::Event &, const edm::EventSetup &)
std::map< std::string, branchEntryType > branchMap
void setValue_EnPxPyPz(const std::string &, const reco::Candidate::LorentzVector &)
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
void setValue_MEtResProjections(const std::string &, const reco::Candidate::LorentzVector &, const reco::Candidate::LorentzVector &, const reco::Candidate::LorentzVector &)