Example #1
0
 def event_weight(self, row):
     if row.run > 2:
         return 1.
     return self.pucorrector(row.nTruePU) * \
         mcCorrectors.get_muon_corrections(row,'m1','m2') * \
         mcCorrectors.get_electron_corrections(row, 'e') * \
         mcCorrectors.double_muon_trigger(row,'m1','m2')
Example #2
0
        def fill_folder(x, w):
            histos[x + '/weight'].Fill(w)
            histos[x + '/rho'].Fill(row.rho, w)
            histos[x + '/nvtx'].Fill(row.nvtx, w)
            histos[x + '/prescale'].Fill(row.mu17ele8Prescale, w)
            histos[x + '/group'].Fill(row.mu17ele8Group, w)
            histos[x + '/ePt'].Fill(row.ePt, w)
            histos[x + '/mPt'].Fill(row.mPt, w)
            histos[x + '/eAbsEta'].Fill(row.eAbsEta, w)
            histos[x + '/mAbsEta'].Fill(row.mAbsEta, w)
            histos[x + '/mPixHits'].Fill(row.mPixHits, w)
            histos[x + '/eJetBtag'].Fill(row.eJetBtag, w)
            histos[x + '/mJetBtag'].Fill(row.mJetBtag, w)
            histos[x + '/emMass'].Fill(row.e_m_Mass, w)
            histos[x + '/emMass_noweight'].Fill(row.e_m_Mass)

            histos[x + '/bjetVeto'].Fill(row.bjetVeto, w)
            histos[x + '/bjetCSVVeto'].Fill(row.bjetCSVVeto, w)
            histos[x + '/muVetoPt5'].Fill(row.muVetoPt5, w)
            histos[x + '/tauVetoPt20'].Fill(row.tauVetoPt20, w)
            histos[x + '/eVetoCicTightIso'].Fill(row.eVetoCicTightIso, w)
            if row.run < 2:
                histos[x + "/trig_weight"].Fill(
                    mcCorrectors.correct_mueg_mu(row.mPt, row.mAbsEta) *
                    mcCorrectors.correct_mueg_e(row.ePt, row.eAbsEta))
                histos[x + "/PU_weight"].Fill(self.pucorrector(row.nTruePU))
                histos[x + "/idIso_weight"].Fill(
                    mcCorrectors.get_muon_corrections(row, 'm') *
                    mcCorrectors.get_electron_corrections(row, 'e'))
Example #3
0
 def event_weight(self, row):
     if row.run > 2:
         return 1.
     return self.pucorrector(row.nTruePU) * \
         mcCorrectors.get_muon_corrections(row,'m') * \
         mcCorrectors.get_electron_corrections(row,'e') * \
         mcCorrectors.correct_mueg_mu(row.mPt, row.mAbsEta) * \
         mcCorrectors.correct_mueg_e(row.ePt, row.eAbsEta)
Example #4
0
 def correction(self, row):
     return self.pucorrector(row.nTruePU) * \
         mcCorrectors.get_muon_corrections(row,'m1','m2') * \
         mcCorrectors.double_muon_trigger(row,'m1','m2')
Example #5
0
 def correction(self, row):
     return self.pucorrector(row.nTruePU) * \
         mcCorrectors.get_muon_corrections(row,'m') * \
         mcCorrectors.get_electron_corrections(row,'e') * \
         mcCorrectors.correct_mueg_mu(row.mPt, row.mAbsEta) * \
         mcCorrectors.correct_mueg_e(row.ePt, row.eAbsEta)
Example #6
0
 def event_weight(self, row):
     if row.run > 2:
         return 1.
     return self.pucorrector(row.nTruePU) * \
         mcCorrectors.get_muon_corrections(row,'m') * \
         mcCorrectors.get_electron_corrections(row, 'e1','e2')