Create L3MuonTrajectorySeeds from L2 Muons updated at vertex in an outside-in manner. More...
#include <TSGForOIFromL2.h>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::global::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
double | calculateSFFromL2 (const reco::TrackRef track) const |
Calculate the dynamic error SF by analysing the L2. More... | |
void | makeSeedsFromHits (const GeometricSearchDet &layer, const TrajectoryStateOnSurface &tsos, const Propagator &propagatorAlong, edm::ESHandle< Chi2MeasurementEstimatorBase > &estimator, edm::Handle< MeasurementTrackerEvent > &measurementTracker, double errorSF, unsigned int &hitSeedsMade, unsigned int &numSeedsMade, unsigned int &layerCount, std::vector< TrajectorySeed > &out) const |
Find hits on a given layer (TOB or TEC) and create seeds from updated TSOS with hit. More... | |
void | makeSeedsWithoutHits (const GeometricSearchDet &layer, const TrajectoryStateOnSurface &tsos, const Propagator &propagatorAlong, edm::ESHandle< Chi2MeasurementEstimatorBase > &estimator, double errorSF, unsigned int &hitlessSeedsMade, unsigned int &numSeedsMade, std::vector< TrajectorySeed > &out) const |
Create seeds without hits on a given layer (TOB or TEC) More... | |
double | match_Chi2 (const TrajectoryStateOnSurface &tsos1, const TrajectoryStateOnSurface &tsos2) const |
Find compatability between two TSOSs. More... | |
Private Attributes | |
const bool | adjustErrorsDynamicallyForHitless_ |
const bool | adjustErrorsDynamicallyForHits_ |
Whether or not to use an automatically calculated scale-factor value. More... | |
const std::string | estimatorName_ |
Estimator used to find dets and TrajectoryMeasurements. More... | |
const double | eta1_ |
const double | eta2_ |
const double | eta3_ |
const double | eta4_ |
const double | eta5_ |
const double | eta6_ |
const double | eta7_ |
const double | fixedErrorRescalingForHitless_ |
const double | fixedErrorRescalingForHits_ |
Rescale L2 parameter uncertainties (fixed error vs pT, eta) More... | |
const double | maxEtaForTOB_ |
Maximum eta value to activate searching in the TOB. More... | |
const unsigned int | maxHitlessSeeds_ |
Maximum number of hitless seeds for each L2. More... | |
const unsigned int | maxHitSeeds_ |
Maximum number of hitbased seeds for each L2. More... | |
const unsigned int | maxSeeds_ |
Maximum number of seeds for each L2. More... | |
const edm::EDGetTokenT< MeasurementTrackerEvent > | measurementTrackerTag_ |
const double | minEtaForTEC_ |
Minimum eta value to activate searching in the TEC. More... | |
const unsigned int | numL2ValidHitsCutAllEndcap_ |
const unsigned int | numL2ValidHitsCutAllEta_ |
L2 valid hit cuts to decide seed creation by both states. More... | |
const unsigned int | numOfHitsToTry_ |
How many hits to try per layer. More... | |
const unsigned int | numOfLayersToTry_ |
How many layers to try. More... | |
const std::string | propagatorName_ |
Counters and flags for the implementation. More... | |
const double | pT1_ |
pT, eta ranges and scale factor values More... | |
const double | pT2_ |
const double | pT3_ |
const double | SF1_ |
const double | SF2_ |
const double | SF3_ |
const double | SF4_ |
const double | SF5_ |
const double | SF6_ |
const edm::EDGetTokenT< reco::TrackCollection > | src_ |
Labels for input collections. More... | |
const std::string | theCategory_ |
const double | tsosDiff1_ |
Distance of L2 TSOSs before and after updated with vertex. More... | |
const double | tsosDiff2_ |
const std::unique_ptr< TrajectoryStateUpdator > | updator_ |
KFUpdator defined in constructor. More... | |
const bool | useHitLessSeeds_ |
Additional Inherited Members | |
Public Types inherited from edm::global::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::ProducerBase | |
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 () |
Protected Member Functions inherited from edm::EDConsumerBase | |
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 = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () noexcept |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) noexcept |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
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) |
Create L3MuonTrajectorySeeds from L2 Muons updated at vertex in an outside-in manner.
Definition at line 34 of file TSGForOIFromL2.h.
|
explicit |
Definition at line 14 of file TSGForOIFromL2.cc.
|
override |
Definition at line 57 of file TSGForOIFromL2.cc.
|
private |
Calculate the dynamic error SF by analysing the L2.
Definition at line 440 of file TSGForOIFromL2.cc.
References funct::abs(), eta1_, eta2_, eta3_, eta4_, eta5_, eta6_, LogTrace, pT1_, pT2_, pT3_, SF1_, SF2_, SF3_, SF4_, SF5_, SF6_, theCategory_, and HLT_FULL_cff::track.
Referenced by produce().
|
static |
Definition at line 509 of file TSGForOIFromL2.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Find hits on a given layer (TOB or TEC) and create seeds from updated TSOS with hit.
Definition at line 363 of file TSGForOIFromL2.cc.
References MeasurementDetWithData::fastMeasurements(), newFWLiteAna::found, MeasurementDetWithData::isNull(), TrajectoryStateOnSurface::isValid(), phase1PixelTopology::layer, LogTrace, maxHitSeeds_, HLTSiStripMonitoring_cff::measurementTracker, eostools::move(), numOfHitsToTry_, numOfLayersToTry_, oppositeToMomentum, MillePedeFileConverter_cfg::out, trajectoryStateTransform::persistentState(), HLT_FULL_cff::propagatorAlong, edm::OwnVector< T, P >::push_back(), TrajectoryStateOnSurface::rescaleError(), fileCollector::seed, edm::OwnVector< T, P >::size(), jetUpdater_cfi::sort, and updator_.
Referenced by produce().
|
private |
Create seeds without hits on a given layer (TOB or TEC)
Definition at line 329 of file TSGForOIFromL2.cc.
References phase1PixelTopology::layer, LogTrace, oppositeToMomentum, MillePedeFileConverter_cfg::out, trajectoryStateTransform::persistentState(), HLT_FULL_cff::propagatorAlong, and theCategory_.
Referenced by produce().
|
private |
Find compatability between two TSOSs.
Definition at line 487 of file TSGForOIFromL2.cc.
References TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localParameters(), visualization-live-secondInstance_cfg::m, LocalTrajectoryError::matrix(), findQualityFiles::v, and LocalTrajectoryParameters::vector().
|
overridevirtual |
Implements edm::global::EDProducerBase.
Definition at line 62 of file TSGForOIFromL2.cc.
References funct::abs(), adjustErrorsDynamicallyForHitless_, adjustErrorsDynamicallyForHits_, alongMomentum, Plane::build(), calculateSFFromL2(), estimatorName_, eta1_, eta7_, fixedErrorRescalingForHitless_, fixedErrorRescalingForHits_, MeasurementTrackerEvent::geometricSearchTracker(), edm::EventSetup::get(), get, iEvent, trajectoryStateTransform::initialFreeState(), trajectoryStateTransform::innerStateOnSurface(), TrackerGeometry::isThere(), TrajectoryStateOnSurface::isValid(), LogTrace, makeSeedsFromHits(), makeSeedsWithoutHits(), maxEtaForTOB_, maxHitlessSeeds_, maxHitSeeds_, maxSeeds_, measurementTrackerTag_, minEtaForTEC_, eostools::move(), GeometricSearchTracker::negTecLayers(), GeometricSearchTracker::negTidLayers(), numL2ValidHitsCutAllEndcap_, numL2ValidHitsCutAllEta_, oppositeToMomentum, MillePedeFileConverter_cfg::out, GeomDetEnumerators::P2OTEC, FreeTrajectoryState::position(), GeometricSearchTracker::posTecLayers(), GeometricSearchTracker::posTidLayers(), edm::ESHandle< T >::product(), HLT_FULL_cff::propagatorAlong, propagatorName_, HLT_FULL_cff::propagatorOpposite, mps_fire::result, SetPropagationDirection(), src_, theCategory_, GeometricSearchTracker::tobLayers(), and useHitLessSeeds_.
|
private |
Definition at line 70 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Whether or not to use an automatically calculated scale-factor value.
Definition at line 69 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Estimator used to find dets and TrajectoryMeasurements.
Definition at line 73 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Definition at line 92 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2(), and produce().
|
private |
Definition at line 92 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 92 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 92 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 92 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 92 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 92 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Definition at line 66 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Rescale L2 parameter uncertainties (fixed error vs pT, eta)
Definition at line 65 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Maximum eta value to activate searching in the TOB.
Definition at line 79 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Maximum number of hitless seeds for each L2.
Definition at line 49 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Maximum number of hitbased seeds for each L2.
Definition at line 52 of file TSGForOIFromL2.h.
Referenced by makeSeedsFromHits(), and produce().
|
private |
Maximum number of seeds for each L2.
Definition at line 46 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Definition at line 88 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Minimum eta value to activate searching in the TEC.
Definition at line 76 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Definition at line 62 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
L2 valid hit cuts to decide seed creation by both states.
Definition at line 61 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
How many hits to try per layer.
Definition at line 58 of file TSGForOIFromL2.h.
Referenced by makeSeedsFromHits().
|
private |
How many layers to try.
Definition at line 55 of file TSGForOIFromL2.h.
Referenced by makeSeedsFromHits().
|
private |
Counters and flags for the implementation.
Definition at line 100 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
pT, eta ranges and scale factor values
Definition at line 91 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 91 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 91 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 93 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 93 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 93 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 93 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 93 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 93 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Labels for input collections.
Definition at line 43 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Definition at line 101 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2(), makeSeedsWithoutHits(), and produce().
|
private |
Distance of L2 TSOSs before and after updated with vertex.
Definition at line 96 of file TSGForOIFromL2.h.
|
private |
Definition at line 97 of file TSGForOIFromL2.h.
|
private |
KFUpdator defined in constructor.
Definition at line 86 of file TSGForOIFromL2.h.
Referenced by makeSeedsFromHits().
|
private |
Switch ON (True) : use additional hits for seeds depending on the L2 properties (ignores numOfMaxSeeds_) Switch OFF (False): the numOfMaxSeeds_ defines if we will use hitless (numOfMaxSeeds_==1) or hitless+hits (numOfMaxSeeds_>1)
Definition at line 83 of file TSGForOIFromL2.h.
Referenced by produce().