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);
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);
119 plots.distErr =
fs->make<TH1F>(
120 Form(
"distErr_%s",
name), Form(
"Transverse distance error between PV and SV in %s",
flavour), 100, 0, 0.5);
121 plots.distSig =
fs->make<TH1F>(
122 Form(
"distSig_%s",
name), Form(
"Transverse distance significance between PV and SV in %s",
flavour), 100, 0, 50);
123 plots.nTracks =
fs->make<TH1F>(
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
edm::EDGetTokenT< pat::JetCollection > jetsToken_
void analyze(const edm::Event &event, const edm::EventSetup &es) override
~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)
#define DEFINE_FWK_MODULE(type)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>