DESY Hbb Analysis Framework
Composite.h
Go to the documentation of this file.
1 #ifndef Analysis_Tools_Composite_h
2 #define Analysis_Tools_Composite_h 1
3 
4 // -*- C++ -*-
5 //
6 // Package: Analysis/Tools
7 // Class: Composite
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 //
25 // user include files
27 //
28 // class declaration
29 //
30 
31 namespace analysis {
32  namespace tools {
33 
34 
35  template <class A, class B>
36  class Composite : public Candidate {
37  public:
39  Composite();
41  Composite(const A &, const B &);
43  ~Composite();
44 // using Candidate::set; // in case needed to overload the function set
45  // Gets
46  A * objecA();
47  B * objecB();
48  float deltaR() const;
49  float deltaEta() const ;
50 
51  float btag(const std::string & ) const;
52 
53  // Sets
54  void objectA(const A &);
55  void objectB(const B &);
56 
57 
58  protected:
59  // ----------member data ---------------------------
60 
61  private:
62  // ----------member data ---------------------------
63 
64  A const * a_;
65  B const * b_;
66 
67 
68  //
69  };
70  }
71 }
72 
73 #endif // Analysis_Tools_Composite_h
Composite()
default constructor
Definition: Composite.cc:20
float deltaR() const
Definition: Composite.cc:46
float deltaEta() const
Definition: Composite.cc:52
float B
Definition: PlotsCompare.cc:19
float btag(const std::string &) const