13 #include "Math/SMatrix.h"
14 #include "Math/SVector.h"
15 #include "CLHEP/Random/RandGauss.h"
16 #include "CLHEP/Random/Random.h"
23 CLHEP::HepRandom::setTheSeed( seed );
52 std::ostringstream oss;
53 oss <<
id.first <<
" "
62 <<
" a0-a3: " << a0 <<
" " << a1 <<
" " << a2 <<
" " << a3
65 <<
" x0: " << fidpointvec[0].
x() <<
" " << fidpointvec[0].y()
66 <<
" x1: " << fidpointvec[1].x() <<
" " << fidpointvec[1].y()
67 <<
" x2: " << fidpointvec[2].x() <<
" " << fidpointvec[2].y()
68 <<
" x3: " << fidpointvec[3].x() <<
" " << fidpointvec[3].y()
75 outfile <<
doDice(fidpointvec,
id, rotate);
80 return coord_t(a0+a2*x.
x()+a3*x.
y(), a1-a3*x.
x()+a2*x.
y());
85 std::vector<edm::ParameterSet>::const_iterator it;
86 it = std::find_if(pars.begin(), pars.end(), std::bind1st(
findParByName(),name));
87 if (it == pars.end()) {
throw std::runtime_error(
"Parameter not found in SurveyPxbDicer::getParByName"); }
88 return (*it).getParameter<
value_t>(par);
Function object for searching for a parameter in the VPSet.
Sin< T >::type sin(const T &t)
coord_t transform(const coord_t &x, const value_t &a0, const value_t &a1, const value_t &a2, const value_t &a3)
U second(std::pair< T, U > const &p)
T x() const
Cartesian x coordinate.
std::string doDice(const fidpoint_t &fidpointvec, const idPair_t &id, const bool rotate=false)
Cos< T >::type cos(const T &t)
value_t ranGauss(value_t mean, value_t sigma)
std::vector< coord_t > fidpoint_t
SurveyPxbImage::coord_t coord_t
value_t getParByName(const std::string &name, const std::string &par, const std::vector< edm::ParameterSet > &pars)
std::pair< id_t, id_t > idPair_t