#include <PtYDistributor.h>
Public Member Functions | |
double | firePt (CLHEP::HepRandomEngine *) |
double | firePt (double ptmin, double ptmax, CLHEP::HepRandomEngine *) |
double | fireY (CLHEP::HepRandomEngine *) |
double | fireY (double ymin, double ymax, CLHEP::HepRandomEngine *) |
PtYDistributor () | |
PtYDistributor (const edm::FileInPath &fip, double ptmax, double ptmin, double ymax, double ymin, int ptbins, int ybins) | |
virtual | ~PtYDistributor () |
Private Attributes | |
CLHEP::RandGeneral * | fPtGenerator |
CLHEP::RandGeneral * | fYGenerator |
int | ptbins_ |
double | ptmax_ |
double | ptmin_ |
int | ybins_ |
double | ymax_ |
double | ymin_ |
Definition at line 15 of file PtYDistributor.h.
|
inline |
Definition at line 17 of file PtYDistributor.h.
References ptmin, Phase2TrackerMonitorDigi_cff::ymax, and Phase2TrackerMonitorDigi_cff::ymin.
PtYDistributor::PtYDistributor | ( | const edm::FileInPath & | fip, |
double | ptmax = 100 , |
||
double | ptmin = 0 , |
||
double | ymax = 10 , |
||
double | ymin = -10 , |
||
int | ptbins = 1000 , |
||
int | ybins = 50 |
||
) |
Definition at line 16 of file PtYDistributor.cc.
References gather_cfg::cout, Exception, f, fPtGenerator, edm::FileInPath::fullPath(), fYGenerator, i, edm::errors::NullPointerError, ptbins_, ptmax_, ptmin_, AlCaHLTBitMon_QueryRunRegistry::string, geometryCSVtoXML::xy, ybins_, ymax_, ymin_, and geometryCSVtoXML::yy.
|
inlinevirtual |
Definition at line 22 of file PtYDistributor.h.
double PtYDistributor::firePt | ( | CLHEP::HepRandomEngine * | engine | ) |
Definition at line 74 of file PtYDistributor.cc.
References ptmax_, and ptmin_.
Referenced by gen::Pythia6PtYDistGun::generateEvent().
double PtYDistributor::firePt | ( | double | ptmin, |
double | ptmax, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 94 of file PtYDistributor.cc.
References Exception, fPtGenerator, edm::errors::NullPointerError, EnergyCorrector::pt, ptmax_, and ptmin_.
double PtYDistributor::fireY | ( | CLHEP::HepRandomEngine * | engine | ) |
Definition at line 69 of file PtYDistributor.cc.
Referenced by gen::Pythia6PtYDistGun::generateEvent().
double PtYDistributor::fireY | ( | double | ymin, |
double | ymax, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 79 of file PtYDistributor.cc.
References Exception, fYGenerator, edm::errors::NullPointerError, ymax_, and ymin_.
|
private |
Definition at line 39 of file PtYDistributor.h.
Referenced by firePt(), and PtYDistributor().
|
private |
Definition at line 38 of file PtYDistributor.h.
Referenced by fireY(), and PtYDistributor().
|
private |
Definition at line 35 of file PtYDistributor.h.
Referenced by PtYDistributor().
|
private |
Definition at line 30 of file PtYDistributor.h.
Referenced by firePt(), and PtYDistributor().
|
private |
Definition at line 31 of file PtYDistributor.h.
Referenced by firePt(), and PtYDistributor().
|
private |
Definition at line 36 of file PtYDistributor.h.
Referenced by PtYDistributor().
|
private |
Definition at line 32 of file PtYDistributor.h.
Referenced by fireY(), and PtYDistributor().
|
private |
Definition at line 33 of file PtYDistributor.h.
Referenced by fireY(), and PtYDistributor().