8 #include "CLHEP/Random/RandFlat.h" 9 #include "CLHEP/Units/GlobalSystemOfUnits.h" 10 #include "CLHEP/Units/GlobalPhysicalConstants.h" 12 #include "HepMC/SimpleVector.h" 27 <<
"Error in FlatEvtVtxGenerator: " 28 <<
"MinX is greater than MaxX";
32 <<
"Error in FlatEvtVtxGenerator: " 33 <<
"MinY is greater than MaxY";
37 <<
"Error in FlatEvtVtxGenerator: " 38 <<
"MinZ is greater than MaxZ";
49 aX = CLHEP::RandFlat::shoot(engine,
fMinX,
fMaxX);
50 aY = CLHEP::RandFlat::shoot(engine,
fMinY,
fMaxY);
51 aZ = CLHEP::RandFlat::shoot(engine,
fMinZ,
fMaxZ);
52 aT = CLHEP::RandFlat::shoot(engine,
fMinZ,
fMaxZ);
T getParameter(std::string const &) const
HepMC::FourVector * fVertex
void minZ(double m=0.0)
set min in Z in cm
void maxZ(double m=0)
set max in Z in cm
FlatEvtVtxGenerator(const edm::ParameterSet &p)
void minX(double m=0.0)
set min in X in cm
virtual ~FlatEvtVtxGenerator()
void minY(double m=0.0)
set min in Y in cm
void maxX(double m=0)
set max in X in cm
virtual HepMC::FourVector * newVertex(CLHEP::HepRandomEngine *)
return a new event vertex
void maxY(double m=0)
set max in Y in cm