10 #include <Math/VectorUtil.h>
11 #include <Math/GenVector/PxPyPzE4D.h>
12 #include <Math/GenVector/PxPyPzM4D.h>
67 jetPtCut_(params.getParameter<double>(
"jetPtCut")),
68 jetEtaCut_(params.getParameter<double>(
"jetEtaCut")) {
79 flavours_ = fs->
make<TH1F>(
"flavours",
"jet flavours", 5, 0, 5);
92 flavour =
"light flavour jets";
96 flavour =
"charm jets";
100 flavour =
"bottom jets";
104 flavour =
"unidentified jets";
110 fs->
make<TH1F>(Form(
"nVertices_%s", name), Form(
"number of secondary vertices in %s", flavour), 5, 0, 5);
111 plots.
deltaR = fs->
make<TH1F>(Form(
"deltaR_%s", name),
112 Form(
"\\DeltaR between vertex direction and jet direction in %s", flavour),
116 plots.
mass = fs->
make<TH1F>(Form(
"mass_%s", name), Form(
"vertex mass in %s", flavour), 100, 0, 10);
118 fs->
make<TH1F>(Form(
"dist_%s", name), Form(
"Transverse distance between PV and SV in %s", flavour), 100, 0, 2);
120 Form(
"distErr_%s", name), Form(
"Transverse distance error between PV and SV in %s", flavour), 100, 0, 0.5);
122 Form(
"distSig_%s", name), Form(
"Transverse distance significance between PV and SV in %s", flavour), 100, 0, 50);
124 Form(
"nTracks_%s", name), Form(
"number of tracks at secondary vertex in %s", flavour), 20, 0, 20);
126 fs->
make<TH1F>(Form(
"chi2_%s", name), Form(
"secondary vertex fit \\chi^{2} in %s", flavour), 100, 0, 50);
138 for (pat::JetCollection::const_iterator
jet = jetsHandle->begin();
jet != jetsHandle->end(); ++
jet) {
219 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double> > vec;
220 vec.SetPx((*track)->px());
221 vec.SetPy((*track)->py());
222 vec.SetPz((*track)->pz());
224 trackFourVectorSum += vec;
static const std::string kSharedResource
std::vector< Jet > JetCollection
const VTX & secondaryVertex(unsigned int index) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< pat::JetCollection > jetsToken_
void analyze(const edm::Event &event, const edm::EventSetup &es) override
T * make(const Args &...args) const
make new ROOT object
~PatBJetVertexAnalyzer() override
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
struct PatBJetVertexAnalyzer::Plots plots_[N_JET_TYPES]
PatBJetVertexAnalyzer(const edm::ParameterSet ¶ms)
constructor and destructor
Abs< T >::type abs(const T &t)
double chi2() const
chi-squares
trackRef_iterator tracks_end() const
last iterator over tracks
trackRef_iterator tracks_begin() const
first iterator over tracks
size_t tracksSize() const
number of tracks
const GlobalVector & flightDirection(unsigned int index) const
unsigned int nVertices() const
double significance() const
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Measurement1D flightDistance(unsigned int index, int dim=0) const
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>