#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.
void compGenParticleP4afterRad | ( | const reco::GenParticle * | mother, |
reco::Candidate::LorentzVector & | particleP4_afterRad, | ||
int | absPdgId | ||
) |
Definition at line 271 of file embeddingAuxFunctions.cc.
void compGenTauP4afterRad | ( | const reco::GenParticle * | mother, |
reco::Candidate::LorentzVector & | tauP4_afterRad | ||
) |
Definition at line 290 of file embeddingAuxFunctions.cc.
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.
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.
double getDeDxForPbWO4 | ( | double | p | ) |
Definition at line 320 of file embeddingAuxFunctions.cc.
Referenced by MuonCaloCleanerByDistance::fillEnergyDepositMap().
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.
Referenced by PFMuonCaloCleaner::produce(), MuonDetCleaner::produce(), ZmumuEvtSelEffCorrWeightProducer::produce(), MCParticleReplacer::produce(), MuonCaloCleanerByDistance::produce(), and MuonCaloCleanerAllCrossed::produce().
reco::CandidateBaseRef getTheMuMinus | ( | const std::vector< reco::CandidateBaseRef > & | selMuons | ) |
Definition at line 86 of file embeddingAuxFunctions.cc.
Referenced by PFMuonCaloCleaner::produce(), MuonDetCleaner::produce(), ZmumuEvtSelEffCorrWeightProducer::produce(), MCParticleReplacer::produce(), MuonCaloCleanerByDistance::produce(), and MuonCaloCleanerAllCrossed::produce().
reco::CandidateBaseRef getTheMuPlus | ( | const std::vector< reco::CandidateBaseRef > & | selMuons | ) |
Definition at line 70 of file embeddingAuxFunctions.cc.
Referenced by PFMuonCaloCleaner::produce(), MuonDetCleaner::produce(), ZmumuEvtSelEffCorrWeightProducer::produce(), MCParticleReplacer::produce(), MuonCaloCleanerByDistance::produce(), and MuonCaloCleanerAllCrossed::produce().
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.
Referenced by MuonCaloCleanerAllCrossed::fillEnergyDepositMap().
bool matchMuonDetId | ( | uint32_t | rawDetId1, |
uint32_t | rawDetId2 | ||
) |
Definition at line 164 of file embeddingAuxFunctions.cc.
void printMuonDetId | ( | const edm::EventSetup & | es, |
uint32_t | rawDetId | ||
) |
Definition at line 118 of file embeddingAuxFunctions.cc.
void repairBarcodes | ( | HepMC::GenEvent * | genEvt | ) |
Definition at line 195 of file embeddingAuxFunctions.cc.