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")) {}
77 flavours_ = fs->
make<TH1F>(
"flavours",
"jet flavours", 5, 0, 5);
90 flavour =
"light flavour jets";
94 flavour =
"charm jets";
98 flavour =
"bottom jets";
102 flavour =
"unidentified jets";
108 fs->
make<TH1F>(Form(
"nVertices_%s", name), Form(
"number of secondary vertices in %s", flavour), 5, 0, 5);
109 plots.
deltaR = fs->
make<TH1F>(Form(
"deltaR_%s", name),
110 Form(
"\\DeltaR between vertex direction and jet direction in %s", flavour),
114 plots.
mass = fs->
make<TH1F>(Form(
"mass_%s", name), Form(
"vertex mass in %s", flavour), 100, 0, 10);
116 fs->
make<TH1F>(Form(
"dist_%s", name), Form(
"Transverse distance between PV and SV in %s", flavour), 100, 0, 2);
118 Form(
"distErr_%s", name), Form(
"Transverse distance error between PV and SV in %s", flavour), 100, 0, 0.5);
120 Form(
"distSig_%s", name), Form(
"Transverse distance significance between PV and SV in %s", flavour), 100, 0, 50);
122 Form(
"nTracks_%s", name), Form(
"number of tracks at secondary vertex in %s", flavour), 20, 0, 20);
124 fs->
make<TH1F>(Form(
"chi2_%s", name), Form(
"secondary vertex fit \\chi^{2} in %s", flavour), 100, 0, 50);
136 for (pat::JetCollection::const_iterator
jet = jetsHandle->begin();
jet != jetsHandle->end(); ++
jet) {
217 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double> > vec;
218 vec.SetPx((*track)->px());
219 vec.SetPy((*track)->py());
220 vec.SetPz((*track)->pz());
222 trackFourVectorSum += vec;
std::vector< Jet > JetCollection
trackRef_iterator tracks_end() const
last iterator over tracks
const VTX & secondaryVertex(unsigned int index) const
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
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
~PatBJetVertexAnalyzer() override
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
#define DEFINE_FWK_MODULE(type)
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
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
trackRef_iterator tracks_begin() const
first iterator over tracks
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
size_t tracksSize() const
number of tracks