CMS 3D CMS Logo

Functions
TtFullHadSignalSel.cc File Reference
#include "TopQuarkAnalysis/TopEventSelection/interface/TtFullHadSignalSel.h"
#include "PhysicsTools/CandUtils/interface/EventShapeVariables.h"
#include "PhysicsTools/CandUtils/interface/Thrust.h"
#include "DataFormats/Math/interface/deltaR.h"
#include "TLorentzVector.h"
#include "TVector3.h"

Go to the source code of this file.

Functions

std::vector< math::XYZVectormakeVecForEventShape (std::vector< pat::Jet > jets, bool only6Jets=true, ROOT::Math::Boost boost=ROOT::Math::Boost(0., 0., 0.))
 

Function Documentation

◆ makeVecForEventShape()

std::vector<math::XYZVector> makeVecForEventShape ( std::vector< pat::Jet jets,
bool  only6Jets = true,
ROOT::Math::Boost  boost = ROOT::Math::Boost(0., 0., 0.) 
)

Definition at line 10 of file TtFullHadSignalSel.cc.

12  {
13  std::vector<math::XYZVector> p;
14  bool doBoost = (boost == ROOT::Math::Boost(0., 0., 0.)) ? false : true;
15  for (std::vector<pat::Jet>::const_iterator jet = jets.begin(); jet != jets.end(); ++jet) {
16  math::XYZVector Vjet;
17  if (doBoost) {
18  ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > Ljet(jet->px(), jet->py(), jet->pz(), jet->energy());
19  Vjet = math::XYZVector(boost(Ljet).Px(), boost(Ljet).Py(), boost(Ljet).Pz());
20  } else
21  Vjet = math::XYZVector(jet->px(), jet->py(), jet->pz());
22  p.push_back(Vjet);
23  if (only6Jets && jet - jets.begin() == 5)
24  break;
25  }
26  return p;
27 }

References metsig::jet, singleTopDQM_cfi::jets, and AlCaHLTBitMon_ParallelJobs::p.

Referenced by TtFullHadSignalSel::TtFullHadSignalSel().

AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
singleTopDQM_cfi.jets
jets
Definition: singleTopDQM_cfi.py:42
boost
Definition: CLHEP.h:16
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
metsig::jet
Definition: SignAlgoResolutions.h:47