CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PtYDistributor.h
Go to the documentation of this file.
1 #ifndef gen_PTYDISTRIBUTOR_H
2 #define gen_PTYDISTRIBUTOR_H
3 
4 #include <fstream>
5 #include <iostream>
6 #include <sstream>
7 
8 #include "CLHEP/Random/JamesRandom.h"
9 #include "CLHEP/Random/RandGeneral.h"
10 
12 
13 namespace gen
14 {
16  public:
18  //PtYDistributor(std::string inputfile, CLHEP::HepRandomEngine& fRandomEngine, double ptmax, double ptmin, double ymax, double ymin, int ptbins, int ybins);
19  PtYDistributor(const edm::FileInPath& fip, CLHEP::HepRandomEngine& fRandomEngine,
20  double ptmax, double ptmin, double ymax, double ymin,
21  int ptbins, int ybins);
22  virtual ~PtYDistributor() {};
23 
24  double fireY();
25  double firePt();
26  double fireY(double ymin, double ymax);
27  double firePt(double ptmin, double ptmax);
28 
29  private:
30  double ptmax_;
31  double ptmin_;
32  double ymax_;
33  double ymin_;
34 
35  int ptbins_;
36  int ybins_;
37 
38  CLHEP::RandGeneral* fYGenerator;
39  CLHEP::RandGeneral* fPtGenerator;
40 
41  };
42 }
43 
44 #endif
45 
CLHEP::RandGeneral * fYGenerator
virtual ~PtYDistributor()
CLHEP::RandGeneral * fPtGenerator
double ptmin
Definition: HydjetWrapper.h:85