Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:15:01

0001 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0002   Central class for different randomizers
0003   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
0004 
0005 #ifndef CustomRand_H
0006 #define CustomRand_H
0007 
0008 #include "TF1.h"
0009 #include "TF2.h"
0010 #include "TF3.h"
0011 #include "TRandom3.h"
0012 
0013 class CustomRand
0014 {
0015   TRandom3 * r;
0016 
0017   TF1 * PhiRand;
0018   TF1 * ThetaRand;
0019   TF1 * ERand;
0020   TF3 * VertexRand;
0021 
0022   bool PartSet = false;
0023   bool VertSet = false;
0024  public:
0025   double Phi();
0026   double Theta();
0027   double E();
0028 
0029   CustomRand(const char * fname,
0030              double ERange[2], double ThetaRange[2],
0031              double PhiRange[2]);
0032   CustomRand(const char * fname,
0033              double VRange[6]);
0034 
0035   CustomRand(const char * fname,
0036              double ERange[2], double ThetaRange[2],
0037              double PhiRange[2], int demp_seed);
0038 
0039 
0040 
0041   /* CustomRand(double ERange[2], double PhiRange[2], */
0042   /*            bouble PhiRange[2], */
0043   /*            double VRange[6]); */
0044 };
0045 
0046 #endif