Studies of Electron Charge Misidentification Rate in 22X: Wrap Up

Sample(s)

  • primary study:
    • full statistics of /RelValSingleElectronFlatPt5To100/CMSSW_2_2_7_IDEAL_V12_v1/GEN-SIM-RECO
      • 1 Million electron particle gun events, abs(η) < 2.4 , 5 < pT < 100 GeV
      • each event contains particle gun particle and its anti-particle with opposite kinematics
  • physics samples:
    • WZ: WZ_incl_Summer08_IDEAL_V11_redigi_v1
    • WW: WW_Summer08_IDEAL_V11_redigi_v1
    • ZZ: ZZ_Summer08_IDEAL_V11_redigi_v1
    • W+Jets:WJets-madgraph_Summer08_IDEAL_V11_redigi_v1
    • Dyee, DYmm, DYtt: ZJets-madgraph_Summer08_IDEAL_V11_redigi_v1
    • Ttbar: TTJets-madgraph_Fall08_IDEAL_V11_redigi_v10
    • Tw: SingleTop_tWChannel_Summer08_IDEAL_V11_redigi_v3

Basic selection

  • true:
    • genps particle with genps_id == +-11
    • pT >= 10 GeV
  • reco:
    • els_p4 pT >= 10 GeV

Code

  • important: all previous studies in 22X used an electron isolation without the ecal and hcal components, now fixed

Show code  Hide code 

    //Event Loop
    unsigned int nEvents = tree->GetEntries();
    // nEvents = 100;
    for( unsigned int event = 0; event < nEvents; ++event) {
      cms2.GetEntry(event);
      ++nEventsTotal;
      
      if ( nEventsTotal%10000 == 0 ) {
   std::cout << "Event: " << nEventsTotal << endl;
      }

      // loop over true electrons
      for ( unsigned int els = 0;
       els < genps_p4().size();
       ++els ) {

   // check for true electron
   if ( TMath::Abs(genps_id()[els]) != 11 ) continue;

   // check for pT >= 10 GeV
   if ( genps_p4()[els].pt() < 10. ) continue;

   // fill true histrograms
   els_pt_sim->Fill(genps_p4()[els].pt());
   els_eta_sim->Fill(genps_p4()[els].eta());

      }

      // loop over reco electrons
      for (unsigned int els = 0; 
           els < els_p4().size(); 
      ++els) {

   // cuts

   // check for pT >= 10 GeV
   if ( els_p4()[els].pt() < 10. ) continue;

//    if ( !goodElectronWithoutIsolation(els) ) continue;
   if ( !goodElectronIsolated(els,true) ) continue;
   if ( conversionElectron(els) ) continue;
   // Yanjun's conversion removal
//    if ( conversionElectron_PIXHIT(els) ) continue;

   // check how many electrons don't have an associated track
   els_trkId->Fill(els_trkidx().at(els));

   // tmp charge variable
   double charge = els_charge().at(els);

   // if electron has associated track and track charge is not equal to electron charge, veto
    int trk = els_trkidx().at(els);
   if ( (trk >= 0) && (charge != trks_charge().at(trk)) ) {
     continue;
   }

   // exclude reco electron which is not a true electron
   if ( abs(els_mc_id()[els]) != 11 ) continue;

   // fill reco
   els_pt_reco->Fill(els_p4().at(els).Pt());
   els_eta_reco->Fill(els_p4().at(els).eta());

   // fill reco_corCharge
   if ( (charge == -1 && els_mc_id().at(els) == 11) || (charge == 1 && els_mc_id().at(els) == -11) ) {
     els_pt_reco_corCharge->Fill(els_p4().at(els).Pt());
     els_eta_reco_corCharge->Fill(els_p4().at(els).eta());
   }

   // fill recosim
   els_pt_recosim->Fill(els_mc_p4().at(els).Pt());
   els_eta_recosim->Fill(els_mc_p4().at(els).eta());

   // correct charge identified
   if ( (charge == -1 && els_mc_id().at(els) == 11) || (charge == 1 && els_mc_id().at(els) == -11) ) {

     els_pt_recosim_corCharge->Fill(els_mc_p4().at(els).Pt());
     els_eta_recosim_corCharge->Fill(els_mc_p4().at(els).eta());

     // incorrect charge identified
   } else {

     els_pt_recosim_incorCharge->Fill(els_mc_p4().at(els).Pt());
     els_eta_recosim_incorCharge->Fill(els_mc_p4().at(els).eta());
   }

      }
      
    }
    
  }

