#include "DataFormats/L1TCorrelator/interface/TkHTMiss.h"

using namespace l1t;

TkHTMiss::TkHTMiss() {}

TkHTMiss::TkHTMiss(const LorentzVector& p4,
                   double etTotal,
                   const edm::RefProd<TkJetCollection>& jetCollRef,
                   const edm::Ref<VertexCollection>& avtxRef,
                   int bx)
    : L1Candidate(p4), etTot_(etTotal), jetCollectionRef_(jetCollRef), vtxRef_(avtxRef), bx_(bx) {
  if (vtxRef_.isNonnull()) {
    setVtx(vtxRef()->z0());
  }
}
