Build a TrackingRegion around a standalone muon
Options: Beamspot : Origin is defined by primary vertex Vertex : Origin is defined by primary vertex (first valid vertex in the VertexCollection) if no vertex is found the beamspot is used instead DynamicZError
DynamicEtaError DynamicphiError
- Author
- N. Neumeister Purdue University
-
A. Everett Purdue University
Definition at line 42 of file MuonTrackingRegionBuilder.h.
Class: MuonTrackingRegionBuilder
Build a TrackingRegion around a standalone muon
- Author
- N. Neumeister Purdue University
-
A. Everett Purdue University
Definition at line 37 of file MuonTrackingRegionBuilder.cc.
References beamSpotToken, bfieldToken, edm::ConsumesCollector::consumes(), edm::ConsumesCollector::esConsumes(), edm::ParameterSet::getParameter(), inputCollectionToken, RectangularEtaPhiTrackingRegion::intToUseMeasurementTracker(), RectangularEtaPhiTrackingRegion::kNever, msmakerToken, theDeltaEta, theDeltaPhi, theDeltaR, theEtaMin, theEtaRegionPar1, theEtaRegionPar2, theHalfZ, theMaxRegions, theMeasurementTrackerToken, theNsigmaDz, theNsigmaEta, theNsigmaPhi, theOnDemand, thePhiMin, thePhiRegionPar1, thePhiRegionPar2, thePrecise, thePtMin, useFixedEta, useFixedPhi, useFixedPt, useFixedZ, useVertex, and vertexCollectionToken.
Referenced by MuonTrackingRegionBuilder().
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken
std::vector< Track > TrackCollection
collection of Tracks
edm::ESGetToken< MultipleScatteringParametrisationMaker, TrackerMultipleScatteringRecord > msmakerToken
std::vector< Vertex > VertexCollection
collection of Vertex objects
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > bfieldToken
RectangularEtaPhiTrackingRegion::UseMeasurementTracker theOnDemand
edm::EDGetTokenT< reco::TrackCollection > inputCollectionToken
edm::EDGetTokenT< reco::VertexCollection > vertexCollectionToken
static UseMeasurementTracker intToUseMeasurementTracker(int value)
edm::EDGetTokenT< MeasurementTrackerEvent > theMeasurementTrackerToken
Definition at line 142 of file MuonTrackingRegionBuilder.cc.
References funct::abs(), beamSpotToken, bfieldToken, cms::cuda::bs, PbPb_ZMuSkimMuonDPG_cff::deltaR, l1tTrackerHTMiss_cfi::deltaZ, PVValHelper::eta, reco::TrackBase::etaError(), makeMEIFBenchmarkPlots::ev, edm::EventSetup::getData(), reco::Track::innerMomentum(), edm::EDGetTokenT< T >::isUninitialized(), LogDebug, SiStripPI::max, HLTSiStripMonitoring_cff::measurementTracker, SiStripPI::min, PV_cfg::minPt, reco::TrackBase::momentum(), msmakerToken, reco::TrackBase::p(), phi, reco::TrackBase::phiError(), edm::Handle< T >::product(), DiDispStaMuonMonitor_cfi::pt, reco::TrackBase::pt(), region(), theDeltaEta, theDeltaPhi, theDeltaR, theEtaMin, theEtaRegionPar1, theEtaRegionPar2, theHalfZ, theMeasurementTrackerToken, theNsigmaDz, theNsigmaEta, theNsigmaPhi, theOnDemand, thePhiMin, thePhiRegionPar1, thePhiRegionPar2, thePrecise, thePtMin, useFixedEta, useFixedPhi, useFixedPt, useFixedZ, useVertex, spclusmultinvestigator_cfi::vertexCollection, vertexCollectionToken, and L1BJetProducer_cff::vtx.
148 double pt = staTrack.
pt();
152 GlobalVector forSmallMomentum(innerMomentum.x(), innerMomentum.y(), innerMomentum.z());
153 if (staTrack.
p() <= 1.5) {
178 if (!
vtx->isFake() &&
vtx->isValid()) {
194 double region_dEta = 0;
195 double region_dPhi = 0;
209 if (
pt > 10. &&
pt < 100.) {
246 auto region = std::make_unique<RectangularEtaPhiTrackingRegion>(dirVector,
259 LogDebug(
"MuonTrackingRegionBuilder") <<
"the region parameters are:\n" 260 <<
"\n dirVector: " << dirVector <<
"\n vertexPos: " << vertexPos
262 <<
"\n region_dEta:" << region_dEta <<
"\n region_dPhi:" << region_dPhi
263 <<
"\n on demand parameter: " <<
static_cast<int>(
theOnDemand);
std::unique_ptr< RectangularEtaPhiTrackingRegion > region(const reco::TrackRef &) const
Define tracking region.
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken
double p() const
momentum vector magnitude
T const * product() const
constexpr bool isUninitialized() const noexcept
Global3DPoint GlobalPoint
edm::ESGetToken< MultipleScatteringParametrisationMaker, TrackerMultipleScatteringRecord > msmakerToken
double pt() const
track transverse momentum
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > bfieldToken
RectangularEtaPhiTrackingRegion::UseMeasurementTracker theOnDemand
Abs< T >::type abs(const T &t)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
const Vector & momentum() const
track momentum vector
edm::EDGetTokenT< reco::VertexCollection > vertexCollectionToken
const math::XYZVector & innerMomentum() const
momentum vector at the innermost hit position
double phiError() const
error on phi
edm::EDGetTokenT< MeasurementTrackerEvent > theMeasurementTrackerToken
double etaError() const
error on eta