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::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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
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) |
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 56 of file TSGForOIFromL2.cc.
|
private |
Calculate the dynamic error SF by analysing the L2.
Definition at line 355 of file TSGForOIFromL2.cc.
References funct::abs(), eta1_, eta2_, eta3_, eta4_, eta5_, eta6_, LogTrace, pT1_, pT2_, pT3_, SF1_, SF2_, SF3_, SF4_, SF5_, SF6_, and theCategory_.
Referenced by produce().
|
static |
Definition at line 417 of file TSGForOIFromL2.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), DEFINE_FWK_MODULE, 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 289 of file TSGForOIFromL2.cc.
References GeometricSearchDet::compatibleDetsV(), MeasurementDetWithData::fastMeasurements(), runEdmFileComparison::found, MeasurementTrackerEvent::idToDet(), MeasurementDetWithData::isNull(), TrajectoryStateOnSurface::isValid(), LogTrace, maxHitSeeds_, eostools::move(), numOfHitsToTry_, numOfLayersToTry_, oppositeToMomentum, trajectoryStateTransform::persistentState(), edm::OwnVector< T, P >::push_back(), TrajectoryStateOnSurface::rescaleError(), SurveyInfoScenario_cff::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 251 of file TSGForOIFromL2.cc.
References GeometricSearchDet::compatibleDetsV(), LogTrace, oppositeToMomentum, trajectoryStateTransform::persistentState(), edm::OwnVector< T, P >::push_back(), and theCategory_.
Referenced by produce().
|
private |
Find compatability between two TSOSs.
Definition at line 392 of file TSGForOIFromL2.cc.
References TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localParameters(), funct::m, LocalTrajectoryError::matrix(), findQualityFiles::v, and LocalTrajectoryParameters::vector().
|
override |
Definition at line 63 of file TSGForOIFromL2.cc.
References funct::abs(), adjustErrorsDynamicallyForHitless_, adjustErrorsDynamicallyForHits_, alongMomentum, Plane::build(), calculateSFFromL2(), estimatorName_, eta1_, eta7_, fixedErrorRescalingForHitless_, fixedErrorRescalingForHits_, MeasurementTrackerEvent::geometricSearchTracker(), edm::EventSetup::get(), edm::Event::getByToken(), 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(), gsfElectronCkfTrackCandidateMaker_cff::propagatorAlong, propagatorName_, gsfElectronCkfTrackCandidateMaker_cff::propagatorOpposite, edm::Event::put(), mps_fire::result, SetPropagationDirection(), src_, theCategory_, GeometricSearchTracker::tobLayers(), and useHitLessSeeds_.
|
private |
Definition at line 73 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Whether or not to use an automatically calculated scale-factor value.
Definition at line 72 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Estimator used to find dets and TrajectoryMeasurements.
Definition at line 76 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Definition at line 95 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2(), and produce().
|
private |
Definition at line 95 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 95 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 95 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 95 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 95 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 95 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Definition at line 69 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Rescale L2 parameter uncertainties (fixed error vs pT, eta)
Definition at line 68 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Maximum eta value to activate searching in the TOB.
Definition at line 82 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Maximum number of hitless seeds for each L2.
Definition at line 52 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Maximum number of hitbased seeds for each L2.
Definition at line 55 of file TSGForOIFromL2.h.
Referenced by makeSeedsFromHits(), and produce().
|
private |
Maximum number of seeds for each L2.
Definition at line 49 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Definition at line 91 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Minimum eta value to activate searching in the TEC.
Definition at line 79 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Definition at line 65 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
L2 valid hit cuts to decide seed creation by both states.
Definition at line 64 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
How many hits to try per layer.
Definition at line 61 of file TSGForOIFromL2.h.
Referenced by makeSeedsFromHits().
|
private |
How many layers to try.
Definition at line 58 of file TSGForOIFromL2.h.
Referenced by makeSeedsFromHits().
|
private |
Counters and flags for the implementation.
Definition at line 103 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
pT, eta ranges and scale factor values
Definition at line 94 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 94 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 94 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 96 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 96 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 96 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 96 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 96 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 96 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2().
|
private |
Labels for input collections.
Definition at line 46 of file TSGForOIFromL2.h.
Referenced by produce().
|
private |
Definition at line 104 of file TSGForOIFromL2.h.
Referenced by calculateSFFromL2(), makeSeedsWithoutHits(), and produce().
|
private |
Distance of L2 TSOSs before and after updated with vertex.
Definition at line 99 of file TSGForOIFromL2.h.
|
private |
Definition at line 100 of file TSGForOIFromL2.h.
|
private |
KFUpdator defined in constructor.
Definition at line 89 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 86 of file TSGForOIFromL2.h.
Referenced by produce().