StGenEvent

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 39 40
#ifndef TopObjects_StGenEvent_h
#define TopObjects_StGenEvent_h

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

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

   \brief   Class derived from the TopGenEvent for single-top events

   The structure holds reference information to the generator particles 
   of the decay chains for each top quark and of the initial partons 
   and provides access and administration. The derived class contains 
   a few additional getters with respect to its base class.
*/

class StGenEvent : public TopGenEvent {
public:
  /// empty constructor
  StGenEvent();
  /// default constructor
  StGenEvent(reco::GenParticleRefProd&, reco::GenParticleRefProd&);
  /// default destructor
  ~StGenEvent() override;

  /// return single lepton if available; 0 else
  const reco::GenParticle* singleLepton() const;
  /// return single neutrino if available; 0 else
  const reco::GenParticle* singleNeutrino() const;
  /// return single W
  const reco::GenParticle* singleW() const;
  /// return single Top
  const reco::GenParticle* singleTop() const;
  /// return decay b
  const reco::GenParticle* decayB() const;
  /// return associated b
  const reco::GenParticle* associatedB() const;
};

#endif