Create L3MuonTrajectorySeeds from L2 Muons updated at vertex in an outside in manner. More...
#include <TSGForOI.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 |
Function used to calculate the dynamic error SF by analysing the L2. More... | |
void | findSeedsOnLayer (const TrackerTopology *tTopo, const GeometricSearchDet &layer, const TrajectoryStateOnSurface &tsosAtIP, const Propagator &propagatorAlong, const Propagator &propagatorOpposite, const reco::TrackRef l2, edm::ESHandle< Chi2MeasurementEstimatorBase > &estimator_, edm::Handle< MeasurementTrackerEvent > &measurementTrackerH, unsigned int &numSeedsMade, unsigned int &numOfMaxSeeds, unsigned int &layerCount, bool &analysedL2, std::unique_ptr< std::vector< TrajectorySeed > > &out) const |
Function to find seeds on a given layer. More... | |
int | makeSeedsFromHits (const TrackerTopology *tTopo, const GeometricSearchDet &layer, const TrajectoryStateOnSurface &tsosAtIP, std::vector< TrajectorySeed > &out, const Propagator &propagatorAlong, const MeasurementTrackerEvent &measurementTracker, edm::ESHandle< Chi2MeasurementEstimatorBase > &estimator_, unsigned int &numSeedsMade, const double errorSF, const double l2Eta) const |
Function to find hits on layers and create seeds from updated TSOS. More... | |
double | match_Chi2 (const TrajectoryStateOnSurface &tsos1, const TrajectoryStateOnSurface &tsos2) const |
Private Attributes | |
const bool | adjustErrorsDynamicallyForHitless_ |
const bool | adjustErrorsDynamicallyForHits_ |
Whether or not to use an automatically calculated scale-factor value. More... | |
const edm::ESGetToken< Chi2MeasurementEstimatorBase, TrackingComponentsRecord > | estimatorToken_ |
Estimator used to find dets and TrajectoryMeasurements. More... | |
const double | eta1_ |
const double | eta2_ |
const double | fixedErrorRescalingForHitless_ |
const double | fixedErrorRescalingForHits_ |
How much to rescale errors from the L2 (fixed error vs pT, eta) More... | |
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > | geometryToken_ |
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > | magfieldToken_ |
const double | maxEtaForTOB_ |
Maximum eta value to activate searching in the TOB. More... | |
const edm::EDGetTokenT< MeasurementTrackerEvent > | measurementTrackerTag_ |
const double | minEtaForTEC_ |
Minimum eta value to activate searching in the TEC. More... | |
const unsigned int | numOfHitsToTry_ |
How many hits to try per layer. More... | |
const unsigned int | numOfLayersToTry_ |
How many layers to try. More... | |
const unsigned int | numOfMaxSeedsParam_ |
Maximum number of seeds for each L2. More... | |
const edm::ESGetToken< Propagator, TrackingComponentsRecord > | propagatorAlongToken_ |
const std::string | propagatorName_ |
Counters and flags for the implementation. More... | |
const edm::ESGetToken< Propagator, TrackingComponentsRecord > | propagatorOppositeToken_ |
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 edm::ESGetToken< Propagator, TrackingComponentsRecord > | shpOppositeToken_ |
const edm::ESGetToken< Propagator, TrackingComponentsRecord > | smartOppositeToken_ |
const edm::EDGetTokenT< reco::TrackCollection > | src_ |
Labels for input collections. More... | |
const std::string | theCategory |
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > | tmpTkGeometryToken_ |
const double | tsosDiff_ |
Distance of TSOSs to trigger using hits or not. More... | |
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > | tTopoToken_ |
const std::unique_ptr< TrajectoryStateUpdator > | updator_ |
KFUpdator defined in constructor. More... | |
const bool | useHitLessSeeds_ |
const bool | useStereoLayersInTEC_ |
Switch ON to use Stereo layers instead of using every layer in TEC. More... | |
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<Transition Tr = Transition::Event> | |
auto | produces (std::string instanceName) noexcept |
declare what type of product will make and with which optional label More... | |
template<Transition B> | |
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) |
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 () |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
template<Transition Tr = Transition::Event> | |
auto | produces () noexcept |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
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) |
void | resetItemsToGetFrom (BranchType iType) |
Create L3MuonTrajectorySeeds from L2 Muons updated at vertex in an outside in manner.
Definition at line 33 of file TSGForOI.h.
|
explicit |
Definition at line 16 of file TSGForOI.cc.
|
override |
Definition at line 57 of file TSGForOI.cc.
|
private |
Function used to calculate the dynamic error SF by analysing the L2.
Definition at line 355 of file TSGForOI.cc.
References funct::abs(), eta1_, eta2_, LogTrace, pT1_, pT2_, pT3_, SF1_, SF2_, SF3_, SF4_, SF5_, theCategory, and HLT_2022v14_cff::track.
Referenced by findSeedsOnLayer().
|
static |
Definition at line 481 of file TSGForOI.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, HLT_2022v14_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Function to find seeds on a given layer.
Definition at line 282 of file TSGForOI.cc.
References adjustErrorsDynamicallyForHitless_, adjustErrorsDynamicallyForHits_, calculateSFFromL2(), fixedErrorRescalingForHitless_, fixedErrorRescalingForHits_, phase1PixelTopology::layer, LogTrace, makeSeedsFromHits(), numOfLayersToTry_, oppositeToMomentum, MillePedeFileConverter_cfg::out, trajectoryStateTransform::persistentState(), L1TMuonDQMOffline_cfi::propagatorAlong, theCategory, and useHitLessSeeds_.
Referenced by produce().
|
private |
Function to find hits on layers and create seeds from updated TSOS.
Definition at line 386 of file TSGForOI.cc.
References MeasurementDetWithData::fastMeasurements(), newFWLiteAna::found, MeasurementDetWithData::isNull(), TrajectoryStateOnSurface::isValid(), phase1PixelTopology::layer, LogTrace, HLTSiStripMonitoring_cff::measurementTracker, eostools::move(), numOfHitsToTry_, oppositeToMomentum, MillePedeFileConverter_cfg::out, trajectoryStateTransform::persistentState(), L1TMuonDQMOffline_cfi::propagatorAlong, edm::OwnVector< T, P >::push_back(), DetId::rawId(), TrajectoryStateOnSurface::rescaleError(), fileCollector::seed, edm::OwnVector< T, P >::size(), jetUpdater_cfi::sort, DetId::subdetId(), StripSubdetector::TEC, TrackerTopology::tecIsStereo(), updator_, and useStereoLayersInTEC_.
Referenced by findSeedsOnLayer().
|
private |
Definition at line 462 of file TSGForOI.cc.
References TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localParameters(), visualization-live-secondInstance_cfg::m, LocalTrajectoryError::matrix(), findQualityFiles::v, and LocalTrajectoryParameters::vector().
Referenced by produce().
|
overridevirtual |
Init variables
Surface used to make a TSOS at the PCA to the beamline
Read ESHandles
Read L2 track collection
Implements edm::global::EDProducerBase.
Definition at line 59 of file TSGForOI.cc.
References funct::abs(), alongMomentum, Plane::build(), estimatorToken_, findSeedsOnLayer(), geometryToken_, edm::EventSetup::getData(), edm::EventSetup::getHandle(), iEvent, trajectoryStateTransform::initialFreeState(), trajectoryStateTransform::innerStateOnSurface(), TrackerGeometry::isThere(), TrajectoryStateOnSurface::isValid(), LogTrace, magfieldToken_, match_Chi2(), maxEtaForTOB_, measurementTrackerTag_, minEtaForTEC_, eostools::move(), numOfMaxSeedsParam_, oppositeToMomentum, MillePedeFileConverter_cfg::out, GeomDetEnumerators::P2OTEC, FreeTrajectoryState::position(), edm::ESHandle< T >::product(), L1TMuonDQMOffline_cfi::propagatorAlong, propagatorAlongToken_, L1TMuonDQMOffline_cfi::propagatorOpposite, propagatorOppositeToken_, mps_fire::result, SetPropagationDirection(), shpOppositeToken_, smartOppositeToken_, src_, theCategory, tmpTkGeometryToken_, tsosDiff_, and tTopoToken_.
|
private |
Definition at line 69 of file TSGForOI.h.
Referenced by findSeedsOnLayer().
|
private |
Whether or not to use an automatically calculated scale-factor value.
Definition at line 68 of file TSGForOI.h.
Referenced by findSeedsOnLayer().
|
private |
Estimator used to find dets and TrajectoryMeasurements.
Definition at line 45 of file TSGForOI.h.
Referenced by produce().
|
private |
Definition at line 91 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 91 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 65 of file TSGForOI.h.
Referenced by findSeedsOnLayer().
|
private |
How much to rescale errors from the L2 (fixed error vs pT, eta)
Definition at line 64 of file TSGForOI.h.
Referenced by findSeedsOnLayer().
|
private |
Definition at line 49 of file TSGForOI.h.
Referenced by produce().
|
private |
Definition at line 47 of file TSGForOI.h.
Referenced by produce().
|
private |
Maximum eta value to activate searching in the TOB.
Definition at line 75 of file TSGForOI.h.
Referenced by produce().
|
private |
Definition at line 87 of file TSGForOI.h.
Referenced by produce().
|
private |
Minimum eta value to activate searching in the TEC.
Definition at line 72 of file TSGForOI.h.
Referenced by produce().
|
private |
How many hits to try per layer.
Definition at line 61 of file TSGForOI.h.
Referenced by makeSeedsFromHits().
|
private |
|
private |
Maximum number of seeds for each L2.
Definition at line 55 of file TSGForOI.h.
Referenced by produce().
|
private |
Definition at line 100 of file TSGForOI.h.
Referenced by produce().
|
private |
Counters and flags for the implementation.
Definition at line 98 of file TSGForOI.h.
|
private |
Definition at line 101 of file TSGForOI.h.
Referenced by produce().
|
private |
pT, eta ranges and scale factor values
Definition at line 90 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 90 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 90 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 92 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 92 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 92 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 92 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 92 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 52 of file TSGForOI.h.
Referenced by produce().
|
private |
Definition at line 51 of file TSGForOI.h.
Referenced by produce().
|
private |
|
private |
Definition at line 99 of file TSGForOI.h.
Referenced by calculateSFFromL2(), findSeedsOnLayer(), and produce().
|
private |
Definition at line 48 of file TSGForOI.h.
Referenced by produce().
|
private |
Distance of TSOSs to trigger using hits or not.
Definition at line 95 of file TSGForOI.h.
Referenced by produce().
|
private |
Definition at line 50 of file TSGForOI.h.
Referenced by produce().
|
private |
KFUpdator defined in constructor.
Definition at line 85 of file TSGForOI.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 79 of file TSGForOI.h.
Referenced by findSeedsOnLayer().
|
private |
Switch ON to use Stereo layers instead of using every layer in TEC.
Definition at line 82 of file TSGForOI.h.
Referenced by makeSeedsFromHits().