#include "TauAnalysis/MCEmbeddingTools/interface/embeddingAuxFunctions.h"
#include "DataFormats/Candidate/interface/CompositeCandidate.h"
#include "DataFormats/Candidate/interface/CompositeCandidateFwd.h"
#include "DataFormats/Common/interface/RefToPtr.h"
#include "DataFormats/Common/interface/View.h"
#include "DataFormats/MuonReco/interface/MuonFwd.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include "Geometry/CSCGeometry/interface/CSCGeometry.h"
#include "DataFormats/MuonDetId/interface/RPCDetId.h"
#include "Geometry/RPCGeometry/interface/RPCGeometry.h"
#include "DataFormats/MuonDetId/interface/DTChamberId.h"
#include "Geometry/DTGeometry/interface/DTGeometry.h"
#include "DataFormats/Common/interface/Handle.h"
#include <iostream>
#include <iomanip>
#include <TGraph.h>
Go to the source code of this file.
void compGenMuonP4afterRad | ( | const reco::GenParticle * | mother, |
reco::Candidate::LorentzVector & | muonP4_afterRad | ||
) |
Definition at line 285 of file embeddingAuxFunctions.cc.
References compGenParticleP4afterRad().
Referenced by GenMuonRadCorrAnalyzer::analyze().
void compGenParticleP4afterRad | ( | const reco::GenParticle * | mother, |
reco::Candidate::LorentzVector & | particleP4_afterRad, | ||
int | absPdgId | ||
) |
Definition at line 271 of file embeddingAuxFunctions.cc.
References funct::abs(), reco::CompositeRefCandidateT< D >::daughterRef(), reco::LeafCandidate::energy(), reco::Candidate::get(), reco::CompositeRefCandidateT< D >::numberOfDaughters(), reco::LeafCandidate::p4(), and reco::LeafCandidate::pdgId().
Referenced by compGenMuonP4afterRad(), and compGenTauP4afterRad().
void compGenTauP4afterRad | ( | const reco::GenParticle * | mother, |
reco::Candidate::LorentzVector & | tauP4_afterRad | ||
) |
Definition at line 290 of file embeddingAuxFunctions.cc.
References compGenParticleP4afterRad().
const reco::GenParticle* findGenParticleForMCEmbedding | ( | const reco::Candidate::LorentzVector & | direction, |
const reco::GenParticleCollection & | genParticles, | ||
double | dRmax, | ||
int | status, | ||
const std::vector< int > * | pdgIds, | ||
bool | pdgIdStrict | ||
) |
Definition at line 215 of file embeddingAuxFunctions.cc.
References deltar::bestMatch(), reco::deltaR(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, reco::LeafCandidate::energy(), benchmark_cfg::pdgId, and ntuplemaker::status.
Referenced by GenMuonRadCorrAnalyzer::analyze().
void findMuons | ( | const edm::Event & | evt, |
const edm::InputTag & | src, | ||
reco::Candidate::LorentzVector & | genMuonPlusP4, | ||
bool & | genMuonPlus_found, | ||
reco::Candidate::LorentzVector & | genMuonMinusP4, | ||
bool & | genMuonMinus_found | ||
) |
Definition at line 295 of file embeddingAuxFunctions.cc.
References edm::Event::getByLabel(), customizeTrackingMonitorSeedNumber::idx, metsig::muon, and patZpeak::muons.
Referenced by MCEmbeddingValidationAnalyzer::analyze(), and MuonRadiationCorrWeightProducer::produce().
double getDeDxForPbWO4 | ( | double | p | ) |
Definition at line 320 of file embeddingAuxFunctions.cc.
References NULL.
Referenced by MuonCaloCleanerByDistance::fillEnergyDepositMap(), and L1ExtraMEtMixerPlugin::produce().
std::vector<reco::CandidateBaseRef> getSelMuons | ( | const edm::Event & | , |
const edm::InputTag & | |||
) |
Define methods to retrieve "the" (= highest Pt) muons of positive and negative charge from the event.
Definition at line 31 of file embeddingAuxFunctions.cc.
References reco::CompositeCandidate::daughter(), Exception, edm::Event::getByLabel(), reco::Candidate::hasMasterClone(), customizeTrackingMonitorSeedNumber::idx, edm::RefToBase< T >::isNull(), edm::InputTag::label(), reco::Candidate::masterClone(), reco::CompositeCandidate::numberOfDaughters(), and python.multivaluedict::sort().
Referenced by GenMuonRadCorrAnalyzer::analyze(), EmbeddingKineReweightNtupleProducer::analyze(), MCEmbeddingValidationAnalyzer::analyze(), MuonRadiationFilter::filter(), PFMuonCaloCleaner::produce(), MuonCaloDistanceProducer::produce(), MuonDetCleaner::produce(), ZmumuEvtSelEffCorrWeightProducer::produce(), MuonPFCandidateCleaner::produce(), MCParticleReplacer::produce(), MuonCaloCleanerByDistance::produce(), MuonCaloCleanerAllCrossed::produce(), and MuonTrackCleanerBase::produceTracks().
reco::CandidateBaseRef getTheMuMinus | ( | const std::vector< reco::CandidateBaseRef > & | selMuons | ) |
Definition at line 86 of file embeddingAuxFunctions.cc.
Referenced by EmbeddingKineReweightNtupleProducer::analyze(), MuonRadiationFilter::filter(), PFMuonCaloCleaner::produce(), MuonCaloDistanceProducer::produce(), ZmumuEvtSelEffCorrWeightProducer::produce(), MuonDetCleaner::produce(), MuonPFCandidateCleaner::produce(), MCParticleReplacer::produce(), MuonCaloCleanerByDistance::produce(), MuonCaloCleanerAllCrossed::produce(), and MuonTrackCleanerBase::produceTracks().
reco::CandidateBaseRef getTheMuPlus | ( | const std::vector< reco::CandidateBaseRef > & | selMuons | ) |
Definition at line 70 of file embeddingAuxFunctions.cc.
Referenced by EmbeddingKineReweightNtupleProducer::analyze(), MuonRadiationFilter::filter(), PFMuonCaloCleaner::produce(), MuonCaloDistanceProducer::produce(), ZmumuEvtSelEffCorrWeightProducer::produce(), MuonDetCleaner::produce(), MuonPFCandidateCleaner::produce(), MCParticleReplacer::produce(), MuonCaloCleanerByDistance::produce(), MuonCaloCleanerAllCrossed::produce(), and MuonTrackCleanerBase::produceTracks().
TrackDetMatchInfo getTrackDetMatchInfo | ( | const edm::Event & | evt, |
const edm::EventSetup & | es, | ||
TrackDetectorAssociator & | trackAssociator, | ||
const TrackAssociatorParameters & | trackAssociatorParameters, | ||
const reco::Candidate * | muon | ||
) |
Definition at line 102 of file embeddingAuxFunctions.cc.
References TrackDetectorAssociator::associate(), reco::Candidate::charge(), reco::Muon::globalTrack(), edm::Ref< C, T, F >::isNonnull(), metsig::muon, reco::Candidate::px(), reco::Candidate::py(), reco::Candidate::pz(), and reco::Candidate::vertex().
Referenced by MuonCaloDistanceProducer::fillDistanceMap(), and MuonCaloCleanerAllCrossed::fillEnergyDepositMap().
bool matchMuonDetId | ( | uint32_t | rawDetId1, |
uint32_t | rawDetId2 | ||
) |
Definition at line 164 of file embeddingAuxFunctions.cc.
References CSCDetId::chamber(), MuonSubdetId::CSC, DetId::det(), MuonSubdetId::DT, CSCDetId::endcap(), DetId::Muon, RPCDetId::region(), RPCDetId::ring(), CSCDetId::ring(), MuonSubdetId::RPC, DTChamberId::sector(), RPCDetId::sector(), DTChamberId::station(), RPCDetId::station(), CSCDetId::station(), DetId::subdetId(), and DTChamberId::wheel().
void printMuonDetId | ( | const edm::EventSetup & | es, |
uint32_t | rawDetId | ||
) |
Definition at line 118 of file embeddingAuxFunctions.cc.
References CSCDetId::chamber(), gather_cfg::cout, MuonSubdetId::CSC, DetId::det(), MuonSubdetId::DT, CSCDetId::endcap(), PV3DBase< T, PVType, FrameType >::eta(), edm::EventSetup::get(), CSCDetId::layer(), RPCDetId::layer(), DetId::Muon, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), GeomDet::position(), RPCDetId::region(), RPCDetId::ring(), CSCDetId::ring(), RPCDetId::roll(), MuonSubdetId::RPC, DTChamberId::sector(), RPCDetId::sector(), DTChamberId::station(), RPCDetId::station(), CSCDetId::station(), DetId::subdetId(), RPCDetId::subsector(), and DTChamberId::wheel().
Referenced by MuonDetRecHitMixer< T1, T2 >::printHitMapRH().
void repairBarcodes | ( | HepMC::GenEvent * | genEvt | ) |
Definition at line 195 of file embeddingAuxFunctions.cc.
References getDQMSummary::iter, and HLT_25ns14e33_v1_cff::vertices.
Referenced by ParticleReplacerZtautau::cleanEvent(), GenMuonRadiationAlgorithm::compFSR(), and ParticleReplacerZtautau::produce().