Back to home page

Project CMSSW displayed by LXR

 
 

    


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 // \class CATopJetTagInfo
0005 //
0006 // \short tag info for Cambridge-Aachen based subjet top-jet tagging algorithm
0007 // CATopJetTagInfo is a class to hold the discriminator variables for the
0008 // CATopJet Tagging algorithm.
0009 //
0010 //
0011 // \author Salvatore Rappoccio
0012 // \version first version on 27 Aug 2008
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;    //<! Number of subjets
0030     double minMass;  //<! Minimum invariant mass pairing
0031     double topMass;  //<! Jet mass
0032     double wMass;    //<! Closest mass to W mass
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 }  // namespace reco
0060 
0061 #endif  // AnalysisDataFormats_TopObjects_interface_CATopJetTagInfo_h