File indexing completed on 2024-04-06 12:03:46
0001 #ifndef AnalysisDataFormats_TopObjects_interface_CATopJetTagInfo_h
0002 #define AnalysisDataFormats_TopObjects_interface_CATopJetTagInfo_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #include "DataFormats/BTauReco/interface/RefMacros.h"
0015 #include "DataFormats/BTauReco/interface/JetTagInfo.h"
0016 #include "DataFormats/BTauReco/interface/TaggingVariable.h"
0017 #include <vector>
0018
0019 namespace reco {
0020
0021 class CATopJetProperties {
0022 public:
0023 CATopJetProperties() {
0024 nSubJets = 0;
0025 minMass = 0.;
0026 topMass = 0.;
0027 wMass = 0.;
0028 }
0029 int nSubJets;
0030 double minMass;
0031 double topMass;
0032 double wMass;
0033 };
0034
0035 class CATopJetTagInfo : public JetTagInfo {
0036 public:
0037 typedef edm::RefToBase<Jet> jet_type;
0038 typedef CATopJetProperties properties_type;
0039
0040 CATopJetTagInfo(void) {}
0041
0042 ~CATopJetTagInfo(void) override {}
0043
0044 CATopJetTagInfo* clone(void) const override { return new CATopJetTagInfo(*this); }
0045
0046 const properties_type& properties() const { return properties_; }
0047
0048 void insert(const edm::RefToBase<Jet>& jet, const CATopJetProperties& properties) {
0049 setJetRef(jet);
0050 properties_ = properties;
0051 }
0052
0053 protected:
0054 properties_type properties_;
0055 };
0056
0057 DECLARE_EDM_REFS(CATopJetTagInfo)
0058
0059 }
0060
0061 #endif