#include <SurveyPxbDicer.h>
Classes | |
struct | findParByName |
Function object for searching for a parameter in the VPSet. More... | |
Public Types | |
typedef SurveyPxbImage::coord_t | coord_t |
typedef unsigned int | count_t |
typedef std::vector< coord_t > | fidpoint_t |
typedef SurveyPxbImage::id_t | id_t |
typedef std::pair< id_t, id_t > | idPair_t |
typedef double | value_t |
Public Member Functions | |
std::string | doDice (const fidpoint_t &fidpointvec, const idPair_t &id, const bool rotate=false) |
void | doDice (const fidpoint_t &fidpointvec, const idPair_t &id, std::ofstream &outfile, const bool rotate=false) |
SurveyPxbDicer () | |
SurveyPxbDicer (const std::vector< edm::ParameterSet > &pars, unsigned int seed) | |
Private Member Functions | |
value_t | getParByName (const std::string &name, const std::string &par, const std::vector< edm::ParameterSet > &pars) |
value_t | ranGauss (value_t mean, value_t sigma) |
coord_t | transform (const coord_t &x, const value_t &a0, const value_t &a1, const value_t &a2, const value_t &a3) |
Class to dice a picture from a given set of fiducial points This class has its use for toy MC simulations to validate the PXB survey
Definition at line 21 of file SurveyPxbDicer.h.
Definition at line 23 of file SurveyPxbDicer.h.
typedef unsigned int SurveyPxbDicer::count_t |
Definition at line 26 of file SurveyPxbDicer.h.
typedef std::vector<coord_t> SurveyPxbDicer::fidpoint_t |
Definition at line 25 of file SurveyPxbDicer.h.
Definition at line 27 of file SurveyPxbDicer.h.
typedef std::pair<id_t, id_t> SurveyPxbDicer::idPair_t |
Definition at line 28 of file SurveyPxbDicer.h.
typedef double SurveyPxbDicer::value_t |
Definition at line 24 of file SurveyPxbDicer.h.
|
inline |
Definition at line 31 of file SurveyPxbDicer.h.
SurveyPxbDicer::SurveyPxbDicer | ( | const std::vector< edm::ParameterSet > & | pars, |
unsigned int | seed | ||
) |
Definition at line 21 of file SurveyPxbDicer.cc.
References getParByName(), mean_a0, mean_a1, mean_phi, mean_scale, mean_x, mean_y, fileCollector::seed, sigma_a0, sigma_a1, sigma_phi, sigma_scale, sigma_x, and sigma_y.
std::string SurveyPxbDicer::doDice | ( | const fidpoint_t & | fidpointvec, |
const idPair_t & | id, | ||
const bool | rotate = false |
||
) |
Invoke the dicer
fidpointvec | vector with fiducial points where values need to be diced for and transformed to the photo fram |
idPair | pair of the id values |
Definition at line 37 of file SurveyPxbDicer.cc.
References a0, testProducerWithPsetDescEmpty_cfi::a2, funct::cos(), mean_a0, mean_a1, mean_phi, mean_scale, LaserDQM_cfg::p1, SiStripOfflineCRack_cfg::p2, chargedHadronTrackResolutionFilter_cfi::p3, phi, ranGauss(), svgfig::rotate(), l1tEGammaCrystalsEmulatorProducer_cfi::scale, edm::second(), sigma_a0, sigma_a1, sigma_phi, sigma_scale, sigma_x, sigma_y, Validation_hcalonly_cfi::sign, funct::sin(), transform(), x, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by MillePedeAlignmentAlgorithm::addPxbSurvey(), and doDice().
void SurveyPxbDicer::doDice | ( | const fidpoint_t & | fidpointvec, |
const idPair_t & | id, | ||
std::ofstream & | outfile, | ||
const bool | rotate = false |
||
) |
Definition at line 63 of file SurveyPxbDicer.cc.
References doDice(), timingPdfMaker::outfile, and svgfig::rotate().
|
private |
Gets parameter by name from the VPSet
name | name of the parameter to be searched for in field 'name' of the VPSet |
par | selects the value, i.e. mean or sigma |
pars | reference to VPSet |
Definition at line 75 of file SurveyPxbDicer.cc.
References DummyCfis::c, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and Skims_PA_cff::name.
Referenced by SurveyPxbDicer().
invoke the RNG to geat a gaussian smeared value
mean | mean value |
sigma |
Definition at line 45 of file SurveyPxbDicer.h.
Referenced by doDice().
|
private |
Transform the diced values to the frame of a toy photograph
x | coordinate to be transformed from local frame to photo frame |
a0 | Transformation parameter, shift in x |
a1 | Transformation parameter, shift in y |
a2 | Transformation parameter, scale*cos(phi) |
a3 | Transformation parameter, scale*sin(phi) |
Definition at line 70 of file SurveyPxbDicer.cc.
References a0, testProducerWithPsetDescEmpty_cfi::a2, and x.
Referenced by doDice().
|
private |
Definition at line 45 of file SurveyPxbDicer.h.
Referenced by doDice(), and SurveyPxbDicer().
|
private |
Definition at line 48 of file SurveyPxbDicer.h.
Referenced by doDice(), and SurveyPxbDicer().
|
private |
Definition at line 50 of file SurveyPxbDicer.h.
Referenced by doDice(), and SurveyPxbDicer().
|
private |
Definition at line 49 of file SurveyPxbDicer.h.
Referenced by doDice(), and SurveyPxbDicer().
|
private |
Definition at line 51 of file SurveyPxbDicer.h.
Referenced by SurveyPxbDicer().
|
private |
Definition at line 52 of file SurveyPxbDicer.h.
Referenced by SurveyPxbDicer().
|
private |
Definition at line 45 of file SurveyPxbDicer.h.
Referenced by doDice(), and SurveyPxbDicer().
|
private |
Definition at line 48 of file SurveyPxbDicer.h.
Referenced by doDice(), and SurveyPxbDicer().
|
private |
Definition at line 50 of file SurveyPxbDicer.h.
Referenced by doDice(), and SurveyPxbDicer().
|
private |
Definition at line 49 of file SurveyPxbDicer.h.
Referenced by doDice(), and SurveyPxbDicer().
|
private |
Definition at line 51 of file SurveyPxbDicer.h.
Referenced by doDice(), and SurveyPxbDicer().
|
private |
Definition at line 52 of file SurveyPxbDicer.h.
Referenced by doDice(), and SurveyPxbDicer().