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())
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
VertexBeamspotOrigins(const edm::ParameterSet ®PSet, edm::ConsumesCollector &&iC)
ret
prodAgent to be discontinued
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
Global3DPoint GlobalPoint
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
std::vector< std::pair< GlobalPoint, float > > Origins
edm::EDGetTokenT< reco::VertexCollection > token_vertex
OperationMode m_operationMode
Origins origins(const edm::Event &iEvent) const