8 #include "CLHEP/Random/RandGaussQ.h" 9 #include "CLHEP/Units/GlobalSystemOfUnits.h" 10 #include "CLHEP/Units/GlobalPhysicalConstants.h" 12 #include "HepMC/SimpleVector.h" 27 <<
"Error in GaussEvtVtxGenerator: " 28 <<
"Illegal resolution in X (SigmaX is negative)";
32 <<
"Error in GaussEvtVtxGenerator: " 33 <<
"Illegal resolution in Y (SigmaY is negative)";
37 <<
"Error in GaussEvtVtxGenerator: " 38 <<
"Illegal resolution in Z (SigmaZ is negative)";
54 return HepMC::FourVector( X, Y, Z, T);
64 <<
"Error in GaussEvtVtxGenerator::sigmaX: " 65 <<
"Illegal resolution in X (negative)";
76 <<
"Error in GaussEvtVtxGenerator::sigmaY: " 77 <<
"Illegal resolution in Y (negative)";
88 <<
"Error in GaussEvtVtxGenerator::sigmaZ: " 89 <<
"Illegal resolution in Z (negative)";
T getParameter(std::string const &) const
virtual ~GaussEvtVtxGenerator()
void sigmaY(double s=1.0)
set resolution in Y in cm
void sigmaX(double s=1.0)
set resolution in X in cm
GaussEvtVtxGenerator(const edm::ParameterSet &p)
virtual HepMC::FourVector newVertex(CLHEP::HepRandomEngine *) const override
return a new event vertex
void sigmaZ(double s=1.0)
set resolution in Z in cm