Float_t TTriggerEffB::EffPlugElecTrig(const Int_t run, const Float_t et, const Float_t eta) { // CDF note 7940, version 3, figs 7-9 and tables 4, 6 // Updated PJB July 2007. // This treatment seems better than Simona's average values. // These are the parameters of the turn-on curve. Int_t runbnds[2]={203799, 211633}; int irun, ieta; Float_t alpha2[3][4]={{20.2, 20.9, 23.0, 29.1}, //4 eta ranges, 3 periods {22.1, 22.0, 24.1, 24.1}, {21.1, 22.6, 24.5, 24.5 }}; Float_t beta2[3][4] ={{0.48, 0.44, 0.42, 0.28}, {0.57, 0.48, 0.44, 0.44}, {0.47, 0.52, 0.42, 0.42 }}; Float_t alpha3[3]= {19.44, 20.79, 21.13}; Float_t beta3[3]= { 1.99, 1.56, 1.85}; if (fabs(eta)<1.1 )return 0.0; else if (fabs(eta)<1.52) ieta=0; else if (fabs(eta)<2.11) ieta=1; else if (fabs(eta)<2.61) ieta=2; else if (fabs(eta)<2.8 ) ieta=3; else return 0.0; if (run <= runbnds[0]) irun=0; else if(run <= runbnds[1]) irun=1; else irun=2; Float_t eff2 = 1./(1. + exp( -beta2[irun][ieta]*(et - alpha2[irun][ieta]))) ; Float_t eff3 = 1./(1. + exp( -beta3[irun]*(et - alpha3[irun]))) ; return eff2*eff3; } // ============================================================================= Float_t TTriggerEffB::EffPlugElecTrigErr(const Int_t run) { // From note 7940 (PJB) table 7 we can square and add to get roughly Float_t err = 0.004 ; return err; } //============================================================================== // this measurement is w.r.t raw missing Et calculated from the // calorimeter towers only Float_t TTriggerEffB::EffMetElecTrig(const Int_t run, const Float_t met) { //CDF note 7940 version 3, tables 4, 6. Int_t runbnds[2]={203799, 211633}; Float_t alpha13[3]= {14.79, 13.73, 14.32}; Float_t beta13[3]= {0.37, 0.37, 0.36}; int irun = 0; if (run > runbnds[0]) irun=1; else if(run > runbnds[1]) irun=2; Float_t eff = 1./(1. + exp( -beta13[irun]*(met -alpha13[irun]))) ; return eff; } Float_t TTriggerEffB::EffPlugElecTrig(const Int_t run, const Float_t et, const Float_t eta) { // CDF note 7940, version 3, figs 7-9 and tables 4, 6 // Updated PJB July 2007. // This treatment seems better than Simona's average values. // These are the parameters of the turn-on curve. Int_t runbnds[2]={203799, 211633}; int irun, ieta; Float_t alpha2[3][4]={{20.2, 20.9, 23.0, 29.1}, //4 eta ranges, 3 periods {22.1, 22.0, 24.1, 24.1}, {21.1, 22.6, 24.5, 24.5 }}; Float_t beta2[3][4] ={{0.48, 0.44, 0.42, 0.28}, {0.57, 0.48, 0.44, 0.44}, {0.47, 0.52, 0.42, 0.42 }}; Float_t alpha3[3]= {19.44, 20.79, 21.13}; Float_t beta3[3]= { 1.99, 1.56, 1.85}; if (fabs(eta)<1.1 )return 0.0; else if (fabs(eta)<1.52) ieta=0; else if (fabs(eta)<2.11) ieta=1; else if (fabs(eta)<2.61) ieta=2; else if (fabs(eta)<2.8 ) ieta=3; else return 0.0; if (run <= runbnds[0]) irun=0; else if(run <= runbnds[1]) irun=1; else irun=2; Float_t eff2 = 1./(1. + exp( -beta2[irun][ieta]*(et - alpha2[irun][ieta]))) ; Float_t eff3 = 1./(1. + exp( -beta3[irun]*(et - alpha3[irun]))) ; return eff2*eff3; } // ============================================================================= Float_t TTriggerEffB::EffPlugElecTrigErr(const Int_t run) { // From note 7940 (PJB) table 7 we can square and add to get roughly Float_t err = 0.004 ; return err; } //============================================================================== // this measurement is w.r.t raw missing Et calculated from the // calorimeter towers only Float_t TTriggerEffB::EffMetElecTrig(const Int_t run, const Float_t met) { //CDF note 7940 version 3, tables 4, 6. Int_t runbnds[2]={203799, 211633}; Float_t alpha13[3]= {14.79, 13.73, 14.32}; Float_t beta13[3]= {0.37, 0.37, 0.36}; int irun = 0; if (run > runbnds[0]) irun=1; else if(run > runbnds[1]) irun=2; Float_t eff = 1./(1. + exp( -beta13[irun]*(met -alpha13[irun]))) ; return eff; }