BaseTagInfo

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 36 37 38
#ifndef DataFormats_BTauReco_BaseTagInfo_h
#define DataFormats_BTauReco_BaseTagInfo_h

#include "DataFormats/BTauReco/interface/RefMacros.h"
#include "DataFormats/Common/interface/RefToBase.h"
#include "DataFormats/JetReco/interface/Jet.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/BTauReco/interface/TaggingVariable.h"

namespace reco {

  class BaseTagInfo {
  public:
    BaseTagInfo(void) {}

    virtual ~BaseTagInfo(void) {}

    /// clone
    virtual BaseTagInfo* clone(void) const { return new BaseTagInfo(*this); }

    /// returns a polymorphic reference to the tagged jet
    virtual edm::RefToBase<Jet> jet(void) const { return edm::RefToBase<Jet>(); }

    /// returns a list of tracks associated to the jet
    virtual TrackRefVector tracks(void) const { return TrackRefVector(); }

    /// check if the algorithm is using the tracks or not
    virtual bool hasTracks(void) const { return false; }

    /// returns a description of the extended informations in a TaggingVariableList
    virtual TaggingVariableList taggingVariables(void) const { return TaggingVariableList(); }
  };

  DECLARE_EDM_REFS(BaseTagInfo)

}  // namespace reco

#endif  // DataFormats_BTauReco_BaseTagInfo_h