Skip to content

Commit

Permalink
Try to finalize here the independant validation procedure, as was don…
Browse files Browse the repository at this point in the history
…e in RecoEgamma/Examples
  • Loading branch information
David Chamont committed Nov 10, 2009
1 parent ad244c2 commit a81afad
Show file tree
Hide file tree
Showing 5 changed files with 269 additions and 269 deletions.
8 changes: 4 additions & 4 deletions Validation/RecoEgamma/src/ElectronMcFakeValidator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -439,12 +439,12 @@ ElectronMcFakeValidator::~ElectronMcFakeValidator()

void ElectronMcFakeValidator::analyze( const edm::Event & iEvent, const edm::EventSetup & iSetup )
{
std::cout << "analyzing new event " << std::endl;

// get reco electrons
edm::Handle<reco::GsfElectronCollection> gsfElectrons;
iEvent.getByLabel(electronCollection_,gsfElectrons);
edm::LogInfo("")<<"\n\n =================> Treating event "<<iEvent.id()<<" Number of electrons "<<gsfElectrons.product()->size();
edm::LogInfo("ElectronMcFakeValidator::analyze")
<<"Treating event "<<iEvent.id()
<<" with "<<gsfElectrons.product()->size()<<" electrons" ;

// get gen jets
edm::Handle<reco::GenJetCollection> genJets ;
Expand Down Expand Up @@ -867,7 +867,7 @@ void ElectronMcFakeValidator::endJob()
{
if (outputFile_!="")
{
setStoreFolder("EgammaV/ElectronMcFakeValidator/ByJob") ;
setStoreFolder("EgammaV/ElectronMcFakeValidator") ;

// matching object type
std::string matchingObjectType = "Unknown" ;
Expand Down
2 changes: 1 addition & 1 deletion Validation/RecoEgamma/src/ElectronMcSignalValidator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ void ElectronMcSignalValidator::endJob()
{
if (outputFile_!="")
{
setStoreFolder("EgammaV/ElectronMcSignalValidator/ByJob") ;
setStoreFolder("EgammaV/ElectronMcSignalValidator") ;

std::cout << "[ElectronMcSignalValidator] efficiency calculation " << std::endl ;
bookH1andDivide("h_ele_etaEff",h1_ele_simEta_matched,h1_simEta,"#eta","Efficiency","",true);
Expand Down
218 changes: 109 additions & 109 deletions Validation/RecoEgamma/test/ElectronMcFakeHistos.txt
Original file line number Diff line number Diff line change
@@ -1,140 +1,140 @@

Basic electron quantities

h_ele_charge 1 0 1 0 0 0 1 0
h_ele_vertexPt 1 0 1 0 0 0 1 0
h_ele_vertexEta 1 0 1 0 0 0 1 0
h_ele_vertexPhi 1 0 1 0 0 0 1 0
h_ele_vertexP 1 0 1 0 0 0 1 0
h_ele_vertexX 1 0 1 0 0 0 1 0
h_ele_vertexY 1 0 1 0 0 0 1 0
h_ele_vertexZ 1 0 1 0 0 0 1 0
h_ele_vertexTIP 1 1 1 0 0 0 1 0
h_ele_vertexPtVsEta_pfx 0 0 1 0 0 0 1 1
ElectronMcFakeValidator/h_ele_charge 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_vertexPt 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_vertexEta 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_vertexPhi 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_vertexP 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_vertexX 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_vertexY 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_vertexZ 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_vertexTIP 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_vertexPtVsEta_pfx 0 0 1 0 0 0 1 1

Track-cluster matching observables

h_ele_EoP 1 1 1 0 0 0 0 0
h_ele_EoP_barrel 1 1 1 0 0 0 0 0
h_ele_EoP_endcaps 1 1 1 0 0 0 1 0
h_ele_EoPout 1 1 1 0 0 0 0 0
h_ele_EoPout_barrel 1 1 1 0 0 0 0 0
h_ele_EoPout_endcaps 1 1 1 0 0 0 1 0
h_ele_EeleOPout 1 1 1 0 0 0 0 0
h_ele_EeleOPout_barrel 1 1 1 0 0 0 0 0
h_ele_EeleOPout_endcaps 1 1 1 0 0 0 1 0
h_ele_EseedOP 1 1 1 0 0 0 0 0
h_ele_EseedOP_barrel 1 1 1 0 0 0 0 0
h_ele_EseedOP_endcaps 1 1 1 0 0 0 1 0
h_ele_dEtaCl_propOut 1 1 1 0 0 0 0 0
h_ele_dEtaCl_propOut_barrel 1 1 1 0 0 0 0 0
h_ele_dEtaCl_propOut_endcaps 1 1 1 0 0 0 1 0
h_ele_dEtaEleCl_propOut 1 1 1 0 0 0 0 0
h_ele_dEtaEleCl_propOut_barrel 1 1 1 0 0 0 0 0
h_ele_dEtaEleCl_propOut_endcaps 1 1 1 0 0 0 1 0
h_ele_dEtaSc_propVtx 1 1 1 0 0 0 0 0
h_ele_dEtaSc_propVtx_barrel 1 1 1 0 0 0 0 0
h_ele_dEtaSc_propVtx_endcaps 1 1 1 0 0 0 1 0
h_ele_dPhiCl_propOut 1 1 1 0 0 0 0 0
h_ele_dPhiCl_propOut_barrel 1 1 1 0 0 0 0 0
h_ele_dPhiCl_propOut_endcaps 1 1 1 0 0 0 1 0
h_ele_dPhiEleCl_propOut 1 1 1 0 0 0 0 0
h_ele_dPhiEleCl_propOut_barrel 1 1 1 0 0 0 0 0
h_ele_dPhiEleCl_propOut_endcaps 1 1 1 0 0 0 1 0
h_ele_dPhiSc_propVtx 1 1 1 0 0 0 0 0
h_ele_dPhiSc_propVtx_barrel 1 1 1 0 0 0 0 0
h_ele_dPhiSc_propVtx_endcaps 1 1 1 0 0 0 1 0
h_ele_EoPVsEta_pfx 0 0 1 0 0 0 1 0
h_ele_EoPoutVsEta_pfx 0 0 1 0 0 0 1 0
h_ele_EeleOPoutVsEta_pfx 0 0 1 0 0 0 1 1
ElectronMcFakeValidator/h_ele_EoP 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_EoP_barrel 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_EoP_endcaps 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_EoPout 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_EoPout_barrel 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_EoPout_endcaps 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_EeleOPout 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_EeleOPout_barrel 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_EeleOPout_endcaps 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_EseedOP 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_EseedOP_barrel 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_EseedOP_endcaps 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_dEtaCl_propOut 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_dEtaCl_propOut_barrel 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_dEtaCl_propOut_endcaps 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_dEtaEleCl_propOut 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_dEtaEleCl_propOut_barrel 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_dEtaEleCl_propOut_endcaps 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_dEtaSc_propVtx 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_dEtaSc_propVtx_barrel 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_dEtaSc_propVtx_endcaps 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_dPhiCl_propOut 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_dPhiCl_propOut_barrel 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_dPhiCl_propOut_endcaps 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_dPhiEleCl_propOut 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_dPhiEleCl_propOut_barrel 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_dPhiEleCl_propOut_endcaps 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_dPhiSc_propVtx 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_dPhiSc_propVtx_barrel 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_dPhiSc_propVtx_endcaps 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_EoPVsEta_pfx 0 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_EoPoutVsEta_pfx 0 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_EeleOPoutVsEta_pfx 0 0 1 0 0 0 1 1

Electron Cluster shapes

h_ele_HoE 1 1 1 0 0 0 0 0
h_ele_HoE_barrel 1 1 1 0 0 0 0 0
h_ele_HoE_endcaps 1 1 1 0 0 0 1 0
h_scl_sigietaieta 1 1 1 0 0 0 0 0
h_scl_sigietaieta_barrel 1 1 1 0 0 0 0 0
h_scl_sigietaieta_endcaps 1 1 1 0 0 0 1 0
h_scl_E1x5 1 1 1 0 0 0 0 0
h_scl_E1x5_barrel 1 1 1 0 0 0 0 0
h_scl_E1x5_endcaps 1 1 1 0 0 0 1 0
h_scl_E2x5max 1 1 1 0 0 0 0 0
h_scl_E2x5max_barrel 1 1 1 0 0 0 0 0
h_scl_E2x5max_endcaps 1 1 1 0 0 0 1 0
h_scl_E5x5 1 1 1 0 0 0 0 0
h_scl_E5x5_barrel 1 1 1 0 0 0 0 0
h_scl_E5x5_endcaps 1 1 1 0 0 0 1 0
h_ele_HoEVsEta_pfx 0 0 1 0 0 0 1 1
ElectronMcFakeValidator/h_ele_HoE 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_HoE_barrel 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_HoE_endcaps 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_scl_sigietaieta 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_scl_sigietaieta_barrel 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_scl_sigietaieta_endcaps 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_scl_E1x5 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_scl_E1x5_barrel 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_scl_E1x5_endcaps 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_scl_E2x5max 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_scl_E2x5max_barrel 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_scl_E2x5max_endcaps 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_scl_E5x5 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_scl_E5x5_barrel 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_scl_E5x5_endcaps 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_HoEVsEta_pfx 0 0 1 0 0 0 1 1

Electron track variables

h_ele_chi2 1 1 1 0 0 0 1 0
h_ele_foundHits 1 0 1 0 0 0 1 0
h_ele_lostHits 1 0 1 0 0 0 1 0
h_ele_ambiguousTracks 1 1 1 0 0 0 1 0
h_ele_chi2VsEta_pfx 0 0 1 0 0 0 1 0
h_ele_foundHitsVsEta_pfx 0 0 1 0 0 0 1 1
ElectronMcFakeValidator/h_ele_chi2 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_foundHits 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_lostHits 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_ambiguousTracks 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_chi2VsEta_pfx 0 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_foundHitsVsEta_pfx 0 0 1 0 0 0 1 1

Electron seeds

h_ele_seedDphi2 1 0 1 0 0 0 1 0
h_ele_seedDrz2 1 0 1 0 0 0 1 0
h_ele_seedSubdet2 1 0 1 0 0 0 1 0
h_ele_seedDphi2VsEta_pfx 0 0 1 0 0 0 1 0
h_ele_seedDphi2VsPt_pfx 0 0 1 0 0 0 1 0
h_ele_seedDrz2VsEta_pfx 0 0 1 0 0 0 1 0
h_ele_seedDrz2VsPt_pfx 0 0 1 0 0 0 1 1
ElectronMcFakeValidator/h_ele_seedDphi2 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_seedDrz2 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_seedSubdet2 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_seedDphi2VsEta_pfx 0 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_seedDphi2VsPt_pfx 0 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_seedDrz2VsEta_pfx 0 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_seedDrz2VsPt_pfx 0 0 1 0 0 0 1 1

Brem fraction and related distributions

h_ele_fbrem 1 0 1 0 0 0 1 0
h_ele_classes 1 0 1 0 0 0 1 0
h_ele_eta_bbremFrac 0 0 0 1 h_ele_eta_golden h_ele_eta 1 0
h_ele_eta_goldenFrac 0 0 0 1 h_ele_eta_bbrem h_ele_eta 1 0
h_ele_eta_narrowFrac 0 0 0 1 h_ele_eta_narrow h_ele_eta 1 0
h_ele_eta_showerFrac 0 0 0 1 h_ele_eta_show h_ele_eta 1 0
h_ele_fbremvsEtamean 0 0 1 0 0 0 1 0
h_ele_fbremvsEtamode 0 0 1 0 0 0 1 1
ElectronMcFakeValidator/h_ele_fbrem 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_classes 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_eta_bbremFrac 0 0 0 1 ElectronMcFakeValidator/h_ele_eta_golden ElectronMcFakeValidator/h_ele_eta 1 0
ElectronMcFakeValidator/h_ele_eta_goldenFrac 0 0 0 1 ElectronMcFakeValidator/h_ele_eta_bbrem ElectronMcFakeValidator/h_ele_eta 1 0
ElectronMcFakeValidator/h_ele_eta_narrowFrac 0 0 0 1 ElectronMcFakeValidator/h_ele_eta_narrow ElectronMcFakeValidator/h_ele_eta 1 0
ElectronMcFakeValidator/h_ele_eta_showerFrac 0 0 0 1 ElectronMcFakeValidator/h_ele_eta_show ElectronMcFakeValidator/h_ele_eta 1 0
ElectronMcFakeValidator/h_ele_fbremvsEtamean 0 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_fbremvsEtamode 0 0 1 0 0 0 1 1

Particle flow mva

h_ele_mva 1 0 1 0 0 0 1 1
ElectronMcFakeValidator/h_ele_mva 1 0 1 0 0 0 1 1

Isolation sums

h_ele_tkSumPt_dr03 1 1 1 0 0 0 1 0
h_ele_ecalRecHitSumEt_dr03 1 1 1 0 0 0 1 0
h_ele_hcalDepth1TowerSumEt_dr03 1 1 1 0 0 0 0 0
h_ele_hcalDepth2TowerSumEt_dr03 1 1 1 0 0 0 1 0
h_ele_tkSumPt_dr04 1 1 1 0 0 0 1 0
h_ele_ecalRecHitSumEt_dr04 1 1 1 0 0 0 1 0
h_ele_hcalDepth1TowerSumEt_dr04 1 1 1 0 0 0 0 0
h_ele_hcalDepth2TowerSumEt_dr04 1 1 1 0 0 0 1 1
ElectronMcFakeValidator/h_ele_tkSumPt_dr03 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_ecalRecHitSumEt_dr03 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_hcalDepth1TowerSumEt_dr03 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_hcalDepth2TowerSumEt_dr03 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_tkSumPt_dr04 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_ecalRecHitSumEt_dr04 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_hcalDepth1TowerSumEt_dr04 1 1 1 0 0 0 0 0
ElectronMcFakeValidator/h_ele_hcalDepth2TowerSumEt_dr04 1 1 1 0 0 0 1 1

Distributions for all reconstructed electrons (i.e. not requiring a match with a reco jet)

h_recEleNum 1 0 1 0 0 0 1 0
h_ele_EoverP_all 1 1 1 0 0 0 1 0
h_ele_EseedOP_all 1 1 1 0 0 0 1 0
h_ele_EoPout_all 1 1 1 0 0 0 1 0
h_ele_EeleOPout_all 1 1 1 0 0 0 1 0
h_ele_TIP_all 1 1 1 0 0 0 1 0
h_ele_dEtaSc_propVtx_all 1 1 1 0 0 0 1 0
h_ele_dPhiSc_propVtx_all 1 1 1 0 0 0 1 0
h_ele_dEtaCl_propOut_all 1 1 1 0 0 0 1 0
h_ele_dPhiCl_propOut_all 1 1 1 0 0 0 1 0
h_ele_HoE_all 1 1 1 0 0 0 1 0
h_ele_mee_all 1 0 1 0 0 0 1 0
h_ele_mee_os 1 0 1 0 0 0 1 1
ElectronMcFakeValidator/h_recEleNum 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_EoverP_all 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_EseedOP_all 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_EoPout_all 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_EeleOPout_all 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_TIP_all 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_dEtaSc_propVtx_all 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_dPhiSc_propVtx_all 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_dEtaCl_propOut_all 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_dPhiCl_propOut_all 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_HoE_all 1 1 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_mee_all 1 0 1 0 0 0 1 0
ElectronMcFakeValidator/h_ele_mee_os 1 0 1 0 0 0 1 1

Reconstruction efficiency

h_ele_absetaEff 0 0 1 1 h_ele_matchingObjectAbsEta_matched h_matchingObject_abseta 1 0
h_ele_etaEff 0 0 1 1 h_ele_matchingObjectEta_matched h_matchingObject_eta 1 0
h_ele_ptEff 0 0 1 1 h_ele_matchingObjectPt_matched h_matchingObject_Pt 1 0
h_ele_phiEff 0 0 1 1 h_ele_matchingObjectPhi_matched h_matchingObject_phi 1 0
h_ele_zEff 0 0 1 1 h_ele_matchingObjectZ_matched h_matchingObject_z 1 0
h_ele_etaEff_all 0 0 1 1 h_ele_vertexEta_all h_matchingObject_eta 1 0
h_ele_ptEff_all 0 0 1 1 h_ele_vertexPt_all h_matchingObject_Pt 1 0
ElectronMcFakeValidator/h_ele_absetaEff 0 0 1 1 ElectronMcFakeValidator/h_ele_matchingObjectAbsEta_matched ElectronMcFakeValidator/h_matchingObject_abseta 1 0
ElectronMcFakeValidator/h_ele_etaEff 0 0 1 1 ElectronMcFakeValidator/h_ele_matchingObjectEta_matched ElectronMcFakeValidator/h_matchingObject_eta 1 0
ElectronMcFakeValidator/h_ele_ptEff 0 0 1 1 ElectronMcFakeValidator/h_ele_matchingObjectPt_matched ElectronMcFakeValidator/h_matchingObject_Pt 1 0
ElectronMcFakeValidator/h_ele_phiEff 0 0 1 1 ElectronMcFakeValidator/h_ele_matchingObjectPhi_matched ElectronMcFakeValidator/h_matchingObject_phi 1 0
ElectronMcFakeValidator/h_ele_zEff 0 0 1 1 ElectronMcFakeValidator/h_ele_matchingObjectZ_matched ElectronMcFakeValidator/h_matchingObject_z 1 0
ElectronMcFakeValidator/h_ele_etaEff_all 0 0 1 1 ElectronMcFakeValidator/h_ele_vertexEta_all ElectronMcFakeValidator/h_matchingObject_eta 1 0
ElectronMcFakeValidator/h_ele_ptEff_all 0 0 1 1 ElectronMcFakeValidator/h_ele_vertexPt_all ElectronMcFakeValidator/h_matchingObject_Pt 1 0

Loading

0 comments on commit a81afad

Please sign in to comment.