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 std::string | estimatorName_ |
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 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 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 edm::EDGetTokenT < reco::TrackCollection > | src_ |
Labels for input collections. More... | |
const std::string | theCategory |
const double | tsosDiff_ |
Distance of TSOSs to trigger using hits or not. More... | |
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 | |
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 () noexcept |
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... | |
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 49 of file TSGForOI.cc.
|
private |
Function used to calculate the dynamic error SF by analysing the L2.
Definition at line 357 of file TSGForOI.cc.
References funct::abs(), eta1_, eta2_, LogTrace, pT1_, pT2_, pT3_, SF1_, SF2_, SF3_, SF4_, SF5_, and theCategory.
Referenced by findSeedsOnLayer().
|
static |
Definition at line 483 of file TSGForOI.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Function to find seeds on a given layer.
Definition at line 284 of file TSGForOI.cc.
References adjustErrorsDynamicallyForHitless_, adjustErrorsDynamicallyForHits_, calculateSFFromL2(), GeometricSearchDet::compatibleDetsV(), fixedErrorRescalingForHitless_, fixedErrorRescalingForHits_, LogTrace, makeSeedsFromHits(), numOfLayersToTry_, oppositeToMomentum, submitPVResolutionJobs::out, trajectoryStateTransform::persistentState(), theCategory, and useHitLessSeeds_.
Referenced by produce().
|
private |
Function to find hits on layers and create seeds from updated TSOS.
Definition at line 388 of file TSGForOI.cc.
References GeometricSearchDet::compatibleDetsV(), MeasurementDetWithData::fastMeasurements(), newFWLiteAna::found, MeasurementDetWithData::isNull(), TrajectoryStateOnSurface::isValid(), LogTrace, eostools::move(), numOfHitsToTry_, oppositeToMomentum, trajectoryStateTransform::persistentState(), edm::OwnVector< T, P >::push_back(), DetId::rawId(), TrajectoryStateOnSurface::rescaleError(), fileCollector::seed, edm::OwnVector< T, P >::size(), DetId::subdetId(), StripSubdetector::TEC, TrackerTopology::tecIsStereo(), updator_, and useStereoLayersInTEC_.
Referenced by findSeedsOnLayer().
|
private |
Definition at line 464 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 51 of file TSGForOI.cc.
References funct::abs(), alongMomentum, Plane::build(), estimatorName_, findSeedsOnLayer(), edm::EventSetup::get(), edm::Event::getByToken(), trajectoryStateTransform::initialFreeState(), trajectoryStateTransform::innerStateOnSurface(), TrajectoryStateOnSurface::isValid(), LogTrace, match_Chi2(), maxEtaForTOB_, measurementTrackerTag_, minEtaForTEC_, eostools::move(), numOfMaxSeedsParam_, oppositeToMomentum, submitPVResolutionJobs::out, GeomDetEnumerators::P2OTEC, FreeTrajectoryState::position(), edm::ESHandle< class >::product(), HLT_FULL_cff::propagatorAlong, propagatorName_, HLT_FULL_cff::propagatorOpposite, edm::Event::put(), mps_fire::result, SetPropagationDirection(), src_, theCategory, and tsosDiff_.
|
private |
Definition at line 59 of file TSGForOI.h.
Referenced by findSeedsOnLayer().
|
private |
Whether or not to use an automatically calculated scale-factor value.
Definition at line 58 of file TSGForOI.h.
Referenced by findSeedsOnLayer().
|
private |
Estimator used to find dets and TrajectoryMeasurements.
Definition at line 62 of file TSGForOI.h.
Referenced by produce().
|
private |
Definition at line 84 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 84 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 55 of file TSGForOI.h.
Referenced by findSeedsOnLayer().
|
private |
How much to rescale errors from the L2 (fixed error vs pT, eta)
Definition at line 54 of file TSGForOI.h.
Referenced by findSeedsOnLayer().
|
private |
Maximum eta value to activate searching in the TOB.
Definition at line 68 of file TSGForOI.h.
Referenced by produce().
|
private |
Definition at line 80 of file TSGForOI.h.
Referenced by produce().
|
private |
Minimum eta value to activate searching in the TEC.
Definition at line 65 of file TSGForOI.h.
Referenced by produce().
|
private |
How many hits to try per layer.
Definition at line 51 of file TSGForOI.h.
Referenced by makeSeedsFromHits().
|
private |
|
private |
Maximum number of seeds for each L2.
Definition at line 45 of file TSGForOI.h.
Referenced by produce().
|
private |
Counters and flags for the implementation.
Definition at line 91 of file TSGForOI.h.
Referenced by produce().
|
private |
pT, eta ranges and scale factor values
Definition at line 83 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 83 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 83 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 85 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 85 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 85 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 85 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
Definition at line 85 of file TSGForOI.h.
Referenced by calculateSFFromL2().
|
private |
|
private |
Definition at line 92 of file TSGForOI.h.
Referenced by calculateSFFromL2(), findSeedsOnLayer(), and produce().
|
private |
Distance of TSOSs to trigger using hits or not.
Definition at line 88 of file TSGForOI.h.
Referenced by produce().
|
private |
KFUpdator defined in constructor.
Definition at line 78 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 72 of file TSGForOI.h.
Referenced by findSeedsOnLayer().
|
private |
Switch ON to use Stereo layers instead of using every layer in TEC.
Definition at line 75 of file TSGForOI.h.
Referenced by makeSeedsFromHits().