ShallowTagInfo

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
#ifndef DataFormats_BTauReco_ShallowTagInfo_h
#define DataFormats_BTauReco_ShallowTagInfo_h

#include "DataFormats/BTauReco/interface/RefMacros.h"
#include "DataFormats/BTauReco/interface/BaseTagInfo.h"
#include "DataFormats/BTauReco/interface/CandIPTagInfo.h"
#include "DataFormats/BTauReco/interface/CandSecondaryVertexTagInfo.h"
#include "DataFormats/BTauReco/interface/TaggingVariable.h"

namespace reco {

  class ShallowTagInfo : public BaseTagInfo {
  public:
    ShallowTagInfo(void) {}

    ShallowTagInfo(const TaggingVariableList& list, const edm::RefToBase<Jet>& jetref) : list_(list), jetRef_(jetref) {}

    ~ShallowTagInfo(void) override {}

    ShallowTagInfo* clone(void) const override { return new ShallowTagInfo(*this); }

    edm::RefToBase<Jet> jet(void) const override { return jetRef_; }

    TaggingVariableList taggingVariables(void) const override { return list_; }

  protected:
    /*const*/ TaggingVariableList list_;
    /*const*/ edm::RefToBase<Jet> jetRef_;
  };

  DECLARE_EDM_REFS(ShallowTagInfo)

}  // namespace reco

#endif  // DataFormats_BTauReco_ShallowTagInfo_h