CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
JetTagInfo.h
Go to the documentation of this file.
1 #ifndef DataFormats_BTauReco_JetTagInfo_h
2 #define DataFormats_BTauReco_JetTagInfo_h
3 
6 
7 namespace reco {
8 
9 class JetTagInfo : public BaseTagInfo {
10 public:
11  JetTagInfo(void) : m_jet() { }
12 
13  template <typename T>
14  JetTagInfo(const edm::Ref<T> & jetRef) : m_jet(jetRef) { }
15 
16  JetTagInfo(const edm::RefToBase<Jet> & jetRef) : m_jet(jetRef) { }
17 
18  virtual ~JetTagInfo(void) { }
19 
20  virtual JetTagInfo* clone(void) const { return new JetTagInfo(*this); }
21 
22  virtual edm::RefToBase<Jet> jet(void) const { return m_jet; }
23 
24  template <typename T>
25  void setJetRef(const edm::Ref<T> & jetRef) { m_jet = edm::RefToBase<Jet>( jetRef ); }
26 
27  void setJetRef(const edm::RefToBase<Jet> & jetRef) { m_jet = edm::RefToBase<Jet>( jetRef ); }
28 
29 protected:
31 };
32 
34 
35 }
36 
37 #endif // DataFormats_BTauReco_JetTagInfo_h
JetTagInfo(const edm::RefToBase< Jet > &jetRef)
Definition: JetTagInfo.h:16
virtual ~JetTagInfo(void)
Definition: JetTagInfo.h:18
virtual edm::RefToBase< Jet > jet(void) const
returns a polymorphic reference to the tagged jet
Definition: JetTagInfo.h:22
virtual JetTagInfo * clone(void) const
clone
Definition: JetTagInfo.h:20
void setJetRef(const edm::Ref< T > &jetRef)
Definition: JetTagInfo.h:25
edm::RefToBase< Jet > m_jet
Definition: JetTagInfo.h:30
JetTagInfo(const edm::Ref< T > &jetRef)
Definition: JetTagInfo.h:14
#define DECLARE_EDM_REFS(class_name)
Definition: RefMacros.h:10
void setJetRef(const edm::RefToBase< Jet > &jetRef)
Definition: JetTagInfo.h:27