8 #include "CLHEP/Random/RandGaussQ.h"
9 #include "CLHEP/Units/GlobalSystemOfUnits.h"
10 #include "CLHEP/Units/GlobalPhysicalConstants.h"
12 #include "HepMC/SimpleVector.h"
24 throw cms::Exception(
"Configuration") <<
"Error in GaussEvtVtxGenerator: "
25 <<
"Illegal resolution in X (SigmaX is negative)";
28 throw cms::Exception(
"Configuration") <<
"Error in GaussEvtVtxGenerator: "
29 <<
"Illegal resolution in Y (SigmaY is negative)";
32 throw cms::Exception(
"Configuration") <<
"Error in GaussEvtVtxGenerator: "
33 <<
"Illegal resolution in Z (SigmaZ is negative)";
46 return HepMC::FourVector(X, Y, Z, T);
53 throw cms::Exception(
"LogicError") <<
"Error in GaussEvtVtxGenerator::sigmaX: "
54 <<
"Illegal resolution in X (negative)";
62 throw cms::Exception(
"LogicError") <<
"Error in GaussEvtVtxGenerator::sigmaY: "
63 <<
"Illegal resolution in Y (negative)";
71 throw cms::Exception(
"LogicError") <<
"Error in GaussEvtVtxGenerator::sigmaZ: "
72 <<
"Illegal resolution in Z (negative)";
void sigmaY(double s=1.0)
set resolution in Y in cm
~GaussEvtVtxGenerator() override
void sigmaX(double s=1.0)
set resolution in X in cm
GaussEvtVtxGenerator(const edm::ParameterSet &p)
HepMC::FourVector newVertex(CLHEP::HepRandomEngine *) const override
return a new event vertex
T getParameter(std::string const &) const
void sigmaZ(double s=1.0)
set resolution in Z in cm