#include <Validation/RecoVertex/src/PrimaryVertexAnalyzer.cc>
Classes | |
class | simPrimaryVertex |
Private Member Functions | |
std::vector< simPrimaryVertex > | getSimPVs (const edm::Handle< edm::HepMCProduct > &evtMC, const std::string &suffix="") |
std::vector< simPrimaryVertex > | getSimPVs (const edm::Handle< edm::HepMCProduct > &evt, const edm::Handle< edm::SimVertexContainer > &simVtxs, const edm::Handle< edm::SimTrackContainer > &simTrks) |
bool | isCharged (const HepMC::GenParticle *p) |
bool | isFinalstateParticle (const HepMC::GenParticle *p) |
bool | isResonance (const HepMC::GenParticle *p) |
bool | matchVertex (const simPrimaryVertex &vsim, const reco::Vertex &vrec) |
void | printRecVtxs (const edm::Handle< reco::VertexCollection > &recVtxs) |
void | printSimTrks (const edm::Handle< edm::SimTrackContainer > &simVtrks) |
void | printSimVtxs (const edm::Handle< edm::SimVertexContainer > &simVtxs) |
Private Attributes | |
edm::EDGetTokenT < edm::HepMCProduct > | edmHepMCProductToken_ |
edm::EDGetTokenT < edm::SimTrackContainer > | edmSimTrackContainerToken_ |
edm::EDGetTokenT < edm::SimVertexContainer > | edmSimVertexContainerToken_ |
std::map< std::string, TH1 * > | h |
std::map< std::string, TDirectory * > | hdir |
std::string | outputFile_ |
edm::ESHandle< ParticleDataTable > | pdt |
edm::EDGetTokenT < reco::TrackCollection > | recoTrackCollectionToken_ |
std::vector< edm::EDGetTokenT < reco::VertexCollection > > | recoVertexCollectionTokens_ |
TFile * | rootFile_ |
double | simUnit_ |
std::vector< std::string > | suffixSample_ |
bool | verbose_ |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
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 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) |
Description: simple primary vertex analyzer
Implementation: <Notes on="" implementation>="">
Definition at line 54 of file PrimaryVertexAnalyzer.h.
|
explicit |
Definition at line 45 of file PrimaryVertexAnalyzer.cc.
References edm::getReleaseVersion(), edm::ParameterSet::getUntrackedParameter(), outputFile_, recoVertexCollectionTokens_, rootFile_, simUnit_, AlCaHLTBitMon_QueryRunRegistry::string, and suffixSample_.
PrimaryVertexAnalyzer::~PrimaryVertexAnalyzer | ( | ) |
|
virtual |
Implements edm::EDAnalyzer.
Definition at line 410 of file PrimaryVertexAnalyzer.cc.
References ChiSquaredProbability(), gather_cfg::cout, data, edmHepMCProductToken_, edmSimTrackContainerToken_, edmSimVertexContainerToken_, edm::Event::getByToken(), edm::EventSetup::getData(), getSimPVs(), h, hdir, i, getHLTprescales::index, edm::detail::isnan(), edm::HandleBase::isValid(), j, m, matchVertex(), NULL, pdt, printRecVtxs(), recoTrackCollectionToken_, recoVertexCollectionTokens_, simUnit_, AlCaHLTBitMon_QueryRunRegistry::string, suffixSample_, lumiQTWidget::t, findQualityFiles::v, verbose_, w(), and detailsBasic3DVector::z.
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 96 of file PrimaryVertexAnalyzer.cc.
References gather_cfg::cout, h, hdir, rootFile_, simUnit_, and suffixSample_.
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 151 of file PrimaryVertexAnalyzer.cc.
References h, hdir, estimatePileup::hist, and rootFile_.
|
private |
Definition at line 243 of file PrimaryVertexAnalyzer.cc.
References gather_cfg::cout, alignCSCRings::e, spr::find(), h, customizeTrackingMonitorSeedNumber::idx, isCharged(), isFinalstateParticle(), m, NULL, parents, createPayload::suffix, and verbose_.
Referenced by analyze().
|
private |
Definition at line 334 of file PrimaryVertexAnalyzer.cc.
References configurableAnalysis::GenParticle, customizeTrackingMonitorSeedNumber::idx, isCharged(), isFinalstateParticle(), isResonance(), or, PrimaryVertexAnalyzer::simPrimaryVertex::simTrackIndex, lumiQTWidget::t, and findQualityFiles::v.
|
private |
Definition at line 179 of file PrimaryVertexAnalyzer.cc.
References pdt.
Referenced by getSimPVs().
|
private |
|
private |
Definition at line 169 of file PrimaryVertexAnalyzer.cc.
References funct::abs(), gather_cfg::cout, alignCSCRings::e, pdt, and verbose_.
Referenced by getSimPVs().
|
private |
Definition at line 164 of file PrimaryVertexAnalyzer.cc.
References simUnit_, PrimaryVertexAnalyzer::simPrimaryVertex::z, and reco::Vertex::z().
Referenced by analyze().
|
private |
Definition at line 189 of file PrimaryVertexAnalyzer.cc.
References gather_cfg::cout, and findQualityFiles::v.
Referenced by analyze().
|
private |
Definition at line 224 of file PrimaryVertexAnalyzer.cc.
References gather_cfg::cout, i, and lumiQTWidget::t.
|
private |
Definition at line 208 of file PrimaryVertexAnalyzer.cc.
References gather_cfg::cout, i, and simUnit_.
|
private |
Definition at line 104 of file PrimaryVertexAnalyzer.h.
Referenced by analyze().
|
private |
Definition at line 103 of file PrimaryVertexAnalyzer.h.
Referenced by analyze().
|
private |
Definition at line 102 of file PrimaryVertexAnalyzer.h.
Referenced by analyze().
|
private |
Definition at line 109 of file PrimaryVertexAnalyzer.h.
Referenced by analyze(), beginJob(), endJob(), and getSimPVs().
|
private |
Definition at line 110 of file PrimaryVertexAnalyzer.h.
Referenced by analyze(), beginJob(), and endJob().
|
private |
Definition at line 106 of file PrimaryVertexAnalyzer.h.
Referenced by PrimaryVertexAnalyzer().
|
private |
Definition at line 100 of file PrimaryVertexAnalyzer.h.
Referenced by analyze(), isCharged(), and isResonance().
|
private |
Definition at line 101 of file PrimaryVertexAnalyzer.h.
Referenced by analyze().
|
private |
Definition at line 105 of file PrimaryVertexAnalyzer.h.
Referenced by analyze(), and PrimaryVertexAnalyzer().
|
private |
Definition at line 108 of file PrimaryVertexAnalyzer.h.
Referenced by beginJob(), endJob(), PrimaryVertexAnalyzer(), and ~PrimaryVertexAnalyzer().
|
private |
Definition at line 99 of file PrimaryVertexAnalyzer.h.
Referenced by analyze(), beginJob(), matchVertex(), PrimaryVertexAnalyzer(), and printSimVtxs().
|
private |
Definition at line 107 of file PrimaryVertexAnalyzer.h.
Referenced by analyze(), beginJob(), and PrimaryVertexAnalyzer().
|
private |
Definition at line 98 of file PrimaryVertexAnalyzer.h.
Referenced by analyze(), getSimPVs(), and isResonance().