14 std::string
fname =
"FastSimulation/ParamL3MuonProducer/data/efficiencyGL_L3.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 FMGLfromL3EfficiencyHandler.");
25 std::ifstream & listfile = *
f1();
31 std::cout <<
" *** ERROR -> FMGLfromL3EfficiencyHandler : nEta bins "
32 << nent <<
" instead of " <<
nEtaBins << std::endl;
56 double myEffEta=0. , myEff;
62 int iEtaBin = (int) ( (eta/2.40) *
nEtaBins);
89 return (myEff > prob) ;
float Effic_Eta[nEtaBins]
~FMGLfromL3EfficiencyHandler()
const RandomEngine * random
FMGLfromL3EfficiencyHandler(const RandomEngine *engine)
bool kill(const SimTrack &)
static const int nEtaBins
double flatShoot(double xmin=0.0, double xmax=1.0) const
const math::XYZTLorentzVectorD & momentum() const
particle info...