TtSemiLepEvtPartons

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 TtSemiLepEvtPartons_h
#define TtSemiLepEvtPartons_h

#include "AnalysisDataFormats/TopObjects/interface/TtEventPartons.h"

#include <vector>

/**
   \class   TtSemiLepEvtPartons TtSemiLepEvtPartons.h "AnalysisDataFormats/TopObjects/interface/TtSemiLepEvtPartons.h"

   \brief   Class to fill partons in a well defined order for semi-leptonic ttbar events

   This class is mainly used for the jet-parton matching in TopTools.
*/

namespace reco {
  class Candidate;
}
class TtGenEvent;

class TtSemiLepEvtPartons : public TtEventPartons {
public:
  /// semi-leptonic parton enum used to define the order
  /// in the vector for lepton and jet combinatorics
  enum { LightQ, LightQBar, HadB, LepB, Lepton };

public:
  /// default constructor
  TtSemiLepEvtPartons(const std::vector<std::string>& partonsToIgnore = std::vector<std::string>());

  /// return vector of partons in the order defined in the corresponding enum
  std::vector<const reco::Candidate*> vec(const TtGenEvent& genEvt) const override;
};

#endif