CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
embeddingAuxFunctions.cc File Reference
#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.

Functions

void compGenMuonP4afterRad (const reco::GenParticle *mother, reco::Candidate::LorentzVector &muonP4_afterRad)
 
void compGenParticleP4afterRad (const reco::GenParticle *mother, reco::Candidate::LorentzVector &particleP4_afterRad, int absPdgId)
 
void compGenTauP4afterRad (const reco::GenParticle *mother, reco::Candidate::LorentzVector &tauP4_afterRad)
 
const reco::GenParticlefindGenParticleForMCEmbedding (const reco::Candidate::LorentzVector &direction, const reco::GenParticleCollection &genParticles, double dRmax, int status, const std::vector< int > *pdgIds, bool pdgIdStrict)
 
void findMuons (const edm::Event &evt, const edm::InputTag &src, reco::Candidate::LorentzVector &genMuonPlusP4, bool &genMuonPlus_found, reco::Candidate::LorentzVector &genMuonMinusP4, bool &genMuonMinus_found)
 
double getDeDxForPbWO4 (double p)
 
std::vector
< reco::CandidateBaseRef
getSelMuons (const edm::Event &evt, const edm::InputTag &srcSelMuons)
 
reco::CandidateBaseRef getTheMuMinus (const std::vector< reco::CandidateBaseRef > &selMuons)
 
reco::CandidateBaseRef getTheMuPlus (const std::vector< reco::CandidateBaseRef > &selMuons)
 
TrackDetMatchInfo getTrackDetMatchInfo (const edm::Event &evt, const edm::EventSetup &es, TrackDetectorAssociator &trackAssociator, const TrackAssociatorParameters &trackAssociatorParameters, const reco::Candidate *muon)
 
bool matchMuonDetId (uint32_t rawDetId1, uint32_t rawDetId2)
 
void printMuonDetId (const edm::EventSetup &es, uint32_t rawDetId)
 
void repairBarcodes (HepMC::GenEvent *genEvt)
 

Function Documentation

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)
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.

Author
Christian Veelken, LLR
Version
Revision:
1.9
Id:
embeddingAuxFunctions.h,v 1.9 2013/02/05 20:01:19 veelken Exp

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)
reco::CandidateBaseRef getTheMuPlus ( const std::vector< reco::CandidateBaseRef > &  selMuons)
TrackDetMatchInfo getTrackDetMatchInfo ( const edm::Event evt,
const edm::EventSetup es,
TrackDetectorAssociator trackAssociator,
const TrackAssociatorParameters trackAssociatorParameters,
const reco::Candidate muon 
)
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.