1 #ifndef RecoTracker_TkTrackingRegions_GlobalTrackingRegionProducerFromBeamSpot_H 2 #define RecoTracker_TkTrackingRegions_GlobalTrackingRegionProducerFromBeamSpot_H 30 if (!regionPSet.
existsAs<
double>(
"nSigmaZ") && !regionPSet.
existsAs<
double>(
"originHalfLength")) {
31 throw cms::Exception(
"Configuration") <<
"GlobalTrackingRegionProducerFromBeamSpot: at least one of nSigmaZ, originHalfLength must be present in the cfg.\n";
47 desc.
add<
bool>(
"precise",
true);
48 desc.
add<
bool>(
"useMultipleScattering",
false);
49 desc.
add<
double>(
"nSigmaZ", 4.0);
50 desc.
add<
double>(
"originHalfLength", 0.0);
51 desc.
add<
double>(
"originRadius", 0.2);
52 desc.
add<
double>(
"ptMin", 0.9);
59 descriptions.
add(
"globalTrackingRegionFromBeamSpot", descRegion);
65 desc.
add<
bool>(
"precise",
true);
66 desc.
add<
bool>(
"useMultipleScattering",
false);
67 desc.
add<
double>(
"nSigmaZ", 0.0);
68 desc.
add<
double>(
"originHalfLength", 21.2);
69 desc.
add<
double>(
"originRadius", 0.2);
70 desc.
add<
double>(
"ptMin", 0.9);
77 descriptions.
add(
"globalTrackingRegionFromBeamSpotFixedZ", descRegion);
82 std::vector<std::unique_ptr<TrackingRegion> >
result;
91 result.push_back( std::make_unique<GlobalTrackingRegion>(
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
double z0() const
z coordinate
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
double theOriginHalfLength
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
GlobalTrackingRegionProducerFromBeamSpot(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~GlobalTrackingRegionProducerFromBeamSpot() override
std::vector< std::unique_ptr< TrackingRegion > > regions(const edm::Event &ev, const edm::EventSetup &) const override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
GlobalTrackingRegionProducerFromBeamSpot(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
double sigmaZ() const
sigma z
void add(std::string const &label, ParameterSetDescription const &psetDescription)
double y0() const
y coordinate
double x0() const
x coordinate