|
| HLTScoutingMuonProducer (const edm::ParameterSet &) |
|
| ~HLTScoutingMuonProducer () override |
|
| EDProducer ()=default |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsStreamLuminosityBlocks () const final |
|
bool | wantsStreamRuns () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducerBase () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
std::vector< bool > const & | recordProvenanceList () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
TypeLabelList const & | typeLabelList () const |
| used by the fwk to register the list of products of this module More...
|
|
| ~ProducerBase () noexcept(false) override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducerBase | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces () |
| declare what type of product will make and with which optional label More...
|
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<BranchType B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<Transition B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
ProducesCollector | producesCollector () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Implements edm::global::EDProducerBase.
Definition at line 45 of file HLTScoutingMuonProducer.cc.
80 std::pair<reco::RecoChargedCandidate, reco::RecoChargedCandidate> ivtxMuPair;
81 std::vector<std::pair<reco::RecoChargedCandidate, reco::RecoChargedCandidate>> vtxMuPair;
87 if (!dispvtx.isValid())
90 if ((dispvtx.chi2() >= 0.0) && (dispvtx.ndof() > 0))
91 vtxProb = TMath::Prob(dispvtx.chi2(), dispvtx.ndof());
96 auto trackIt = dispvtx.tracks_begin();
103 for (
auto const&
cand : *ChargedCandidateCollection) {
105 if (tkRef == vertextkRef1) {
106 ivtxMuPair.first =
cand;
109 if (tkRef == vertextkRef2) {
110 ivtxMuPair.second =
cand;
116 vtxMuPair.push_back(ivtxMuPair);
118 dispVertices->emplace_back(dispvtx.x(),
124 dispvtx.tracksSize(),
132 std::vector<int> vtxInd;
133 float minDR2 = 1
e-06;
140 for (
auto&
muon : *ChargedCandidateCollection) {
156 if (
track->pt() != 0)
157 dPt = dPt /
track->pt();
159 if (dR2 < 0.02 * 0.02 and dPt < 0.001) {
161 validmuhit = staTrack->hitPattern().numberOfValidMuonHits();
162 matchedsta = staTrack->hitPattern().muonStationsWithValidHits();
171 double ecalisopf = -1.0;
173 ecalisopf = (*EcalPFClusterIsoMap)[muonRef];
176 double hcalisopf = -1.0;
178 hcalisopf = (*HcalPFClusterIsoMap)[muonRef];
181 vtxInd.reserve(vtxMuPair.size());
182 for (
unsigned int i = 0;
i < vtxMuPair.size();
i++) {
185 if ((dr2_1 < minDR2) || (dr2_2 < minDR2))
189 outMuons->emplace_back(
muon.pt(),
195 (*TrackIsoMap)[muonRef],
202 track->hitPattern().numberOfValidPixelHits(),
204 track->hitPattern().trackerLayersWithMeasurement(),
206 track->hitPattern().numberOfValidStripHits(),
214 track->qoverpError(),
215 track->lambdaError(),
References funct::abs(), ChargedCandidateCollection_, reco::deltaR2(), HLTMuonOfflineAnalyzer_cfi::deltaR2, HLT_2018_cff::displacedvertexCollection, displacedvertexCollection_, MillePedeFileConverter_cfg::e, HLT_2018_cff::EcalPFClusterIsoMap, EcalPFClusterIsoMap_, reco::TrackBase::eta(), dqmdumpme::first, edm::getRef(), HLT_2018_cff::HcalPFClusterIsoMap, HcalPFClusterIsoMap_, mps_fire::i, iEvent, edm::Ref< C, T, F >::isAvailable(), edm::Ref< C, T, F >::isNull(), MainPageGenerator::link, electronStore::links, linkToken_, minVtxProbCut, eostools::move(), muonEtaCut, muonPtCut, reco::TrackBase::phi(), reco::TrackBase::pt(), edm::second(), HLT_2018_cff::track, TrackCollection_, HLT_2018_cff::TrackIsoMap, and TrackIsoMap_.