|
|
Go to the documentation of this file.
66 muonLowPtMvaEstimator_ = std::make_unique<MuonMvaEstimator>(mvaLowPtTrainingFile,
mvaDrMax);
76 : relMiniIsoPUCorrected_(0),
77 useUserData_(iConfig.exists(
"userData")),
78 computeMuonMVA_(
false),
79 computeSoftMuonMVA_(
false),
80 recomputeBasicSelectors_(
false),
82 isolator_(iConfig.exists(
"userIsolation") ? iConfig.getParameter<
edm::
ParameterSet>(
"userIsolation")
126 iConfig.
getParameter<std::vector<edm::InputTag>>(
"genParticleMatch"),
127 [
this](
edm::InputTag const&
tag) { return consumes<edm::Association<reco::GenParticleCollection>>(tag); });
182 throw cms::Exception(
"ParameterError") <<
"miniIsoParams must have exactly 9 elements.\n";
191 throw cms::Exception(
"ConfigurationError") <<
"MiniIso is needed for Muon MVA calculation.\n";
216 produces<std::vector<Muon>>();
223 const DetId& chamberId) {
225 if (chamberGeometry) {
226 LocalPoint localPosition(chamberMatch.
x, chamberMatch.
y, 0);
227 return std::optional<GlobalPoint>(std::in_place, chamberGeometry->
toGlobal(localPosition));
229 return std::optional<GlobalPoint>();
241 std::optional<GlobalPoint> muonPosition;
246 for (
const auto& chamberMatch : aMuon.
matches()) {
249 if (
abs(detId.station()) > 3)
252 if (
abs(detId.station()) == 2)
256 CSCDetId detId(chamberMatch.id.rawId());
257 if (
abs(detId.station()) > 3)
260 if (
abs(detId.station()) == 2)
264 if (not muonPosition)
268 if (fabs(triggerObject.eta()) < 0.001) {
270 if (
deltaPhi(triggerObject.phi(), muonPosition->phi()) > 0.1)
274 if (
deltaR(triggerObject.p4(), *muonPosition) > 0.15)
287 const std::vector<std::string>& collection_filter_names) {
293 for (
const auto&
name : collection_filter_names) {
294 if (triggerObject.hasCollection(
name)) {
305 muon.addTriggerObjectMatch(
obj);
315 throw cms::Exception(
"FatalError") <<
"Unable to find GlobalTrackingGeometryRecord in event!\n";
318 if (
iEvent.isRealData()) {
392 bool beamSpotIsValid =
false;
393 bool primaryVertexIsValid =
false;
403 if (beamSpotHandle.
isValid()) {
405 beamSpotIsValid =
true;
407 edm::LogError(
"DataNotAvailable") <<
"No beam spot available from EventSetup, not adding high level selection \n";
409 if (pvHandle.
isValid() && !pvHandle->empty()) {
411 primaryVertexIsValid =
true;
414 <<
"No primary vertex available from EventSetup, not adding high level selection \n";
425 std::vector<Muon>*
patMuons =
new std::vector<Muon>();
440 Muon aMuon(muonBaseRef);
455 chosenTrack = bestTrack;
458 unsigned int nhits = chosenTrack->numberOfValidHits();
484 (*PUPPIIsolation_neutral_hadrons)[muonBaseRef],
485 (*PUPPIIsolation_photons)[muonBaseRef]);
488 (*PUPPINoLeptonsIsolation_neutral_hadrons)[muonBaseRef],
489 (*PUPPINoLeptonsIsolation_photons)[muonBaseRef]);
532 unsigned int idx = itMuon -
muons->begin();
542 (*PUPPIIsolation_neutral_hadrons)[muonRef],
543 (*PUPPIIsolation_photons)[muonRef]);
545 (*PUPPINoLeptonsIsolation_neutral_hadrons)[muonRef],
546 (*PUPPINoLeptonsIsolation_photons)[muonRef]);
586 chosenTrack = bestTrack;
588 unsigned int nhits = chosenTrack->numberOfValidHits();
612 if (pfmu.muonRef().isNonnull()) {
613 if (pfmu.muonRef().id() != muonRef.id())
615 <<
"Muon reference within PF candidates does not point to the muon collection." << std::endl;
616 if (pfmu.muonRef().key() == muonRef.key()) {
635 if (simInfoIsAvailalbe) {
636 const auto& msi = (*simInfo)[muonBaseRef];
667 if (primaryVertexIsValid)
672 bool triggerObjectsAvailable =
false;
673 bool triggerResultsAvailable =
false;
688 muon.setSelectors(0);
689 bool isRun2016BCDEF = (272728 <=
iEvent.run() &&
iEvent.run() <= 278808);
692 float miniIsoValue = -1;
704 double puppiCombinedIsolationPAT = -1;
712 float jetPtRatio = 0.0;
713 float jetPtRel = 0.0;
715 float mva_lowpt = 0.0;
718 mva = globalCache()->muonMvaEstimator()->computeMva(
muon,
720 *(mvaBTagCollectionTag.
product()),
726 mva_lowpt = globalCache()->muonLowPtMvaEstimator()->computeMva(
muon,
728 *(mvaBTagCollectionTag.
product()),
736 mva = globalCache()->muonMvaEstimator()->computeMva(
738 mva_lowpt = globalCache()->muonLowPtMvaEstimator()->computeMva(
743 muon.setLowPtMvaValue(mva_lowpt);
744 muon.setJetPtRatio(jetPtRatio);
745 muon.setJetPtRel(jetPtRel);
750 miniIsoValue < 0.11 && (
muon.jetPtRatio() > 0.74 ||
muon.jetPtRel() > 6.8));
758 double sip3D = edB3D > 0 ? dB3D / edB3D : 0.0;
763 dB2D < 0.05 and
dz < 0.1) {
770 if (
muon.pt() > 5 and
muon.isLooseMuon() and sip3D < 4 and dB2D < 0.5 and
dz < 1) {
778 float mva = globalCache()->softMuonMvaEstimator()->computeMva(
muon);
786 std::unique_ptr<std::vector<Muon>> ptr(
patMuons);
831 for (
size_t i = 0,
n = genMatches.size();
i <
n; ++
i) {
842 for (
size_t j = 0, nd =
deposits.size();
j < nd; ++
j) {
901 double dR_threshold = 0.4;
902 double dR2_threshold = dR_threshold * dR_threshold;
903 double mix_fraction = 0.5;
905 double val_PuppiWithLep = 0.0;
906 double val_PuppiWithoutLep = 0.0;
908 for (
const auto&
cand : *pc) {
912 if (pType ==
OTHER) {
914 LogTrace(
"PATMuonProducer") <<
"candidate with PDGID = " <<
cand.pdgId()
915 <<
" is not CH/NH/PH/e/mu or 1/2 (and this is removed from isolation calculation)"
921 if (d_eta > dR_threshold)
925 if (d_phi > dR_threshold)
929 if (dR2 > dR2_threshold)
931 if (pType ==
CH && dR2 < 0.0001 * 0.0001)
933 if (pType == NH && dR2 < 0.01 * 0.01)
935 if (pType == PH && dR2 < 0.01 * 0.01)
937 val_PuppiWithLep +=
cand.pt() *
cand.puppiWeight();
938 val_PuppiWithoutLep +=
cand.pt() *
cand.puppiWeightNoLep();
942 double reliso_Puppi_withLep = val_PuppiWithLep /
muon.pt();
943 double reliso_Puppi_withoutlep = val_PuppiWithoutLep /
muon.pt();
944 double reliso_Puppi_combined = mix_fraction * reliso_Puppi_withLep + (1.0 - mix_fraction) * reliso_Puppi_withoutlep;
945 return reliso_Puppi_combined;
963 iDesc.
add<
bool>(
"embedMuonBestTrack",
true)->setComment(
"embed muon best track (global pflow)");
964 iDesc.
add<
bool>(
"embedTunePMuonBestTrack",
true)->setComment(
"embed muon best track (muon only)");
965 iDesc.
add<
bool>(
"forceBestTrackEmbedding",
true)
967 "force embedding separately the best tracks even if they're already embedded e.g. as tracker or global "
969 iDesc.
add<
bool>(
"embedTrack",
true)->setComment(
"embed external track");
970 iDesc.
add<
bool>(
"embedStandAloneMuon",
true)->setComment(
"embed external stand-alone muon");
971 iDesc.
add<
bool>(
"embedCombinedMuon",
false)->setComment(
"embed external combined muon");
972 iDesc.
add<
bool>(
"embedPickyMuon",
false)->setComment(
"embed external picky track");
973 iDesc.
add<
bool>(
"embedTpfmsMuon",
false)->setComment(
"embed external tpfms track");
974 iDesc.
add<
bool>(
"embedDytMuon",
false)->setComment(
"embed external dyt track ");
977 iDesc.
add<
bool>(
"embedCaloMETMuonCorrs",
true)->setComment(
"whether to add MET muon correction for caloMET or not");
979 ->setComment(
"source of MET muon corrections for caloMET");
980 iDesc.
add<
bool>(
"embedTcMETMuonCorrs",
true)->setComment(
"whether to add MET muon correction for tcMET or not");
982 ->setComment(
"source of MET muon corrections for tcMET");
986 iDesc.
add<
bool>(
"useParticleFlow",
false)->setComment(
"whether to use particle flow or not");
987 iDesc.
add<
bool>(
"embedPFCandidate",
false)->setComment(
"embed external particle flow object");
988 iDesc.
add<
bool>(
"embedPfEcalEnergy",
true)->setComment(
"add ecal energy as reconstructed by PF");
991 iDesc.
add<
bool>(
"addInverseBeta",
true)->setComment(
"add combined inverse beta");
993 ->setComment(
"source of inverse beta values");
996 iDesc.
add<
bool>(
"addGenMatch",
true)->setComment(
"add MC matching");
997 iDesc.
add<
bool>(
"embedGenMatch",
false)->setComment(
"embed MC matched MC information");
998 std::vector<edm::InputTag> emptySourceVector;
1002 ->
setComment(
"input with MC match information");
1005 iDesc.
add<
bool>(
"computeMiniIso",
false)->setComment(
"whether or not to compute and store electron mini-isolation");
1006 iDesc.
add<
bool>(
"computePuppiCombinedIso",
false)
1007 ->setComment(
"whether or not to compute and store puppi combined isolation");
1010 ->setComment(
"collection to use to compute mini-iso");
1011 iDesc.
add<std::vector<double>>(
"miniIsoParams", std::vector<double>())
1012 ->setComment(
"mini-iso parameters to use for muons");
1014 iDesc.
add<
bool>(
"addTriggerMatching",
false)->setComment(
"add L1 and HLT matching to offline muon");
1029 isoDepositsPSet.
addOptional<std::vector<edm::InputTag>>(
"user");
1030 iDesc.
addOptional(
"isoDeposits", isoDepositsPSet);
1043 iDesc.
addOptional(
"isolationValues", isolationValuesPSet);
1047 "puppiIsolationChargedHadrons",
1048 edm::InputTag(
"muonPUPPIIsolation",
"h+-DR030-ThresholdVeto000-ConeVeto000"),
1051 "puppiIsolationNeutralHadrons",
1052 edm::InputTag(
"muonPUPPIIsolation",
"h0-DR030-ThresholdVeto000-ConeVeto001"),
1055 "puppiIsolationPhotons",
1056 edm::InputTag(
"muonPUPPIIsolation",
"gamma-DR030-ThresholdVeto000-ConeVeto001"),
1059 "puppiNoLeptonsIsolationChargedHadrons",
1060 edm::InputTag(
"muonPUPPINoLeptonsIsolation",
"h+-DR030-ThresholdVeto000-ConeVeto000"),
1063 "puppiNoLeptonsIsolationNeutralHadrons",
1064 edm::InputTag(
"muonPUPPINoLeptonsIsolation",
"h0-DR030-ThresholdVeto000-ConeVeto001"),
1067 "puppiNoLeptonsIsolationPhotons",
1068 edm::InputTag(
"muonPUPPINoLeptonsIsolation",
"gamma-DR030-ThresholdVeto000-ConeVeto001"),
1075 iDesc.
add(
"efficiencies", efficienciesPSet);
1076 iDesc.
add<
bool>(
"addEfficiencies",
false);
1085 iDesc.
add(
"userIsolation", isolationPSet);
1087 iDesc.
add<
bool>(
"embedHighLevelSelection",
true)->setComment(
"embed high level selection");
1091 ->
setComment(
"input with high level selection");
1093 ->
setComment(
"input with high level selection");
1104 bool primaryVertexIsValid,
1106 bool beamspotIsValid) {
1115 std::pair<bool, Measurement1D>
result =
1117 double d0_corr =
result.second.value();
1118 double d0_err = primaryVertexIsValid ?
result.second.error() : -1.0;
1131 d0_corr =
result.second.value();
1132 d0_err = beamspotIsValid ?
result.second.error() : -1.0;
bool addInverseBeta_
add combined inverse beta measurement into the muon
void embedTpfmsMuon()
embed reference to the above tpfms Track
bool isAValidMuonTrack(const MuonTrackType &type) const
void setSimMatchQuality(float quality)
void fillMuon(Muon &aMuon, const MuonBaseRef &muonRef, const reco::CandidateBaseRef &baseRef, const GenAssociations &genMatches, const IsoDepositMaps &deposits, const IsolationValueMaps &isolationValues) const
common muon filling, for both the standard and PF2PAT case
double getRelMiniIsoPUCorrected(const pat::Muon &muon, double rho, const std::vector< double > &area)
Assists in assimilating all pat::UserData into pat objects.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
GreaterByPt< Muon > pTComparator_
bool embedTrack_
embed the track from inner tracker into the muon
T const * product() const
void addTriggerObjectMatch(const TriggerObjectStandAlone &trigObj)
add a trigger match
bool embedPfEcalEnergy_
add ecal PF energy
void setSimFlavour(int f)
float miniIsoDr(const reco::Candidate::PolarLorentzVector &p4, float mindr, float maxdr, float kt_scale)
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
everything that needs to be done during the event loop
constexpr double deltaPhi(double phi1, double phi2)
double muonRelMiniIsoPUCorrected(const PFIsolation &iso, const reco::Candidate::PolarLorentzVector &p4, double dr, double rho, const std::vector< double > &area)
void embedTcMETMuonCorrs(const reco::MuonMETCorrectionData &t)
Analysis-level trigger object class (stand-alone)
bool embedTunePBestTrack_
embed the track from best muon measurement (muon only)
void fill(const edm::View< T > &coll, int idx, IsolationValuePairs &isolations) const
static void fillDescription(edm::ParameterSetDescription &iDesc)
bool embedPickyMuon_
embed track from picky muon fit into the muon
std::vector< MuonChamberMatch > & matches()
get muon matching information
PFCandidateCollection::const_iterator PFCandidateConstIterator
iterator
void setSimType(reco::MuonSimType type)
static const std::string triggerResults
void setIsolationPUPPI(float chargedhadrons, float neutralhadrons, float photons)
sets PUPPI isolations
void setIsolation(IsolationKeys key, float value)
bool enabled() const
'true' if this there is at least one efficiency configured
pat::helper::MultiIsolator::IsolationValuePairs isolatorTmpStorage_
isolation value pair for temporary storage before being folded into the muon
void embedDytMuon()
embed reference to the above dyt Track
edm::EDGetTokenT< std::vector< pat::TriggerObjectStandAlone > > triggerObjects_
void addGenParticleRef(const reco::GenParticleRef &ref)
std::vector< edm::Handle< edm::Association< reco::GenParticleCollection > > > GenAssociations
edm::EDGetTokenT< reco::JetCorrector > mvaL1L2L3ResCorrector_
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
Analysis-level muon class.
void setIsolationPUPPINoLeptons(float chargedhadrons, float neutralhadrons, float photons)
sets PUPPINoLeptons isolations
void setPFCandidateRef(const reco::PFCandidateRef &ref)
add a reference to the source IsolatedPFCandidate
bool embedDytMuon_
embed track from DYT muon fit into the muon
Global3DVector GlobalVector
void embedMuonBestTrack(bool force=false)
void fillHltTriggerInfo(pat::Muon &muon, edm::Handle< std::vector< pat::TriggerObjectStandAlone >> &triggerObjects, const edm::TriggerNames &names, const std::vector< std::string > &collection_names)
bool recomputeBasicSelectors_
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
void embedCombinedMuon()
set reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon...
std::vector< std::pair< pat::IsolationKeys, float > > IsolationValuePairs
std::vector< edm::EDGetTokenT< edm::ValueMap< double > > > isolationValueTokens_
bool enabled() const
'true' if this there is at least one efficiency configured
bool embedCombinedMuon_
embed track of the combined fit into the muon
bool enabled() const
True if it has a non null configuration.
bool isPhoton(long pdgid)
bool embedGenMatch_
embed the gen match information into the muon
edm::EDGetTokenT< edm::ValueMap< float > > PUPPIIsolation_neutral_hadrons_
primaryVertex
hltOfflineBeamSpot for HLTMON
void setSimPhi(float phi)
IsolationLabels isolationValueLabels_
input source isolation value maps
void setSimHeaviestMotherFlavour(int id)
std::vector< edm::Handle< edm::ValueMap< double > > > IsolationValueMaps
pat::helper::EfficiencyLoader efficiencyLoader_
helper class to add efficiencies to the muon
void setSimProdRho(float rho)
reco::MuonRef muonRef() const
bool useUserData_
add user data to the muon (this will be data members of th muon even w/o embedding)
edm::EDGetTokenT< edm::ValueMap< float > > PUPPIIsolation_charged_hadrons_
#define DEFINE_FWK_MODULE(type)
bool forceEmbedBestTrack_
force separate embed of the best track even if already embedded
void embedStandAloneMuon()
set reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon)
PFIsolation getMiniPFIsolation(const pat::PackedCandidateCollection *pfcands, const reco::Candidate::PolarLorentzVector &p4, float mindr=0.05, float maxdr=0.2, float kt_scale=10.0, float ptthresh=0.5, float deadcone_ch=0.0001, float deadcone_pu=0.01, float deadcone_ph=0.01, float deadcone_nh=0.01, float dZ_cut=0.0)
const std::string names[nVars_]
bool addPuppiIsolation_
add puppi isolation
void embedTrack()
set reference to Track reconstructed in the tracker only (reimplemented from reco::Muon)
void add(ObjectType &patObject, edm::Event const &iEvent, edm::EventSetup const &iSetup)
void newEvent(const edm::Event &event)
To be called for each new event, reads in the ValueMaps for efficiencies.
std::vector< edm::EDGetTokenT< edm::Association< reco::GenParticleCollection > > > genMatchTokens_
input tags for generator match information
bool isNeutralHadron(long pdgid)
void embedPFCandidate()
embed the IsolatedPFCandidate pointed to by pfCandidateRef_
static const std::string source
void setIsoDeposit(IsolationKeys key, const IsoDeposit &dep)
Sets the IsoDeposit associated with some key; if it is already existent, it is overwritten.
bool embedHighLevelSelection_
embed high level selection variables
void setDB(double dB, double edB, IPTYPE type=PV2D)
pat::helper::KinResolutionsLoader resolutionLoader_
helper class to add resolutions to the muon
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
IsolationLabels isoDepositLabels_
input source for isoDeposits
std::optional< GlobalPoint > getMuonDirection(const reco::MuonChamberMatch &chamberMatch, const edm::ESHandle< GlobalTrackingGeometry > &geometry, const DetId &chamberId)
bool isGlobalMuon() const override
void setPfEcalEnergy(float pfEcalEnergy)
void setResolutions(pat::PATObject< T > &obj) const
Sets the efficiencies for this object, using the reference to the original objects.
bool embedTcMETMuonCorrs_
embed muon MET correction info for tcMET into the muon
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
~PATMuonProducer() override
default destructur
void setComment(std::string const &value)
bool isChargedHadron(long pdgid)
void readIsolationLabels(const edm::ParameterSet &iConfig, const char *psetName, IsolationLabels &labels, std::vector< edm::EDGetTokenT< edm::ValueMap< T >>> &tokens)
bool embedPFCandidate_
embed pfCandidates into the muon
edm::EDGetTokenT< edm::ValueMap< float > > PUPPIIsolation_photons_
static void fillDescription(edm::ParameterSetDescription &iDesc)
Method for documentation and validation of PSet.
bool computeMuonMVA_
standard muon selectors
enum start value shifted to 81 so as to avoid clashes with PDG codes
edm::EDGetTokenT< reco::JetCorrector > mvaL1Corrector_
bool isNonnull() const
Checks for non-null.
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
edm::EDGetTokenT< edm::ValueMap< reco::MuonMETCorrectionData > > caloMETMuonCorrsToken_
source of caloMET muon corrections
ParameterDescriptionNode * ifValue(ParameterDescription< T > const &switchParameter, std::unique_ptr< ParameterDescriptionCases< T >> cases)
edm::EDGetTokenT< edm::ValueMap< float > > PUPPINoLeptonsIsolation_charged_hadrons_
edm::EDGetTokenT< std::vector< reco::Vertex > > pvToken_
input source of the primary vertex
bool embedCaloMETMuonCorrs_
embed muon MET correction info for caloMET into the muon
bool embedTpfmsMuon_
embed track from tpfms muon fit into the muon
void setMiniPFIsolation(PFIsolation const &iso)
bool computePuppiCombinedIso_
void setSimMotherPdgId(int id)
ParameterDescriptionNode * addNode(ParameterDescriptionNode const &node)
edm::EDGetTokenT< edm::ValueMap< reco::MuonTimeExtra > > muonTimeExtraToken_
input tag for reading inverse beta
edm::EDGetTokenT< edm::ValueMap< float > > PUPPINoLeptonsIsolation_photons_
bool contains(EventRange const &lh, EventID const &rh)
void setAllowAnything()
allow any parameter label/value pairs
Log< level::Error, false > LogError
bool addEfficiencies_
add efficiencies to the muon (this will be data members of th muon even w/o embedding)
edm::EDGetTokenT< edm::View< reco::Muon > > muonToken_
input source
void newEvent(const edm::Event &event, const edm::EventSetup &setup)
To be called for each new event, reads in the EventSetup object.
edm::EDGetTokenT< reco::PFCandidateCollection > pfMuonToken_
input source pfCandidates that will be to be transformed into pat::Muons, when using PF2PAT
double ecalEnergy() const
return corrected Ecal energy
CH
LTS and SET for low trigger suppression.
reco::Muon::Selector makeSelectorBitset(reco::Muon const &muon, reco::Vertex const *vertex=nullptr, bool run2016_hip_mitigation=false)
std::vector< pat::PackedCandidate > PackedCandidateCollection
bool addResolutions_
add resolutions to the muon (this will be data members of th muon even w/o embedding)
edm::EDGetTokenT< edm::ValueMap< reco::MuonMETCorrectionData > > tcMETMuonCorrsToken_
source of tcMET muon corrections
edm::EDGetTokenT< reco::BeamSpot > beamLineToken_
input source of the primary vertex/beamspot
std::vector< edm::Handle< edm::ValueMap< IsoDeposit > > > IsoDepositMaps
void setP4(const LorentzVector &p4) final
set 4-momentum
edm::EDGetTokenT< edm::ValueMap< reco::MuonSimInfo > > simInfo_
MC info.
void readTimeExtra(const reco::MuonTimeExtra &t)
void setMuonMiniIso(pat::Muon &aMuon, const pat::PackedCandidateCollection *pc)
bool addTriggerMatching_
Trigger.
void beginEvent(const edm::Event &event, const edm::EventSetup &eventSetup)
edm::EDGetTokenT< double > rho_
void setEfficiencies(pat::PATObject< T > &obj, const R &originalRef) const
Sets the efficiencies for this object, using the reference to the original objects.
edm::EDGetTokenT< edm::ValueMap< float > > PUPPINoLeptonsIsolation_neutral_hadrons_
void setSimEta(float eta)
void setNumberOfValidHits(unsigned int numberOfValidHits)
bool addGenMatch_
add generator match information
edm::EDGetTokenT< reco::JetTagCollection > mvaBTagCollectionTag_
void fillL1TriggerInfo(pat::Muon &muon, edm::Handle< std::vector< pat::TriggerObjectStandAlone >> &triggerObjects, const edm::TriggerNames &names, const edm::ESHandle< GlobalTrackingGeometry > &geometry)
std::vector< edm::EDGetTokenT< edm::ValueMap< IsoDeposit > > > isoDepositTokens_
bool useParticleFlow_
switch to use particle flow (PF2PAT) or not
pat::PATUserDataHelper< pat::Muon > userDataHelper_
helper class to add userData to the muon
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
T getParameter(std::string const &) const
void setSimTpEvent(int tpEvent)
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
PATMuonHeavyObjectCache(const edm::ParameterSet &)
void setNormChi2(double normChi2)
PATMuonProducer(const edm::ParameterSet &iConfig, PATMuonHeavyObjectCache const *)
default constructir
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
void embedHighLevel(pat::Muon &aMuon, reco::TrackRef track, reco::TransientTrack &tt, reco::Vertex &primaryVertex, bool primaryVertexIsValid, reco::BeamSpot &beamspot, bool beamspotIsValid)
void embedCaloMETMuonCorrs(const reco::MuonMETCorrectionData &t)
Particle reconstructed by the particle flow algorithm.
reco::TransientTrack build(const reco::Track *p) const
bool embedBestTrack_
embed the track from best muon measurement (global pflow)
Abs< T >::type abs(const T &t)
const PolarLorentzVector & polarP4() const final
four-momentum Lorentz vector
void setExtSimType(reco::ExtendedMuonSimType type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
description of config file parameters
void setComment(std::string const &value)
std::vector< double > miniIsoParams_
bool embedStandAloneMuon_
embed track from muon system into the muon
double puppiCombinedIsolation(const pat::Muon &muon, const pat::PackedCandidateCollection *pc)
void setSimProdZ(float z)
std::vector< std::string > hltCollectionFilters_
void embedPickyMuon()
embed reference to the above picky Track
std::vector< double > effectiveAreaVec_
reco::PFCandidateRef pfCandidateRef() const
void embedTunePMuonBestTrack(bool force=false)
edm::EDGetTokenT< pat::PackedCandidateCollection > pcToken_
pat::helper::MultiIsolator isolator_
helper class to add userdefined isolation values to the muon