#include <GlobalTrackingRegionProducerFromBeamSpot.h>
Definition at line 22 of file GlobalTrackingRegionProducerFromBeamSpot.h.
References edm::ConsumesCollector::consumes(), Exception, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), theNSigmaZ, theOriginHalfLength, theOriginRadius, thePrecise, thePtMin, theUseMS, and token_beamSpot.
28 if (!regionPSet.
existsAs<
double>(
"nSigmaZ") && !regionPSet.
existsAs<
double>(
"originHalfLength")) {
29 throw cms::Exception(
"Configuration") <<
"GlobalTrackingRegionProducerFromBeamSpot: at least one of nSigmaZ, originHalfLength must be present in the cfg.\n";
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
double theOriginHalfLength
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
virtual GlobalTrackingRegionProducerFromBeamSpot::~GlobalTrackingRegionProducerFromBeamSpot |
( |
| ) |
|
|
inlinevirtual |
Definition at line 41 of file GlobalTrackingRegionProducerFromBeamSpot.h.
References edm::ConfigurationDescriptions::add(), and edm::ParameterSetDescription::add().
45 desc.
add<
bool>(
"precise",
true);
46 desc.
add<
bool>(
"useMultipleScattering",
false);
47 desc.
add<
double>(
"nSigmaZ", 4.0);
48 desc.add<
double>(
"originHalfLength", 0.0);
49 desc.add<
double>(
"originRadius", 0.2);
50 desc.add<
double>(
"ptMin", 0.9);
57 descriptions.
add(
"globalTrackingRegionFromBeamSpot", descRegion);
63 desc.
add<
bool>(
"precise",
true);
64 desc.
add<
bool>(
"useMultipleScattering",
false);
65 desc.
add<
double>(
"nSigmaZ", 0.0);
66 desc.add<
double>(
"originHalfLength", 21.2);
67 desc.add<
double>(
"originRadius", 0.2);
68 desc.add<
double>(
"ptMin", 0.9);
75 descriptions.
add(
"globalTrackingRegionFromBeamSpotFixedZ", descRegion);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Implements TrackingRegionProducer.
Definition at line 79 of file GlobalTrackingRegionProducerFromBeamSpot.h.
References edm::Event::getByToken(), edm::HandleBase::isValid(), hpstanc_transforms::max, mps_fire::result, reco::BeamSpot::sigmaZ(), theNSigmaZ, theOriginHalfLength, theOriginRadius, thePrecise, thePtMin, theUseMS, token_beamSpot, reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().
80 std::vector<std::unique_ptr<TrackingRegion> >
result;
89 result.push_back( std::make_unique<GlobalTrackingRegion>(
double z0() const
z coordinate
double theOriginHalfLength
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
double sigmaZ() const
sigma z
double y0() const
y coordinate
double x0() const
x coordinate
double GlobalTrackingRegionProducerFromBeamSpot::theNSigmaZ |
|
private |
double GlobalTrackingRegionProducerFromBeamSpot::theOriginHalfLength |
|
private |
double GlobalTrackingRegionProducerFromBeamSpot::theOriginRadius |
|
private |
bool GlobalTrackingRegionProducerFromBeamSpot::thePrecise |
|
private |
double GlobalTrackingRegionProducerFromBeamSpot::thePtMin |
|
private |
bool GlobalTrackingRegionProducerFromBeamSpot::theUseMS |
|
private |