#include <Alignment/GeneralPurposeVertexAnalyzer/plugins/GeneralPurposeVertexAnalyzer.cc>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::one::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Types | |
using | VertexScore = edm::ValueMap< float > |
Private Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) override |
void | beginJob () override |
template<typename T , typename... Args> | |
T * | book (const Args &...args) const |
void | pvTracksPlots (const reco::Vertex &v) |
void | vertexPlots (const reco::Vertex &v, const reco::BeamSpot &beamSpot, int i) |
Private Attributes | |
const edm::InputTag | beamSpotInputTag_ |
const edm::EDGetTokenT< reco::BeamSpot > | beamspotToken_ |
TH1D * | bsBeamWidthX |
TH1D * | bsBeamWidthY |
TH1D * | bsDxdz |
TH1D * | bsDydz |
TH1D * | bsSigmaZ |
TH1D * | bsType |
TH1D * | bsX |
TH1D * | bsY |
TH1D * | bsZ |
TH1D * | chi2ndf |
TH1D * | chi2prob |
TH1D * | dxy |
TH1D * | dxy2 |
const int | dxyBin_ |
TH1D * | dxyErr |
const double | dxyMax_ |
const double | dxyMin_ |
TProfile * | dxyVsEta_pt1 |
TProfile * | dxyVsEta_pt10 |
TProfile2D * | dxyVsEtaVsPhi_pt1 |
TProfile2D * | dxyVsEtaVsPhi_pt10 |
TProfile * | dxyVsPhi_pt1 |
TProfile * | dxyVsPhi_pt10 |
TH1D * | dz |
const int | dzBin_ |
TH1D * | dzErr |
const double | dzMax_ |
const double | dzMin_ |
TProfile * | dzVsEta_pt1 |
TProfile * | dzVsEta_pt10 |
TProfile2D * | dzVsEtaVsPhi_pt1 |
TProfile2D * | dzVsEtaVsPhi_pt10 |
TProfile * | dzVsPhi_pt1 |
TProfile * | dzVsPhi_pt10 |
bool | errorPrinted_ |
TH1D * | eta_pt1 |
TH1D * | eta_pt10 |
const int | etaBin2D_ |
const int | etaBin_ |
const double | etaMax_ |
const double | etaMin_ |
edm::Service< TFileService > | fs_ |
TH1D * | nans [2] |
TH1I * | nbgvtx |
TH1D * | nbtksinvtx [2] |
TH1I * | nbvtx |
const int | ndof_ |
TH1D * | ntracks |
TH1D * | ntracksVsZ [2] |
TH1D * | phi_pt1 |
TH1D * | phi_pt10 |
const int | phiBin2D_ |
const int | phiBin_ |
const double | phiMax_ |
const double | phiMin_ |
TH1D * | score [2] |
const edm::EDGetTokenT< VertexScore > | scoreToken_ |
TH1D * | sumpt |
const int | tkNoBin_ |
const double | tkNoMax_ |
const double | tkNoMin_ |
TH1D * | trksWeight [2] |
TH1D * | tt [2] |
TH1D * | type [2] |
const edm::InputTag | vertexInputTag_ |
const edm::EDGetTokenT< reco::VertexCollection > | vertexToken_ |
const double | vposx_ |
const double | vposy_ |
TH1D * | vtxchi2 [2] |
TH1D * | vtxndf [2] |
TH1D * | vtxprob [2] |
TH1D * | weight |
TH1D * | xDiff [2] |
TH1D * | xerr [2] |
TH2D * | xerrVsTrks [2] |
TH1D * | xrec [2] |
TH1D * | yDiff [2] |
TH1D * | yerr [2] |
TH2D * | yerrVsTrks [2] |
TH1D * | yrec [2] |
TH1D * | zerr [2] |
TH2D * | zerrVsTrks [2] |
TH1D * | zrec [2] |
Static Private Attributes | |
static constexpr int | cmToUm = 10000 |
Additional Inherited Members | |
Public Types inherited from edm::one::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
Description: monitor vertex properties for alignment purposes, largely copied from DQMOffline/RecoB/plugins/PrimaryVertexMonitor.cc
Definition at line 55 of file GeneralPurposeVertexAnalyzer.cc.
|
private |
Definition at line 78 of file GeneralPurposeVertexAnalyzer.cc.
|
explicit |
Definition at line 134 of file GeneralPurposeVertexAnalyzer.cc.
References TFileService::kSharedResource.
|
overridedefault |
|
overrideprivatevirtual |
Implements edm::one::EDAnalyzerBase.
Definition at line 207 of file GeneralPurposeVertexAnalyzer.cc.
References pwdgSkimBPark_cfi::beamSpot, beamSpotInputTag_, beamspotToken_, bsBeamWidthX, bsBeamWidthY, bsDxdz, bsDydz, bsSigmaZ, bsType, bsX, bsY, bsZ, cmToUm, errorPrinted_, mps_fire::i, iEvent, nbgvtx, nbvtx, ndof_, convertSQLiteXML::ok, pvTracksPlots(), score, scoreToken_, mathSSE::sqrt(), findQualityFiles::v, vertexInputTag_, vertexPlots(), and vertexToken_.
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 419 of file GeneralPurposeVertexAnalyzer.cc.
References bsBeamWidthX, bsBeamWidthY, bsDxdz, bsDydz, bsSigmaZ, bsType, bsX, bsY, bsZ, chi2ndf, chi2prob, dxy, dxy2, dxyBin_, dxyErr, dxyMax_, dxyMin_, dxyVsEta_pt1, dxyVsEta_pt10, dxyVsEtaVsPhi_pt1, dxyVsEtaVsPhi_pt10, dxyVsPhi_pt1, dxyVsPhi_pt10, dz, dzBin_, dzErr, dzMax_, dzMin_, dzVsEta_pt1, dzVsEta_pt10, dzVsEtaVsPhi_pt1, dzVsEtaVsPhi_pt10, dzVsPhi_pt1, dzVsPhi_pt10, eta_pt1, eta_pt10, etaBin2D_, etaBin_, etaMax_, etaMin_, mps_fire::i, nans, nbgvtx, nbtksinvtx, nbvtx, ntracks, ntracksVsZ, phi_pt1, phi_pt10, phiBin2D_, phiBin_, phiMax_, phiMin_, score, AlCaHLTBitMon_QueryRunRegistry::string, sumpt, tkNoBin_, tkNoMax_, tkNoMin_, trksWeight, vposx_, vposy_, vtxchi2, vtxndf, vtxprob, xDiff, xerr, xerrVsTrks, xrec, yDiff, yerr, yerrVsTrks, yrec, zerr, zerrVsTrks, and zrec.
|
private |
Definition at line 413 of file GeneralPurposeVertexAnalyzer.cc.
References writedatasetfile::args, fs_, TFileService::make(), and submitPVValidationJobs::t.
|
static |
Definition at line 670 of file GeneralPurposeVertexAnalyzer.cc.
References edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, ProducerED_cfi::InputTag, and M_PI.
|
private |
Definition at line 285 of file GeneralPurposeVertexAnalyzer.cc.
References chi2ndf, chi2prob, cmToUm, dxy, dxy2, dxyErr, dxyVsEta_pt1, dxyVsEta_pt10, dxyVsEtaVsPhi_pt1, dxyVsEtaVsPhi_pt10, dxyVsPhi_pt1, dxyVsPhi_pt10, dz, dzErr, dzVsEta_pt1, dzVsEta_pt10, dzVsEtaVsPhi_pt1, dzVsEtaVsPhi_pt10, dzVsPhi_pt1, dzVsPhi_pt10, PVValHelper::eta, eta_pt1, eta_pt10, f, reco::TrackBase::highPurity, ntracks, phi, phi_pt1, phi_pt10, DiDispStaMuonMonitor_cfi::pt, HLT_2023v12_cff::pt2, sumpt, submitPVValidationJobs::t, findQualityFiles::v, and w().
Referenced by analyze().
|
private |
Definition at line 356 of file GeneralPurposeVertexAnalyzer.cc.
References pwdgSkimBPark_cfi::beamSpot, ChiSquaredProbability(), cmToUm, HcalObjRepresent::Fill(), mps_fire::i, edm::isNotFinite(), dqmiolumiharvest::j, dqmdumpme::k, nans, nbtksinvtx, ntracksVsZ, submitPVValidationJobs::t, trksWeight, findQualityFiles::v, vtxchi2, vtxndf, vtxprob, xDiff, xerr, xerrVsTrks, xrec, yDiff, yerr, yerrVsTrks, yrec, zerr, zerrVsTrks, and zrec.
Referenced by analyze().
|
private |
Definition at line 76 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 80 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 117 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 117 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 117 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 117 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 117 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 117 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 117 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 117 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 117 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 119 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 119 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
staticprivate |
Definition at line 82 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze(), pvTracksPlots(), and vertexPlots().
|
private |
Definition at line 120 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), Electron.Electron::cutBasedId(), ntupleDataFormat.Track::dxyPull(), and pvTracksPlots().
|
private |
Definition at line 120 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 90 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 120 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), ntupleDataFormat.Track::dxyPull(), and pvTracksPlots().
|
private |
Definition at line 92 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 91 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 124 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 127 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 125 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 128 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 123 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 126 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 120 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), Electron.Electron::cutBasedId(), ntupleDataFormat.Track::dzPull(), and pvTracksPlots().
|
private |
Definition at line 94 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 120 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), ntupleDataFormat.Track::dzPull(), and pvTracksPlots().
|
private |
Definition at line 96 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 95 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 124 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 127 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 125 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 128 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 123 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 126 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 74 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 121 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 122 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 104 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 103 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 106 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 105 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 71 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by book().
|
private |
Definition at line 115 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().
|
private |
Definition at line 109 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 110 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().
|
private |
Definition at line 109 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 73 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 119 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 114 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().
|
private |
Definition at line 121 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 122 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and pvTracksPlots().
|
private |
Definition at line 99 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 98 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 101 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 100 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 110 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze(), and beginJob().
|
private |
Definition at line 79 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 119 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by ZMuMuRochCorAnalyzer.DiMuon::__str__(), beginJob(), and pvTracksPlots().
|
private |
Definition at line 86 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 88 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 87 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 110 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().
|
private |
Definition at line 111 of file GeneralPurposeVertexAnalyzer.cc.
|
private |
Definition at line 116 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by core.autovars.NTupleVariable::makeBranch(), DQM.DQMReader::read_objects(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
private |
Definition at line 76 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 77 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 84 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 85 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob().
|
private |
Definition at line 115 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().
|
private |
Definition at line 115 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().
|
private |
Definition at line 115 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().
|
private |
Definition at line 119 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by dirstructure.Directory::calcStats(), dirstructure.Directory::get_fail_rate(), dirstructure.Directory::get_null_rate(), dirstructure.Directory::get_skiped_rate(), dirstructure.Directory::get_success_rate(), and dirstructure.Directory::print_report().
|
private |
Definition at line 112 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().
|
private |
Definition at line 112 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by python.rootplot.utilities.Hist::__init_TGraph(), python.rootplot.utilities.Hist::av_xerr(), beginJob(), python.rootplot.utilities.Hist::delete_bin(), python.rootplot.root2matplotlib.Hist::errorbar(), python.rootplot.root2matplotlib.Hist::errorbarh(), python.rootplot.utilities.Hist::TGraph(), and vertexPlots().
|
private |
Definition at line 113 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().
|
private |
Definition at line 112 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().
|
private |
Definition at line 112 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().
|
private |
Definition at line 112 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by python.rootplot.utilities.Hist::__init_TGraph(), python.rootplot.utilities.Hist::av_yerr(), beginJob(), python.rootplot.utilities.Hist::delete_bin(), python.rootplot.root2matplotlib.Hist::errorbar(), python.rootplot.root2matplotlib.Hist::errorbarh(), python.rootplot.utilities.Hist::min(), python.rootplot.utilities.Hist::scale(), python.rootplot.utilities.Hist::TGraph(), python.rootplot.utilities.Hist::TH1F(), and vertexPlots().
|
private |
Definition at line 113 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().
|
private |
Definition at line 112 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().
|
private |
Definition at line 112 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().
|
private |
Definition at line 113 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().
|
private |
Definition at line 112 of file GeneralPurposeVertexAnalyzer.cc.
Referenced by beginJob(), and vertexPlots().