Go to the documentation of this file.
6 if (operationModeString ==
"BeamSpotFixed")
8 else if (operationModeString ==
"BeamSpotSigma")
10 else if (operationModeString ==
"VerticesFixed")
12 else if (operationModeString ==
"VerticesSigma")
15 throw cms::Exception(
"Configuration") <<
"Unknown operation mode string: " << operationModeString;
34 throw cms::Exception(
"Configuration") <<
"nSigmaZBeamSpot must be positive for BeamSpotSigma mode!";
41 int defaultMaxVertices) {
45 desc.
add<
int>(
"maxNVertices", defaultMaxVertices);
47 desc.
add<
double>(
"nSigmaZBeamSpot", 4.);
48 desc.
add<
double>(
"zErrorBeamSpot", 24.2);
49 desc.
add<
double>(
"nSigmaZVertex", 3.);
50 desc.
add<
double>(
"zErrorVertex", 0.2);
75 if (
v.isFake() || !
v.isValid())
ret
prodAgent to be discontinued
OperationMode m_operationMode
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ParameterSetDescription &desc, const std::string &defaultBeamSpot="offlineBeamSpot", const std::string &defaultVertex="firstStepPrimaryVertices", int defaultMaxVertices=-1)
std::vector< Vertex > VertexCollection
collection of Vertex objects
edm::EDGetTokenT< reco::VertexCollection > token_vertex
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
std::vector< std::pair< GlobalPoint, float > > Origins
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Global3DPoint GlobalPoint
T getParameter(std::string const &) const
VertexBeamspotOrigins(const edm::ParameterSet ®PSet, edm::ConsumesCollector &&iC)
Origins origins(const edm::Event &iEvent) const