|
virtual TMatrixD * | GetInvLorentzBoost () |
|
| HLLHCEvtVtxGenerator (const edm::ParameterSet &p) |
|
virtual HepMC::FourVector * | newVertex (CLHEP::HepRandomEngine *) |
| return a new event vertex More...
|
|
virtual | ~HLLHCEvtVtxGenerator () |
|
| BaseEvtVtxGenerator (const edm::ParameterSet &) |
|
virtual HepMC::FourVector * | lastVertex () |
|
virtual void | produce (edm::Event &, const edm::EventSetup &) override |
|
virtual | ~BaseEvtVtxGenerator () |
|
| EDProducer () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDProducer () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector
< edm::ProductResolverIndex >
const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription
const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
|
virtual | ~ProducerBase () noexcept(false) |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector
< ProductResolverIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
Definition at line 26 of file HLLHCEvtVtxGenerator.h.
double HLLHCEvtVtxGenerator::integrandCC |
( |
double |
x, |
|
|
double |
z, |
|
|
double |
t |
|
) |
| const |
|
private |
Definition at line 166 of file HLLHCEvtVtxGenerator.cc.
References bets, betx, constexpr, funct::cos(), create_public_lumi_plots::exp, relval_2017::k, relval_steps::k2, phi, phiCR, mps_fire::result, RF800, alignCSCRings::s, sigs, sigx, funct::sin(), mathSSE::sqrt(), wcc, and z.
Referenced by intensity().
169 constexpr double local_c_light = 2.99792458e8;
171 const double k =
wcc/local_c_light*two_pi;
172 const double k2 = k*
k;
175 const double cos2 = cos*
cos;
176 const double sin2 = sin*
sin;
179 const double sigmax2=sigx2*(1+
z*
z/(
betx*
betx));
183 constexpr double factorRMSgauss4 = 1./sqrt2/gamma34 * gamma14;
184 constexpr double NormFactorGauss4 = sqrt2to5 * gamma54 * gamma54;
187 const double sinCR2 = sinCR*sinCR;
192 const double norm =2.0/(two_pi*sigs2);
197 -1.0/(4*
k2*sigmax2)*(
205 -
x*
x*(cos2/sigmax2 + sin2/sigs2)
207 + 2*
x*
cos*cosks*sinkct*sinCR/
k/sigmax2
214 const double norm = 2.0/(NormFactorGauss4*sigs2*factorRMSgauss4);
215 const double sigs4=sigs2*sigs2*factorRMSgauss4*factorRMSgauss4;
220 -z*z*z*z*cos2*cos2/sigs4
221 -6*ct*ct*z*z*cos2/sigs4
222 -sin2/(4*
k2*sigmax2)*(
228 -4 * cosks*cosks * sinct*sinct)
Sin< T >::type sin(const T &t)
Cos< T >::type cos(const T &t)
HepMC::FourVector * HLLHCEvtVtxGenerator::newVertex |
( |
CLHEP::HepRandomEngine * |
engine | ) |
|
|
virtual |
return a new event vertex
Implements BaseEvtVtxGenerator.
Definition at line 88 of file HLLHCEvtVtxGenerator.cc.
References betagamma, bets, betx, KineDebug3::count(), epssn, epsxn, fMeanX, fMeanY, fMeanZ, fTimeOffset, BaseEvtVtxGenerator::fVertex, i, intensity(), sigma(), sigs, t, x, y, and z.
92 double x(0.),
y(0.),
z(0.),
t(0.),
i(0.);
96 auto shoot = [&](){
return CLHEP::RandFlat::shoot(engine); };
99 z=(shoot()-0.5)*6.0*
sigs;
100 t=(shoot()-0.5)*6.0*
sigs;
107 <<
"i>imax : "<<
i<<
" > "<<imax<<endl;
109 }
while ((
i<imax*shoot())&&count<10000);
112 <<
" count : "<<count<<endl;
115 fVertex =
new HepMC::FourVector();
HepMC::FourVector * fVertex
double intensity(double x, double y, double z, double t) const
double sigma(double z, double epsilon, double beta, double betagamma) const