1 #ifndef RecoTracker_TkTrackingRegions_GlobalTrackingRegionWithVerticesProducer_H 2 #define RecoTracker_TkTrackingRegions_GlobalTrackingRegionWithVerticesProducer_H 59 desc.
add<
bool>(
"precise",
true);
60 desc.
add<
bool>(
"useMultipleScattering",
false);
62 desc.
add<
bool>(
"useFixedError",
true);
63 desc.
add<
double>(
"originRadius", 0.2);
64 desc.
add<
double>(
"sigmaZVertex", 3.0);
65 desc.
add<
double>(
"fixedError", 0.2);
67 desc.
add<
double>(
"ptMin", 0.9);
68 desc.
add<
bool>(
"useFoundVertices",
true);
69 desc.
add<
bool>(
"useFakeVertices",
false);
70 desc.
add<
int>(
"maxNVertices", -1)->setComment(
"-1 for all vertices");
71 desc.
add<
double>(
"nSigmaZ", 4.0);
73 desc.
add<
bool>(
"originRScaling4BigEvts",
false);
74 desc.
add<
bool>(
"ptMinScaling4BigEvts",
false);
75 desc.
add<
bool>(
"halfLengthScaling4BigEvts",
false);
76 desc.
add<
double>(
"minOriginR",0);
77 desc.
add<
double>(
"maxPtMin",1000);
78 desc.
add<
double>(
"minHalfLength",0);
79 desc.
add<
double>(
"scalingStartNPix",0.0);
80 desc.
add<
double>(
"scalingEndNPix",1.0);
86 descriptions.
add(
"globalTrackingRegionWithVertices", descRegion);
89 std::vector<std::unique_ptr<TrackingRegion> >
regions 92 std::vector<std::unique_ptr<TrackingRegion> >
result;
103 throw cms::Exception(
"Seeding") <<
"ERROR: input beamSpot is not valid in GlobalTrackingRegionWithVertices";
115 for(reco::VertexCollection::const_iterator iV=vertexCollection->begin(); iV != vertexCollection->end() ; iV++) {
116 if (!iV->isValid())
continue;
147 if(scaledOriginRadius!=0 && scaledHalfLength !=0){
148 result.push_back( std::make_unique<GlobalTrackingRegion>( scaledPtMin, theOrigin_, scaledOriginRadius, scaledHalfLength,
thePrecise,
theUseMS));
T getParameter(std::string const &) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
double z0() const
z coordinate
size_type dataSize() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Global3DPoint GlobalPoint
~GlobalTrackingRegionWithVerticesProducer() override
edm::EDGetTokenT< reco::VertexCollection > token_vertex
std::vector< Vertex > VertexCollection
collection of Vertex objects
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > token_pc
static std::string const input
edm::InputTag theBeamSpotTag
ParameterDescriptionBase * add(U const &iLabel, T const &value)
bool theHalfLengthScaling
double sigmaZ() const
sigma z
void add(std::string const &label, ParameterSetDescription const &psetDescription)
GlobalTrackingRegionWithVerticesProducer(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
double y0() const
y coordinate
std::vector< std::unique_ptr< TrackingRegion > > regions(const edm::Event &ev, const edm::EventSetup &) const override
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
double x0() const
x coordinate