DESY Hbb Analysis Framework
MuonAnalyser.h
Go to the documentation of this file.
1 #ifndef Analysis_Tools_MuonAnalyser_h
2 #define Analysis_Tools_MuonAnalyser_h 1
3 
4 // -*- C++ -*-
5 //
6 // Package: Analysis/Tools
7 // Class: xxx
8 //
16 //
17 // Original Author: Roberval Walsh Bastos Rangel
18 // Created: Mon, 20 Oct 2014 14:24:08 GMT
19 //
20 //
21 
22 // system include files
23 #include <memory>
24 #include <vector>
25 #include <string>
26 //
28 //
29 // class declaration
30 //
31 
32 namespace analysis {
33  namespace tools {
34 
36 
37  public:
39  MuonAnalyser();
40  MuonAnalyser(int argc, char * argv[]);
42  ~MuonAnalyser();
43 
44  // ----------member data ---------------------------
45  protected:
46  std::vector< std::shared_ptr<Muon> > muons_;
47  std::vector< std::shared_ptr<Muon> > selectedMuons_;
48  std::vector< std::shared_ptr<Muon> > onlineMatchedMuons_;
49 
51 
52  std::map<std::string, std::shared_ptr<BTagCalibrationReader> >bsf_reader_;
53 
54  private:
55 
56  public:
57  std::vector< std::shared_ptr<Muon> > selectedMuons();
58  std::vector< std::shared_ptr<Muon> > onlineMatchedMuons();
59  std::vector< std::shared_ptr<Muon> > muons();
60  float btag(const Muon & , const std::string & );
61 
62  // Sets
63 
64  // Actions
65  virtual bool analysisWithMuons();
66  virtual bool selectionMuon(const int &);
67  virtual bool selectionMuons();
68 // virtual bool selectionMuon();
69  virtual bool selectionMuonId();
70  virtual bool selectionNMuons();
71 
73  virtual bool selectionMuonDr(const int & r1, const int & r2);
75  virtual bool selectionMuonDr(const int & r1, const int & r2, const float & delta);
76 
77 
78  virtual bool onlineMuonMatching();
79  virtual bool onlineL1MuonMatching(const int &);
80  virtual bool onlineL3MuonMatching(const int &);
81  virtual void muonHistograms(const std::string &, const int & n = 1);
82  virtual void fillMuonHistograms();
83 
84  };
85  }
86 }
87 
88 #endif // Analysis_Tools_MuonAnalyser_h
virtual bool onlineL1MuonMatching(const int &)
virtual bool selectionMuonDr(const int &r1, const int &r2)
Given the rankings r1 and r2 of two jets, it returns whether the jets passes the delta_R selection; t...
float btag(const Muon &, const std::string &)
std::vector< std::shared_ptr< Muon > > muons_
Definition: MuonAnalyser.h:46
std::vector< std::shared_ptr< Muon > > muons()
std::map< std::string, std::shared_ptr< BTagCalibrationReader > > bsf_reader_
Definition: MuonAnalyser.h:52
virtual bool onlineL3MuonMatching(const int &)
std::vector< std::shared_ptr< Muon > > onlineMatchedMuons_
Definition: MuonAnalyser.h:48
std::vector< std::shared_ptr< Muon > > selectedMuons()
std::vector< std::shared_ptr< Muon > > selectedMuons_
Definition: MuonAnalyser.h:47
std::vector< std::shared_ptr< Muon > > onlineMatchedMuons()
virtual bool selectionMuon(const int &)
virtual bool analysisWithMuons()
Definition: MuonAnalyser.cc:44
virtual void muonHistograms(const std::string &, const int &n=1)