#include <GlobalTrackingRegionProducerFromBeamSpot.h>
Definition at line 24 of file GlobalTrackingRegionProducerFromBeamSpot.h.
References edm::ConsumesCollector::consumes(), Exception, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), theNSigmaZ, theOriginHalfLength, theOriginRadius, thePrecise, thePtMin, theUseMS, and token_beamSpot.
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";
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
GlobalTrackingRegionProducerFromBeamSpot::~GlobalTrackingRegionProducerFromBeamSpot |
( |
| ) |
|
|
inlineoverride |
Definition at line 43 of file GlobalTrackingRegionProducerFromBeamSpot.h.
References edm::ConfigurationDescriptions::add(), and edm::ParameterSetDescription::add().
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);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Implements TrackingRegionProducer.
Definition at line 81 of file GlobalTrackingRegionProducerFromBeamSpot.h.
References edm::Event::getByToken(), edm::HandleBase::isValid(), SiStripPI::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().
82 std::vector<std::unique_ptr<TrackingRegion> >
result;
91 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 |