16 string fname =
"FastSimulation/Muons/data/efficiencyL1.data";
18 std::string
path(getenv(
"CMSSW_SEARCH_PATH"));
21 std::cout <<
"File " << fname <<
" not found in " << path << std::endl;
22 throw Genexception(
" efficiency list not found for FML1EfficiencyHandler.");
27 std::ifstream & listfile = *
f1();
57 double myEffEta=0. , myEffPhi=0. , myEff;
65 int iEtaBin = (int) ( (AbsEta/2.40) *
nEtaBins);
67 }
else { myEffEta = 0.0; }
71 if (Phi < 0.) {Phi = 2*
M_PI +
Phi; }
79 }
else if (AbsEta < 2.07) {
83 }
else if (AbsEta < 2.40) {
87 }
else { myEff = 0. ; }
94 return (myEff > prob);
double Effic_Phi_Extern[nPhiBins]
double Effic_Phi_Barrel[nPhiBins]
~FML1EfficiencyHandler()
Destructor.
double tuningfactor(int ieta)
bool kill(const SimpleL1MuGMTCand *)
reject tracks according to parametrized algorithmic efficiency
static const int nPhiBins
FML1EfficiencyHandler(const RandomEngine *engine)
Constructor (read in the parametrizations from a data file)
double Effic_Phi_Endcap[nPhiBins]
double Effic_Eta[nEtaBins]
const RandomEngine * random
const LorentzVector getMomentum() const
double flatShoot(double xmin=0.0, double xmax=1.0) const
double dumpingfactor(int ieta, float pt)
static const int nEtaBins