Implements edm::EDAnalyzer.
Definition at line 148 of file PatBJetVertexAnalyzer.cc.
References abs, ALL_JETS, B_JETS, C_JETS, PatBJetVertexAnalyzer::Plots::chi2, reco::Vertex::chi2(), deltaR(), PatBJetVertexAnalyzer::Plots::deltaR, dir, PatBJetVertexAnalyzer::Plots::dist, PatBJetVertexAnalyzer::Plots::distErr, PatBJetVertexAnalyzer::Plots::distSig, Measurement1D::error(), reco::flavour(), flavours_, reco::SecondaryVertexTagInfo::flightDirection(), reco::SecondaryVertexTagInfo::flightDistance(), metsig::jet, jetEtaCut_, jetPtCut_, jets_, PatBJetVertexAnalyzer::Plots::mass, NONID_JETS, PatBJetVertexAnalyzer::Plots::nTracks, PatBJetVertexAnalyzer::Plots::nVertices, reco::SecondaryVertexTagInfo::nVertices(), plots_, reco::SecondaryVertexTagInfo::secondaryVertex(), Measurement1D::significance(), reco::Vertex::tracks_begin(), reco::Vertex::tracks_end(), reco::Vertex::tracksSize(), UDSG_JETS, Measurement1D::value(), reco::btau::vertexMass, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
152 event.getByLabel(
jets_, jetsHandle);
155 for(pat::JetCollection::const_iterator
jet = jetsHandle->begin();
156 jet != jetsHandle->end(); ++
jet) {
190 *
jet->tagInfoSecondaryVertex();
231 double deltaR = ROOT::Math::VectorUtil::DeltaR(
232 jet->momentum(), dir2);
243 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double> > vec;
244 vec.SetPx((*track)->px());
245 vec.SetPy((*track)->py());
246 vec.SetPz((*track)->pz());
248 trackFourVectorSum += vec;
Measurement1D flightDistance(unsigned int index, bool in2d=false) const
trackRef_iterator tracks_end() const
last iterator over tracks
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
const GlobalVector & flightDirection(unsigned int index) const
const Vertex & secondaryVertex(unsigned int index) const
struct PatBJetVertexAnalyzer::Plots plots_[N_JET_TYPES]
double chi2() const
chi-squares
double deltaR(double eta1, double eta2, double phi1, double phi2)
double significance() const
XYZVectorD XYZVector
spatial vector with cartesian internal representation
unsigned int nVertices() const
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
trackRef_iterator tracks_begin() const
first iterator over tracks
int flavour(const Candidate &part)
size_t tracksSize() const
number of tracks