14 std::string
fname =
"FastSimulation/ParamL3MuonProducer/data/efficiencyGL_L3TK.data";
15 std::string
path(getenv(
"CMSSW_SEARCH_PATH"));
19 std::cout <<
"File " << fname <<
" not found in " << path << std::endl;
20 throw Genexception(
" efficiency list not found for FMGLfromL3TKEfficiencyHandler.");
25 std::ifstream & listfile = *
f1();
31 std::cout <<
" *** ERROR -> FMGLfromL3TKEfficiencyHandler : nEta bins "
32 << nent <<
" instead of " <<
nEtaBins << std::endl;
56 double myEffEta=0. , myCorrection=1. , myEff;
61 int iEtaBin = (int) ( (eta/2.40) *
nEtaBins);
65 if (eta<1.04) myCorrection = 1.0296;
88 myEff = myEffEta * myCorrection;
90 return (myEff > prob) ;
static const int nEtaBins
~FMGLfromL3TKEfficiencyHandler()
const RandomEngine * random
bool kill(const SimTrack &)
double flatShoot(double xmin=0.0, double xmax=1.0) const
const math::XYZTLorentzVectorD & momentum() const
particle info...
FMGLfromL3TKEfficiencyHandler(const RandomEngine *engine)
float Effic_Eta[nEtaBins]