#include <MuonTCMETValueMapProducer.h>
Public Member Functions | |
MuonTCMETValueMapProducer (const edm::ParameterSet &) | |
~MuonTCMETValueMapProducer () | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Member Functions | |
bool | isGoodCaloMuon (const reco::Muon *, const unsigned int) |
bool | isGoodMuon (const reco::Muon *) |
bool | isGoodTrack (const reco::Muon *) |
bool | isValidVertex () |
int | nLayers (const reco::TrackRef) |
virtual void | produce (edm::Event &, const edm::EventSetup &) override |
class TVector3 | propagateTrack (const reco::Muon *) |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T...> | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T...> | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT < LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, 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 ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Definition at line 41 of file MuonTCMETValueMapProducer.h.
|
explicit |
Definition at line 48 of file MuonTCMETValueMapProducer.cc.
References beamSpotToken_, d0cuta_, d0cutb_, edm::ParameterSet::getParameter(), TCMETAlgo::getResponseFunction_fit(), TCMETAlgo::getResponseFunction_mode(), maxchi2_, maxchi2_tight_, maxd0cut_, maxeta_, maxpt_, maxpt_eta20_, maxpt_eta25_, maxPtErr_, maxPtErr_tight_, maxTrackAlgo_, minhits_, minhits_tight_, minpt_, muon_dptrel_, muonchi2_, muond0_, muonDeltaR_, muoneta_, muonGlobal_, muonhits_, muonMinValidStaHits_, muonpt_, muonToken_, muonTracker_, nLayers_, nLayersTight_, response_function, rfType_, tcmetAlgo_, trkAlgos_, trkQuality_, useCaloMuons_, usePvtxd0_, vertexMaxDZ_, vertexNdof_, vertexRho_, vertexToken_, and vertexZ_.
MuonTCMETValueMapProducer::~MuonTCMETValueMapProducer | ( | ) |
Definition at line 109 of file MuonTCMETValueMapProducer.cc.
References tcmetAlgo_.
|
private |
Definition at line 233 of file MuonTCMETValueMapProducer.cc.
References funct::cos(), HLTFastRecoForTau_cff::deltaEta, SiPixelRawToDigiRegional_cfi::deltaPhi, deltaR(), edm::Ref< C, T, F >::get(), reco::Muon::innerTrack(), isGoodTrack(), edm::Ref< C, T, F >::isNonnull(), RPCpg::mu, muonDeltaR_, muons_, and reco::LeafCandidate::pt().
Referenced by produce().
|
private |
Definition at line 194 of file MuonTCMETValueMapProducer.cc.
References beamSpot_, reco::LeafCandidate::eta(), reco::Muon::globalTrack(), reco::Muon::innerTrack(), reco::Muon::isGlobalMuon(), edm::Ref< C, T, F >::isNonnull(), reco::Muon::isTrackerMuon(), edm::HandleBase::isValid(), muon_dptrel_, muonchi2_, muond0_, muoneta_, muonGlobal_, muonhits_, muonMinValidStaHits_, muonpt_, muonTracker_, and reco::LeafCandidate::pt().
Referenced by produce().
|
private |
Definition at line 266 of file MuonTCMETValueMapProducer.cc.
References beamSpot_, GOODCOLL_filter_cfg::cut, d0cuta_, d0cutb_, hasValidVertex, i, reco::Muon::innerTrack(), edm::Ref< C, T, F >::isNonnull(), edm::HandleBase::isValid(), maxchi2_, maxchi2_tight_, maxd0cut_, maxeta_, maxpt_, maxpt_eta20_, maxpt_eta25_, maxPtErr_, maxPtErr_tight_, maxTrackAlgo_, minhits_, minhits_tight_, nLayers(), nLayers_, nLayersTight_, funct::pow(), mathSSE::sqrt(), trkAlgos_, trkQuality_, vertexMaxDZ_, and vertices_.
Referenced by isGoodCaloMuon(), and produce().
|
private |
Definition at line 428 of file MuonTCMETValueMapProducer.cc.
References funct::pow(), mathSSE::sqrt(), vertexNdof_, vertexRho_, vertexZ_, and vertices_.
Referenced by produce().
|
private |
Definition at line 421 of file MuonTCMETValueMapProducer.cc.
References AlCaHLTBitMon_ParallelJobs::p, and reco::HitPattern::trackerLayersWithMeasurement().
Referenced by isGoodTrack().
|
overrideprivatevirtual |
Implements edm::stream::EDProducerBase.
Definition at line 115 of file MuonTCMETValueMapProducer.cc.
References beamSpot_, beamSpotToken_, bField, funct::cos(), edm::helper::Filler< Map >::fill(), edm::EventSetup::get(), edm::Event::getByToken(), hasValidVertex, reco::Muon::innerTrack(), edm::helper::Filler< Map >::insert(), reco::Muon::isCaloMuon(), reco::Muon::isGlobalMuon(), isGoodCaloMuon(), isGoodMuon(), isGoodTrack(), reco::Muon::isTrackerMuon(), edm::HandleBase::isValid(), isValidVertex(), minpt_, RPCpg::mu, reco::MuonMETCorrectionData::MuonCandidateValuesUsed, muons_, muonToken_, reco::MuonMETCorrectionData::NotUsed, edm::Handle< T >::product(), edm::ESHandle< class >::product(), propagateTrack(), edm::Event::put(), response_function, funct::sin(), reco::MuonMETCorrectionData::TreatedAsPion, useCaloMuons_, usePvtxd0_, vertexHandle_, vertexToken_, and vertices_.
|
private |
Definition at line 362 of file MuonTCMETValueMapProducer.cc.
References alongMomentum, Reference_intrackfit_cff::barrel, bField, Cylinder::build(), newFWLiteAna::build, edm::Ref< C, T, F >::get(), TrajectoryStateOnSurface::globalPosition(), reco::Muon::innerTrack(), edm::Ref< C, T, F >::isNonnull(), TrajectoryStateOnSurface::isValid(), M_PI, Pi, Propagator::propagate(), CosmicsPD_Skims::radius, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by produce().
|
private |
Definition at line 53 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodMuon(), isGoodTrack(), and produce().
|
private |
Definition at line 57 of file MuonTCMETValueMapProducer.h.
Referenced by MuonTCMETValueMapProducer(), and produce().
|
private |
Definition at line 60 of file MuonTCMETValueMapProducer.h.
Referenced by produce(), and propagateTrack().
|
private |
Definition at line 91 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 92 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 69 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and produce().
|
private |
Definition at line 84 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 88 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 87 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 83 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 82 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 79 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 78 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 86 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 90 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 80 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 85 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 89 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 81 of file MuonTCMETValueMapProducer.h.
Referenced by MuonTCMETValueMapProducer(), and produce().
|
private |
Definition at line 104 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodMuon(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 100 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodMuon(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 102 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodMuon(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 103 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodCaloMuon(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 99 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodMuon(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 66 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodMuon(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 101 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodMuon(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 97 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodMuon(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 98 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodMuon(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 52 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodCaloMuon(), and produce().
|
private |
Definition at line 56 of file MuonTCMETValueMapProducer.h.
Referenced by MuonTCMETValueMapProducer(), and produce().
|
private |
Definition at line 67 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodMuon(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 72 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 73 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 64 of file MuonTCMETValueMapProducer.h.
Referenced by MuonTCMETValueMapProducer(), and produce().
|
private |
Definition at line 71 of file MuonTCMETValueMapProducer.h.
Referenced by MuonTCMETValueMapProducer().
|
private |
Definition at line 105 of file MuonTCMETValueMapProducer.h.
Referenced by MuonTCMETValueMapProducer(), and ~MuonTCMETValueMapProducer().
|
private |
Definition at line 95 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 94 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 68 of file MuonTCMETValueMapProducer.h.
Referenced by MuonTCMETValueMapProducer(), and produce().
|
private |
Definition at line 93 of file MuonTCMETValueMapProducer.h.
Referenced by MuonTCMETValueMapProducer(), and produce().
|
private |
Definition at line 54 of file MuonTCMETValueMapProducer.h.
Referenced by produce().
|
private |
Definition at line 77 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 74 of file MuonTCMETValueMapProducer.h.
Referenced by isValidVertex(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 76 of file MuonTCMETValueMapProducer.h.
Referenced by isValidVertex(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 58 of file MuonTCMETValueMapProducer.h.
Referenced by MuonTCMETValueMapProducer(), and produce().
|
private |
Definition at line 75 of file MuonTCMETValueMapProducer.h.
Referenced by isValidVertex(), and MuonTCMETValueMapProducer().
|
private |
Definition at line 62 of file MuonTCMETValueMapProducer.h.
Referenced by isGoodTrack(), isValidVertex(), and produce().