DESY Hbb Analysis Framework
MuonIdWeight.h
Go to the documentation of this file.
1 #ifndef Analysis_Tools_MuonIdWeight_h
2 #define Analysis_Tools_MuonIdWeight_h 1
3 
4 // -*- C++ -*-
5 //
6 // Package: Analysis/Tools
7 // Class: xxx
8 //
16 //
17 // Original Author: Antonio Vagnerini
18 //
19 //
20 
21 // system include files
22 #include <memory>
23 #include <vector>
24 #include <string>
25 #include <map>
26 #include <iostream>
27 //
28 // user include files
29 
30 #include "TH2.h"
31 
32 
33 //
34 // class declaration
35 //
36 
37 namespace analysis {
38  namespace tools {
39 
40  class MuonIdWeight {
41  public:
43  MuonIdWeight();
44  MuonIdWeight(const std::string &);
46  ~MuonIdWeight();
47 
48  // ----------member data ---------------------------
49  protected:
50  std::map<int,std::shared_ptr<TH2D> > histos_;
51 
52  private:
53 
54  public:
55  float weight(const float & pt, const float & eta, const int & var = 0);
56  std::shared_ptr<TH2D> histogram(const int & var = 0);
57  };
58  }
59 }
60 
61 #endif // Analysis_Tools_MuonIdWeight_h
float weight(const float &pt, const float &eta, const int &var=0)
Definition: MuonIdWeight.cc:64
std::map< int, std::shared_ptr< TH2D > > histos_
Definition: MuonIdWeight.h:50
std::shared_ptr< TH2D > histogram(const int &var=0)