#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "DataFormats/MuonReco/interface/Muon.h"
#include "DataFormats/MuonReco/interface/MuonFwd.h"
#include "DataFormats/HepMCCandidate/interface/GenParticle.h"
#include "DataFormats/HepMCCandidate/interface/GenParticleFwd.h"
#include "DataFormats/Candidate/interface/Candidate.h"
#include "DataFormats/Math/interface/deltaR.h"
#include "TrackingTools/TrackAssociator/interface/TrackDetectorAssociator.h"
#include "TrackingTools/TrackAssociator/interface/TrackAssociatorParameters.h"
#include "TrackingTools/TrackAssociator/interface/TrackDetMatchInfo.h"
#include "HepMC/IO_HEPEVT.h"
Go to the source code of this file.
Variables | |
const double | DENSITY_BRASS = 8.53 |
const double | DENSITY_IRON = 7.87 |
const double | DENSITY_PBWO4 = 8.28 |
void compGenMuonP4afterRad | ( | const reco::GenParticle * | , |
reco::Candidate::LorentzVector & | |||
) |
Definition at line 285 of file embeddingAuxFunctions.cc.
References compGenParticleP4afterRad().
Referenced by GenMuonRadCorrAnalyzer::analyze().
void compGenTauP4afterRad | ( | const reco::GenParticle * | , |
reco::Candidate::LorentzVector & | |||
) |
Definition at line 290 of file embeddingAuxFunctions.cc.
References compGenParticleP4afterRad().
const reco::GenParticle* findGenParticleForMCEmbedding | ( | const reco::Candidate::LorentzVector & | , |
const reco::GenParticleCollection & | , | ||
double | , | ||
int | , | ||
const std::vector< int > * | , | ||
bool | |||
) |
Definition at line 215 of file embeddingAuxFunctions.cc.
References deltar::bestMatch(), reco::deltaR(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, reco::LeafCandidate::energy(), SingleMuPt40Fwdv2_cfi_GEN_SIM::pdgId, and mps_update::status.
Referenced by GenMuonRadCorrAnalyzer::analyze().
void findMuons | ( | const edm::Event & | , |
const edm::InputTag & | , | ||
reco::Candidate::LorentzVector & | , | ||
bool & | , | ||
reco::Candidate::LorentzVector & | , | ||
bool & | |||
) |
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 | ) |
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(), and reco::CompositeCandidate::numberOfDaughters().
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 > & | ) |
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 > & | ) |
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 & | , |
const edm::EventSetup & | , | ||
TrackDetectorAssociator & | , | ||
const TrackAssociatorParameters & | , | ||
const reco::Candidate * | |||
) |
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 | , |
uint32_t | |||
) |
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(), CSCDetId::station(), RPCDetId::station(), DetId::subdetId(), and DTChamberId::wheel().
void printMuonDetId | ( | const edm::EventSetup & | , |
uint32_t | |||
) |
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(), CSCDetId::station(), RPCDetId::station(), DetId::subdetId(), RPCDetId::subsector(), and DTChamberId::wheel().
Referenced by MuonDetRecHitMixer< T1, T2 >::printHitMapRH().
void repairBarcodes | ( | HepMC::GenEvent * | ) |
Definition at line 195 of file embeddingAuxFunctions.cc.
References HLT_25ns10e33_v2_cff::vertices.
Referenced by ParticleReplacerZtautau::cleanEvent(), GenMuonRadiationAlgorithm::compFSR(), and ParticleReplacerZtautau::produce().
const double DENSITY_BRASS = 8.53 |
Definition at line 55 of file embeddingAuxFunctions.h.
Referenced by MuonCaloCleanerByDistance::fillEnergyDepositMap(), and L1ExtraMEtMixerPlugin::produce().
const double DENSITY_IRON = 7.87 |
Definition at line 56 of file embeddingAuxFunctions.h.
Referenced by MuonCaloCleanerByDistance::fillEnergyDepositMap().
const double DENSITY_PBWO4 = 8.28 |
Definition at line 54 of file embeddingAuxFunctions.h.
Referenced by MuonCaloCleanerByDistance::fillEnergyDepositMap(), and L1ExtraMEtMixerPlugin::produce().