TtFullHadEvtPartons

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

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

#include <vector>

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

   \brief   Class to fill partons in a well defined order for fully-hadronic ttbar events

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

namespace reco {
  class Candidate;
}
class TtGenEvent;

class TtFullHadEvtPartons : public TtEventPartons {
public:
  /// fully-hadronic parton enum used to define the order
  /// in the vector for lepton and jet combinatorics
  enum { LightQ, LightQBar, B, LightP, LightPBar, BBar };

public:
  /// default constructor
  TtFullHadEvtPartons(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