Definition at line 50 of file BetaBoostEvtVtxGenerator.cc.
Definition at line 116 of file BetaBoostEvtVtxGenerator.cc.
References alpha_, beta_, edm::hlt::Exception, fbetastar, femittance, fEngine, fRandom, fSigmaZ, fTimeOffset, fX0, fY0, fZ0, getEngine(), edm::RandomNumberGenerator::getEngine(), edm::ParameterSet::getParameter(), edm::Service< T >::isAvailable(), and phi_.
127 <<
"The BaseEvtVtxGenerator requires the RandomNumberGeneratorService\n"
128 "which is not present in the configuration file. You must add the service\n"
129 "in the configuration file or remove the modules that require it.";
132 CLHEP::HepRandomEngine& engine = rng->
getEngine();
148 <<
"Error in BetaBoostEvtVtxGenerator: "
149 <<
"Illegal resolution in Z (SigmaZ is negative)";
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
CLHEP::HepRandomEngine & getEngine()
HepMC::FourVector * fVertex
CLHEP::RandGaussQ * fRandom
virtual CLHEP::HepRandomEngine & getEngine() const =0
Use this to get the random number engine, this is the only function most users should call...
CLHEP::HepRandomEngine * fEngine
edm::InputTag sourceLabel
BetaBoostEvtVtxGenerator::~BetaBoostEvtVtxGenerator |
( |
| ) |
|
|
virtual |
void BetaBoostEvtVtxGenerator::Alpha |
( |
double |
m = 0 | ) |
|
|
inline |
void BetaBoostEvtVtxGenerator::Beta |
( |
double |
m = 0 | ) |
|
|
inline |
double BetaBoostEvtVtxGenerator::BetaFunction |
( |
double |
z, |
|
|
double |
z0 |
|
) |
| |
void BetaBoostEvtVtxGenerator::betastar |
( |
double |
m = 0 | ) |
|
|
inline |
void BetaBoostEvtVtxGenerator::emittance |
( |
double |
m = 0 | ) |
|
|
inline |
CLHEP::HepRandomEngine & BetaBoostEvtVtxGenerator::getEngine |
( |
| ) |
|
TMatrixD * BetaBoostEvtVtxGenerator::GetInvLorentzBoost |
( |
| ) |
|
|
virtual |
Definition at line 215 of file BetaBoostEvtVtxGenerator.cc.
References alpha_, beta_, boost_, funct::cos(), phi_, funct::sin(), mathSSE::sqrt(), funct::tan(), and verbosity_.
Referenced by produce().
223 TMatrixD tmpboost(4,4);
224 TMatrixD tmpboostZ(4,4);
225 TMatrixD tmpboostXYZ(4,4);
253 tmpboostZ(0,2)=-1.0*
beta_*gama;
259 tmpboostZ(2,0)=-1.0*
beta_*gama;
268 tmpboostXYZ=tmpboostZ*tmpboost;
269 tmpboostXYZ.Invert();
273 boost_ =
new TMatrixD(tmpboostXYZ);
Sin< T >::type sin(const T &t)
Cos< T >::type cos(const T &t)
Tan< T >::type tan(const T &t)
HepMC::FourVector * BetaBoostEvtVtxGenerator::newVertex |
( |
| ) |
|
|
virtual |
return a new event vertex
Definition at line 169 of file BetaBoostEvtVtxGenerator.cc.
References BetaFunction(), fRandom, fSigmaZ, fTimeOffset, fVertex, fX0, fY0, fZ0, mathSSE::sqrt(), X, and Gflash::Z.
Referenced by produce().
179 tmp_sigx /=
sqrt(2.0);
184 tmp_sigy /=
sqrt(2.0);
const double Z[kNumberCalorimeter]
HepMC::FourVector * fVertex
CLHEP::RandGaussQ * fRandom
double BetaFunction(double z, double z0)
beta function
void BetaBoostEvtVtxGenerator::Phi |
( |
double |
m = 0 | ) |
|
|
inline |
void BetaBoostEvtVtxGenerator::sigmaZ |
( |
double |
s = 1.0 | ) |
|
void BetaBoostEvtVtxGenerator::X0 |
( |
double |
m = 0 | ) |
|
|
inline |
void BetaBoostEvtVtxGenerator::Y0 |
( |
double |
m = 0 | ) |
|
|
inline |
void BetaBoostEvtVtxGenerator::Z0 |
( |
double |
m = 0 | ) |
|
|
inline |
double BetaBoostEvtVtxGenerator::alpha_ |
|
private |
double BetaBoostEvtVtxGenerator::beta_ |
|
private |
TMatrixD* BetaBoostEvtVtxGenerator::boost_ |
|
private |
double BetaBoostEvtVtxGenerator::falpha |
|
private |
double BetaBoostEvtVtxGenerator::fbetastar |
|
private |
double BetaBoostEvtVtxGenerator::femittance |
|
private |
CLHEP::HepRandomEngine* BetaBoostEvtVtxGenerator::fEngine |
|
private |
CLHEP::RandGaussQ* BetaBoostEvtVtxGenerator::fRandom |
|
private |
double BetaBoostEvtVtxGenerator::fSigmaZ |
|
private |
double BetaBoostEvtVtxGenerator::fTimeOffset |
|
private |
HepMC::FourVector* BetaBoostEvtVtxGenerator::fVertex |
|
private |
double BetaBoostEvtVtxGenerator::fX0 |
|
private |
double BetaBoostEvtVtxGenerator::fY0 |
|
private |
double BetaBoostEvtVtxGenerator::fZ0 |
|
private |
double BetaBoostEvtVtxGenerator::phi_ |
|
private |
bool BetaBoostEvtVtxGenerator::verbosity_ |
|
private |