Go to the documentation of this file.
79 shift_(
cfg.getParameter<double>(
"shift")) {
83 hists_[
"globalMass"] =
fileService->
make<TH1D>(
"globalMass",
"Mass_{Z} (global) (GeV)", 90, 30., 120.);
109 if (
t1.isAvailable()) {
115 if (
t2.isAvailable()) {
121 if (
t1.isAvailable() &&
t2.isAvailable()) {
138 if (mu1->charge() * mu2->charge() < 0) {
143 if (mu1->isGlobalMuon()) {
144 fill(
"deltaPt", mu1->outerTrack()->pt() - mu1->globalTrack()->pt());
145 fill(
"deltaEta", mu1->outerTrack()->eta() - mu1->globalTrack()->eta());
146 fill(
"deltaPhi", mu1->outerTrack()->phi() - mu1->globalTrack()->phi());
148 if (mu2->isGlobalMuon()) {
149 fill(
"deltaPt", mu2->outerTrack()->pt() - mu2->globalTrack()->pt());
150 fill(
"deltaEta", mu2->outerTrack()->eta() - mu2->globalTrack()->eta());
151 fill(
"deltaPhi", mu2->outerTrack()->phi() - mu2->globalTrack()->phi());
edm::Service< TFileService > fileService
edm::EDGetTokenT< edm::View< pat::Muon > > muonsToken_
input for muons
math::XYZTLorentzVector LorentzVector
double mass(const math::XYZVector &t1, const math::XYZVector &t2) const
calculate the mass of the Z boson from the tracker momenta by hand
math::XYZVector Vector
typedef's to simplify get functions
#define DEFINE_FWK_MODULE(type)
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
everything that needs to be done during the event loop
void fill(const std::string histName, double value) const
fill histogram if it had been booked before
Module to analyze the performance of muon reconstruction on the example of Z->mumu events.
XYZVectorD XYZVector
spatial vector with cartesian internal representation
std::map< std::string, TH1D * > hists_
management of 1d histograms
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
~PatZToMuMuAnalyzer() override
default destructor
bool booked(const std::string histName) const
check if histogram was booked
PatZToMuMuAnalyzer(const edm::ParameterSet &cfg)
default constructor
T * make(const Args &... args) const
make new ROOT object