Single Electron studies

comment reco efficiency [%] barrel reco efficiency [%] forward reco efficiency [%] charge misidentification rate [%] barrel charge misidentification rate [%] forward charge misidentification rate [%]
no cuts 94.130 96.291 89.967 2.555 0.884 4.983
goodElectronWithoutIsolation 87.945 91.939 81.107 1.999 0.725 3.962
goodElectronIsolated 82.494 87.380 74.260 1.827 0.707 3.634
goodElectronIsolated + ConversionVeto (Puneeth) 81.323 87.132 71.903 1.554 0.671 3.039
goodElectronIsolated + ConversionVeto (Puneeth+Yanjun) 81.077 87.132 71.344 1.550 0.671 3.041
goodElectronIsolated + ConversionVeto (Puneeth) + Veto electrons which don't agree with assoc. track charge 79.643 86.434 68.898 0.414 0.138 0.901

* chosen operation point: goodElectronIsolated + ConversionVeto (Puneeth) + Veto electrons which don't agree with assoc. track charge


Different samples

Sample reco efficiency [%] barrel reco efficiency [%] forward reco efficiency [%] charge misidentification rate [%] barrel charge misidentification rate [%] forward charge misidentification rate [%]
SingleElectrons 79.643 86.434 68.898 0.414 0.138 0.901
WZ 64.361 73.444 50.295 0.295 0.181 0.682
WW 68.069 74.263 58.649 0.211 0.063 0.640
ZZ 63.110 70.772 49.774 0.155 0.064 0.488
W+Jets 66.892 74.008 56.144 0.274 0.084 0.681
Z+Jets 69.771 75.245 58.780 0.213 0.089 0.535
TT+Jets 61.578 66.503 47.559 0.187 0.088 0.799
tW 67.245 72.534 53.947 0.108 0.085 0.547

WZ

WZ/RecoEfficiencyPt WZ/ChargeMisIdRatePt
WZ/RecoEfficiencyEta WZ/ChargeMisIdRateEta

WW

WW/RecoEfficiencyPt WW/ChargeMisIdRatePt
WW/RecoEfficiencyEta WW/ChargeMisIdRateEta

ZZ

ZZ/RecoEfficiencyPt ZZ/ChargeMisIdRatePt
ZZ/RecoEfficiencyEta ZZ/ChargeMisIdRateEta

W+Jets

WJets/RecoEfficiencyPt WJets/ChargeMisIdRatePt
WJets/RecoEfficiencyEta WJets/ChargeMisIdRateEta

Z+Jets

ZJets/RecoEfficiencyPt ZJets/ChargeMisIdRatePt
ZJets/RecoEfficiencyEta ZJets/ChargeMisIdRateEta

TT+Jets

TTJets/RecoEfficiencyPt TTJets/ChargeMisIdRatePt
TTJets/RecoEfficiencyEta TTJets/ChargeMisIdRateEta

tW

tW/RecoEfficiencyPt tW/ChargeMisIdRatePt
tW/RecoEfficiencyEta tW/ChargeMisIdRateEta

Topic revision: r3 - 18 Jul 2009 - 05:16:05 - OliverGutsche

tip TWiki Tip of the Day
Raw Text link
At the bottom of the page next to Edit and Attach , there is a Raw Text link that allows one to ... Read on Read more

 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback