#include <Validation/RecoVertex/src/PrimaryVertexAnalyzer4PUSlimmed.cc>
Classes | |
struct | recoPrimaryVertex |
struct | simPrimaryVertex |
Private Types | |
typedef math::XYZTLorentzVector | LorentzVector |
enum | SignalVertexKind { HIGHEST_PT = 0, IS_ASSOC2FIRST_RECO = 1, IS_ASSOC2ANY_RECO = 2 } |
Private Member Functions | |
template<class T > | |
void | computePairDistance (const T &collection, MonitorElement *me) |
void | fillGenAssociatedRecoVertexHistograms (const std::string &, int, recoPrimaryVertex &v) |
void | fillGenericGenVertexHistograms (const simPrimaryVertex &v) |
void | fillRecoAssociatedGenVertexHistograms (const std::string &, const simPrimaryVertex &v) |
std::vector < PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex > | getRecoPVs (const edm::Handle< reco::VertexCollection >) |
std::vector < PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex > | getSimPVs (const edm::Handle< TrackingVertexCollection >) |
void | matchReco2SimVertices (std::vector< recoPrimaryVertex > &, const TrackingVertexCollection &, const std::vector< simPrimaryVertex > &) |
void | matchSim2RecoVertices (std::vector< simPrimaryVertex > &, const reco::VertexCollection &) |
void | resetSimPVAssociation (std::vector< simPrimaryVertex > &) |
Private Attributes | |
double | abs_z_match_ |
const reco::TrackToTrackingParticleAssociator * | associatorByHits_ |
edm::EDGetTokenT< edm::View < reco::Track > > | edmView_recoTrack_Token_ |
std::map< std::string, std::map< std::string, MonitorElement * > > | mes_ |
reco::RecoToSimCollection | r2s_ |
std::vector< edm::EDGetTokenT < reco::VertexCollection > > | reco_vertex_collection_tokens_ |
std::vector< edm::InputTag > | reco_vertex_collections_ |
edm::EDGetTokenT < reco::TrackCollection > | recoTrackCollectionToken_ |
edm::EDGetTokenT < reco::TrackToTrackingParticleAssociator > | recoTrackToTrackingParticleAssociatorToken_ |
std::string | root_folder_ |
reco::SimToRecoCollection | s2r_ |
double | sigma_z_match_ |
edm::EDGetTokenT < TrackingParticleCollection > | trackingParticleCollectionToken_ |
edm::EDGetTokenT < TrackingVertexCollection > | trackingVertexCollectionToken_ |
bool | use_only_charged_tracks_ |
bool | use_TP_associator_ |
edm::EDGetTokenT< std::vector < PileupSummaryInfo > > | vecPileupSummaryInfoToken_ |
bool | verbose_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > | |
typedef CacheContexts< T...> | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T...> | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT < LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDAnalyzerBase | |
typedef EDAnalyzerAdaptorBase | ModuleType |
Static Public Member Functions inherited from DQMEDAnalyzer | |
static std::shared_ptr < dqmDetails::NoCache > | globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *) |
static std::shared_ptr < dqmDetails::NoCache > | globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *) |
static void | globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *) |
static void | globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *) |
Static Public Member Functions inherited from edm::stream::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::stream::EDAnalyzerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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: primary vertex analyzer for events with pile-up
Implementation: <Notes on="" implementation>="">
Definition at line 60 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Definition at line 61 of file PrimaryVertexAnalyzer4PUSlimmed.h.
|
private |
Enumerator | |
---|---|
HIGHEST_PT | |
IS_ASSOC2FIRST_RECO | |
IS_ASSOC2ANY_RECO |
Definition at line 63 of file PrimaryVertexAnalyzer4PUSlimmed.h.
|
explicit |
Definition at line 25 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References edm::ParameterSet::getParameter(), HLT_25ns14e33_v1_cff::InputTag, prof2calltree::l, reco_vertex_collection_tokens_, reco_vertex_collections_, recoTrackToTrackingParticleAssociatorToken_, and use_TP_associator_.
PrimaryVertexAnalyzer4PUSlimmed::~PrimaryVertexAnalyzer4PUSlimmed | ( | ) |
Definition at line 61 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
|
virtual |
Implements edm::stream::EDAnalyzerBase.
Definition at line 953 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References reco::TrackToTrackingParticleAssociator::associateRecoToSim(), reco::TrackToTrackingParticleAssociator::associateSimToReco(), associatorByHits_, begin, computePairDistance(), gather_cfg::cout, edmView_recoTrack_Token_, end, HcalObjRepresent::Fill(), fillGenAssociatedRecoVertexHistograms(), fillGenericGenVertexHistograms(), fillRecoAssociatedGenVertexHistograms(), spr::find(), edm::Event::getByToken(), getRecoPVs(), getSimPVs(), HIGHEST_PT, IS_ASSOC2ANY_RECO, IS_ASSOC2FIRST_RECO, diffTwoXMLs::label, matchReco2SimVertices(), matchSim2RecoVertices(), mes_, AlCaHLTBitMon_ParallelJobs::p, edm::Handle< T >::product(), r2s_, dt_dqm_sourceclient_common_cff::reco, reco_vertex_collection_tokens_, reco_vertex_collections_, recoTrackCollectionToken_, recoTrackToTrackingParticleAssociatorToken_, resetSimPVAssociation(), s2r_, AlCaHLTBitMon_QueryRunRegistry::string, trackingParticleCollectionToken_, trackingVertexCollectionToken_, use_TP_associator_, findQualityFiles::v, vecPileupSummaryInfoToken_, and verbose_.
|
overridevirtual |
Implements DQMEDAnalyzer.
Definition at line 66 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DQMStore::IBooker::bookProfile(), prof2calltree::l, diffTwoXMLs::label, mes_, reco_vertex_collections_, root_folder_, DQMStore::IBooker::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 1186 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References funct::abs(), MonitorElement::Fill(), i, j, and detailsBasic3DVector::z.
Referenced by analyze().
|
private |
Definition at line 531 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::closest_vertex_distance_z, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::DUPLICATE, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::kind_of_vertex, diffTwoXMLs::label, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::MATCHED, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::MERGED, mes_, reco::Vertex::ndof(), PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::nRecoTrk, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::ptsq, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::r, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::recVtx, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::sim_vertices, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::sim_vertices_internal, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::x, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::y, and PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::z.
Referenced by analyze().
|
private |
Definition at line 471 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::closest_vertex_distance_z, EncodedEventId::event(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::eventId, mes_, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::nGenTrk, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::ptsq, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::r, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::x, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::y, and PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::z.
Referenced by analyze().
|
private |
Definition at line 495 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::closest_vertex_distance_z, diffTwoXMLs::label, mes_, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::nGenTrk, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::ptsq, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::r, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::rec_vertices, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::x, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::y, and PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::z.
Referenced by analyze().
|
private |
Definition at line 768 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References gather_cfg::cout, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::nRecoTrk, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::ptsq, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::recVtx, findQualityFiles::v, and verbose_.
Referenced by analyze().
|
private |
Definition at line 606 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References assert(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::average_match_quality, gather_cfg::cout, alignCSCRings::e, edm::AssociationMap< Tag >::end(), event(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::eventId, edm::AssociationMap< Tag >::find(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::nGenTrk, NULL, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::num_matched_reco_tracks, benchmark_cfg::pdgId, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::ptot, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::ptsq, s2r_, use_only_charged_tracks_, findQualityFiles::v, and verbose_.
Referenced by analyze().
|
private |
Definition at line 897 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References abs_z_match_, gather_cfg::cout, sigma_z_match_, findQualityFiles::v, and verbose_.
Referenced by analyze().
|
private |
Definition at line 851 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References abs_z_match_, gather_cfg::cout, sigma_z_match_, findQualityFiles::v, and verbose_.
Referenced by analyze().
|
private |
Definition at line 841 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References findQualityFiles::v.
Referenced by analyze().
|
private |
Definition at line 163 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by matchReco2SimVertices(), and matchSim2RecoVertices().
|
private |
Definition at line 172 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 178 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 166 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), bookHistograms(), fillGenAssociatedRecoVertexHistograms(), fillGenericGenVertexHistograms(), and fillRecoAssociatedGenVertexHistograms().
|
private |
Definition at line 167 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 175 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), and PrimaryVertexAnalyzer4PUSlimmed().
|
private |
Definition at line 176 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), bookHistograms(), and PrimaryVertexAnalyzer4PUSlimmed().
|
private |
Definition at line 177 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 181 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), and PrimaryVertexAnalyzer4PUSlimmed().
|
private |
Definition at line 164 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by bookHistograms().
|
private |
Definition at line 168 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), and getSimPVs().
|
private |
Definition at line 162 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by matchReco2SimVertices(), and matchSim2RecoVertices().
|
private |
Definition at line 179 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 180 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 160 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by getSimPVs().
|
private |
Definition at line 161 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), and PrimaryVertexAnalyzer4PUSlimmed().
|
private |
Definition at line 174 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 159 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), getRecoPVs(), getSimPVs(), matchReco2SimVertices(), and matchSim2RecoVertices().