51 edm::LogError(
"MuonTrackingRegionByPtBuilder") <<
"Size of ptRanges does not be less than 2." << std::endl;
57 <<
"Size of deltaEtas does not match number of pt bins." << std::endl;
63 <<
"Size of deltaPhis does not match number of pt bins." << std::endl;
97 std::vector<std::unique_ptr<TrackingRegion>>
result;
135 double pt = staTrack.
pt();
139 GlobalVector forSmallMomentum(innerMomentum.x(), innerMomentum.y(), innerMomentum.z());
140 if (staTrack.
p() <= 1.5) {
165 if (!
vtx->isFake() &&
vtx->isValid()) {
197 auto region = std::make_unique<RectangularEtaPhiTrackingRegion>(dirVector,
210 LogDebug(
"MuonTrackingRegionByPtBuilder")
211 <<
"the region parameters are:\n" 212 <<
"\n dirVector: " << dirVector <<
"\n vertexPos: " << vertexPos <<
"\n minPt: " <<
minPt 213 <<
"\n deltaR:" <<
deltaR <<
"\n deltaZ:" <<
deltaZ <<
"\n region_dEta:" << region_dEta
214 <<
"\n region_dPhi:" << region_dPhi <<
"\n on demand parameter: " <<
static_cast<int>(
theOnDemand);
221 desc.add<
double>(
"DeltaR", 0.2);
223 desc.add<
int>(
"OnDemand", -1);
226 desc.add<
bool>(
"UseVertex",
false);
227 desc.add<
double>(
"Rescale_Dz", 3.0);
228 desc.add<
bool>(
"Pt_fixed",
false);
229 desc.add<
bool>(
"Z_fixed",
true);
230 desc.add<
double>(
"Pt_min", 1.5);
231 desc.add<
double>(
"DeltaZ", 15.9);
232 desc.add<std::vector<double>>(
"ptRanges", {0., 1.e9});
233 desc.add<std::vector<double>>(
"deltaEtas", {0.2});
234 desc.add<std::vector<double>>(
"deltaPhis", {0.15});
235 desc.add<
int>(
"maxRegions", 1);
236 desc.add<
bool>(
"precise",
true);
238 descriptions.
add(
"MuonTrackingRegionByPtBuilder",
desc);
241 "Build a TrackingRegion around a standalone muon. Options to define region around beamspot or primary vertex and " 242 "dynamic regions are included.");
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
double p() const
momentum vector magnitude
const edm::Event * theEvent
T const * product() const
constexpr bool isUninitialized() const noexcept
Global3DPoint GlobalPoint
std::vector< Track > TrackCollection
collection of Tracks
std::vector< Vertex > VertexCollection
collection of Vertex objects
Log< level::Error, false > LogError
std::unique_ptr< RectangularEtaPhiTrackingRegion > region(const reco::TrackRef &) const
Define tracking region.
edm::EDGetTokenT< reco::VertexCollection > vertexCollectionToken
std::vector< std::unique_ptr< TrackingRegion > > regions(const edm::Event &, const edm::EventSetup &) const override
Create Region of Interest.
double pt() const
track transverse momentum
const edm::EventSetup * theEventSetup
Abs< T >::type abs(const T &t)
bool getData(T &iHolder) const
std::vector< double > deltaPhis_
std::vector< double > deltaEtas_
void setComment(std::string const &value)
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken
void build(const edm::ParameterSet &, edm::ConsumesCollector &)
auto const & tracks
cannot be loose
edm::ESGetToken< MultipleScatteringParametrisationMaker, TrackerMultipleScatteringRecord > msmakerToken
XYZVectorD XYZVector
spatial vector with cartesian internal representation
edm::EDGetTokenT< reco::TrackCollection > inputCollectionToken
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Add Fill Descriptions.
RectangularEtaPhiTrackingRegion::UseMeasurementTracker theOnDemand
const Vector & momentum() const
track momentum vector
edm::EDGetTokenT< MeasurementTrackerEvent > theMeasurementTrackerToken
std::vector< double > ptRanges_
static UseMeasurementTracker intToUseMeasurementTracker(int value)
const math::XYZVector & innerMomentum() const
momentum vector at the innermost hit position
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > bfieldToken
void setEvent(const edm::Event &, const edm::EventSetup &)
Pass the Event to the algo at each event.