#include <Validation/RecoVertex/src/PrimaryVertexAnalyzer.cc>
Classes | |
class | simPrimaryVertex |
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
virtual void | endJob () |
PrimaryVertexAnalyzer (const edm::ParameterSet &) | |
~PrimaryVertexAnalyzer () | |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
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 402 of file PrimaryVertexAnalyzer.cc.
References ChiSquaredProbability(), gather_cfg::cout, data, edmHepMCProductToken_, edmSimTrackContainerToken_, edmSimVertexContainerToken_, edm::Event::getByToken(), edm::EventSetup::getData(), getSimPVs(), h, hdir, i, cmsHarvester::index, edm::detail::isnan(), edm::HandleBase::isValid(), j, visualization-live-secondInstance_cfg::m, matchVertex(), NULL, pdt, printRecVtxs(), recoTrackCollectionToken_, recoVertexCollectionTokens_, simUnit_, AlCaHLTBitMon_QueryRunRegistry::string, suffixSample_, edmStreamStallGrapher::t, findQualityFiles::v, verbose_, w, and detailsBasic3DVector::z.
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 91 of file PrimaryVertexAnalyzer.cc.
References gather_cfg::cout, h, hdir, rootFile_, simUnit_, and suffixSample_.
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 145 of file PrimaryVertexAnalyzer.cc.
References h, hdir, estimatePileup::hist, and rootFile_.
|
private |
Definition at line 237 of file PrimaryVertexAnalyzer.cc.
References gather_cfg::cout, alignCSCRings::e, spr::find(), h, customizeTrackingMonitorSeedNumber::idx, isCharged(), isFinalstateParticle(), visualization-live-secondInstance_cfg::m, NULL, parents, createPayload::suffix, and verbose_.
Referenced by analyze().
|
private |
Definition at line 328 of file PrimaryVertexAnalyzer.cc.
References GenParticle::GenParticle, customizeTrackingMonitorSeedNumber::idx, isCharged(), isFinalstateParticle(), isResonance(), or, PrimaryVertexAnalyzer::simPrimaryVertex::simTrackIndex, edmStreamStallGrapher::t, and findQualityFiles::v.
|
private |
Definition at line 173 of file PrimaryVertexAnalyzer.cc.
References pdt.
Referenced by getSimPVs().
|
private |
|
private |
Definition at line 163 of file PrimaryVertexAnalyzer.cc.
References funct::abs(), gather_cfg::cout, alignCSCRings::e, pdt, and verbose_.
Referenced by getSimPVs().
|
private |
Definition at line 158 of file PrimaryVertexAnalyzer.cc.
References simUnit_, PrimaryVertexAnalyzer::simPrimaryVertex::z, and reco::Vertex::z().
Referenced by analyze().
|
private |
Definition at line 183 of file PrimaryVertexAnalyzer.cc.
References gather_cfg::cout, and findQualityFiles::v.
Referenced by analyze().
|
private |
Definition at line 218 of file PrimaryVertexAnalyzer.cc.
References gather_cfg::cout, i, and edmStreamStallGrapher::t.
|
private |
Definition at line 202 of file PrimaryVertexAnalyzer.cc.
References gather_cfg::cout, i, and simUnit_.
|
private |
Definition at line 101 of file PrimaryVertexAnalyzer.h.
Referenced by analyze().
|
private |
Definition at line 100 of file PrimaryVertexAnalyzer.h.
Referenced by analyze().
|
private |
Definition at line 99 of file PrimaryVertexAnalyzer.h.
Referenced by analyze().
|
private |
Definition at line 106 of file PrimaryVertexAnalyzer.h.
Referenced by analyze(), beginJob(), endJob(), and getSimPVs().
|
private |
Definition at line 107 of file PrimaryVertexAnalyzer.h.
Referenced by analyze(), beginJob(), and endJob().
|
private |
Definition at line 103 of file PrimaryVertexAnalyzer.h.
Referenced by PrimaryVertexAnalyzer().
|
private |
Definition at line 97 of file PrimaryVertexAnalyzer.h.
Referenced by analyze(), isCharged(), and isResonance().
|
private |
Definition at line 98 of file PrimaryVertexAnalyzer.h.
Referenced by analyze().
|
private |
Definition at line 102 of file PrimaryVertexAnalyzer.h.
Referenced by analyze(), and PrimaryVertexAnalyzer().
|
private |
Definition at line 105 of file PrimaryVertexAnalyzer.h.
Referenced by beginJob(), endJob(), PrimaryVertexAnalyzer(), and ~PrimaryVertexAnalyzer().
|
private |
Definition at line 96 of file PrimaryVertexAnalyzer.h.
Referenced by analyze(), beginJob(), matchVertex(), PrimaryVertexAnalyzer(), and printSimVtxs().
|
private |
Definition at line 104 of file PrimaryVertexAnalyzer.h.
Referenced by analyze(), beginJob(), and PrimaryVertexAnalyzer().
|
private |
Definition at line 95 of file PrimaryVertexAnalyzer.h.
Referenced by analyze(), getSimPVs(), and isResonance().