Difference: SWGuideLikelihoodElectronID (1 vs. 16)

Revision 162010-03-12 - EmanueleDiMarco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideElectronID"

Electron Identification using Likelihood

Complete: 3
Line: 170 to 170
 > cmsRun emanuele/EgammaTools/test/testElectronIDWithLH.cfg
Added:
>
>
Responsible: EmanueleDiMarco
 
Added:
>
>
-- EmanueleDiMarco - 12 March 2010
 
Deleted:
<
<
-- EmanueleDiMarco - 22 Apr 2008
 
META TOPICMOVED by="MatteoSani" date="1236080893" from="CMS.LikelihoodElectronID" to="CMS.SWGuideLikelihoodElectronID"

Revision 152009-03-03 - MatteoSani

Line: 1 to 1
 
META TOPICPARENT name="SWGuideElectronID"

Electron Identification using Likelihood

Complete: 3
Line: 173 to 173
 

-- EmanueleDiMarco - 22 Apr 2008 \ No newline at end of file

Added:
>
>
META TOPICMOVED by="MatteoSani" date="1236080893" from="CMS.LikelihoodElectronID" to="CMS.SWGuideLikelihoodElectronID"

Revision 142008-04-23 - RobertoSalerno

Line: 1 to 1
 
META TOPICPARENT name="SWGuideElectronID"

Electron Identification using Likelihood

Complete: 3

Revision 132008-04-22 - EmanueleDiMarco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideElectronID"

Electron Identification using Likelihood

Complete: 3
Line: 67 to 67
 

Setup of the code

Added:
>
>

Tags in 20X

no extra tags needed! all is in the release.
 

Tags in 17X

cvs co -r V00-00-07-02   EgammaAnalysis/ElectronIDAlgos
Line: 110 to 114
 Since the SQLite DB file is not yet distributed on sites, it has to be exported in the CRAB InputSandBox. To do it, change, in EgammaAnalysis/ElectronIDESSources/data/likelihoodPdfsDB.cfi:
Added:
>
>
  • in CMSSW_16X:
 
replace CondDBCommon.connect = "sqlite_file:electronIdLikelihoodTkIsolated.db"    
replace CondDBCommon.catalog = "file:electronIdLikelihoodTkIsolatedCRAB.xml"
Line: 125 to 131
 
Added:
>
>
  • in CMSSW_20X

this is temporary, until the files are exported on all the sites.

replace CondDBCommon.connect = "sqlite_file:electronIdLikelihoodTkIsolated.db"    

and, in the CRAB cfg file:

## files to be put in InputSandBox, full path or in the current directory
## (wildcard * are allowed): comma separated list
additional_input_files = /afs/cern.ch/user/e/emanuele/public/4Likelihood/PDFsSQLite/CMSSW_2_0_X/electronIdLikelihoodTkIsolated.db

 

Test the likelihood

Changed:
<
<
Examples of analyzers tested in CMSSW_168 can be found here:
>
>
Examples of analyzers can be found here:

  • CMSSW_1_6_X:
 
> cvs co -d emanuele/EgammaTools UserCode/emanuele/EgammaTools
> scramv1 b
> cmsRun emanuele/EgammaTools/test/testElectronIDWithLH.cfg
\ No newline at end of file
Added:
>
>
  • CMSSW_2_0_X:

> cvs co -r edm-22Apr08 -d emanuele/EgammaTools UserCode/emanuele/EgammaTools
> scramv1 b
> cmsRun emanuele/EgammaTools/test/testElectronIDWithLH.cfg

-- EmanueleDiMarco - 22 Apr 2008

Revision 122008-02-28 - EmanueleDiMarco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideElectronID"

Electron Identification using Likelihood

Complete: 3
Line: 12 to 12
 
  • DeltaEta between SuperCluster position and track direction at vertex extrapolated to ECAL assuming no radiation
  • DeltaPhi between SuperCluster position and track direction at vertex
  • Ratio of energy in HCAL behind SuperCluster to SuperCluster energy
Changed:
<
<
  • Combination in a linear Fisher discriminant of cluster shape variables:
>
>
  • Cluster shape variables:
 
    • Energy in 3x3 crystals / energy in 5x5 crystals
    • SigmaEtaEta cluster shape covariance
Line: 69 to 69
 

Tags in 17X

Changed:
<
<
cvs co -r V00-00-07-01 EgammaAnalysis/ElectronIDAlgos
>
>
cvs co -r V00-00-07-02 EgammaAnalysis/ElectronIDAlgos
 cvs co -r V00-00-04 EgammaAnalysis/ElectronIDProducers cvs co -r V00-00-03-01 EgammaAnalysis/ElectronIDESSources cvs co -r V00-01-01 CondCore/EgammaPlugins
Line: 79 to 79
 

Tags in 16X

Changed:
<
<
cvs co -r V00-00-07-01 EgammaAnalysis/ElectronIDAlgos
>
>
cvs co -r V00-00-07-02 EgammaAnalysis/ElectronIDAlgos
 cvs co -r V00-00-04 EgammaAnalysis/ElectronIDProducers cvs co -r V00-00-03-01 EgammaAnalysis/ElectronIDESSources cvs co -r V00-01-01 CondCore/EgammaPlugins cvs co -r V02-06-02 CondFormats/DataRecord cvs co -r V00-02-00 CondFormats/EgammaObjects cvs co -r V00-01-03 CondFormats/PhysicsToolsObjects
Deleted:
<
<
cvs co -r V00-05-00 DataFormats/EgammaReco cvs co -r V00-05-07 RecoEcal/EgammaClusterProducers cvs co -r V00-03-00 RecoEcal/EgammaCoreTools

for releases 1_6_8, 1_6_9 apply the following backportings:

cvs up -r 1.10 DataFormats/EgammaReco/interface/BasicCluster.h
cvs up -r 1.10 RecoEcal/EgammaCoreTools/interface/PositionCalc.h
 

Revision 112008-02-22 - EmanueleDiMarco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideElectronID"

Electron Identification using Likelihood

Complete: 3
Line: 15 to 15
 
  • Combination in a linear Fisher discriminant of cluster shape variables:
    • Energy in 3x3 crystals / energy in 5x5 crystals
    • SigmaEtaEta cluster shape covariance
Deleted:
<
<
    • Lateral moment
    • Complex Zernike moment A20
  Specialized pdfs are for:
  • ECAL barrel, ECAL endcap
Line: 27 to 25
  Species: only two species are currently considered:
  • Electrons: pdfs taken from pure di-electron sample, particle gun
Changed:
<
<
  • Jets: QCD samples, pdfs are the weighted sum of pdf's for jet pT bins from 0-230 GeV. The weight is the product of the reconstruction efficiency as a pixelMatchGsfElectron x cross section.
>
>
  • Jets: QCD samples, pdfs are the weighted sum of pdf's for di-jets from different pT bins from enriched samples. The weight is the product of the L1 filter efficiency and the cross section.
 
Line: 69 to 67
 

Setup of the code

Changed:
<
<

compilation in 17X

>
>

Tags in 17X

 
Changed:
<
<
cvs co -r V00-00-07 EgammaAnalysis/ElectronIDAlgos
>
>
cvs co -r V00-00-07-01 EgammaAnalysis/ElectronIDAlgos
 cvs co -r V00-00-04 EgammaAnalysis/ElectronIDProducers
Changed:
<
<
cvs co -r V00-00-03 EgammaAnalysis/ElectronIDESSources
>
>
cvs co -r V00-00-03-01 EgammaAnalysis/ElectronIDESSources
 cvs co -r V00-01-01 CondCore/EgammaPlugins cvs co -r V00-02-00 CondFormats/EgammaObjects
Changed:
<
<

compilation in 16X

>
>

Tags in 16X

 
Changed:
<
<
cvs co -r V00-00-07 EgammaAnalysis/ElectronIDAlgos
>
>
cvs co -r V00-00-07-01 EgammaAnalysis/ElectronIDAlgos
 cvs co -r V00-00-04 EgammaAnalysis/ElectronIDProducers
Changed:
<
<
cvs co -r V00-00-03 EgammaAnalysis/ElectronIDESSources
>
>
cvs co -r V00-00-03-01 EgammaAnalysis/ElectronIDESSources
 cvs co -r V00-01-01 CondCore/EgammaPlugins cvs co -r V02-06-02 CondFormats/DataRecord cvs co -r V00-02-00 CondFormats/EgammaObjects cvs co -r V00-01-03 CondFormats/PhysicsToolsObjects cvs co -r V00-05-00 DataFormats/EgammaReco
Deleted:
<
<
cvs co -r V00-00-03 PhysicsTools/StatPatternRecognition
 cvs co -r V00-05-07 RecoEcal/EgammaClusterProducers cvs co -r V00-03-00 RecoEcal/EgammaCoreTools
Line: 100 to 97
 cvs up -r 1.10 RecoEcal/EgammaCoreTools/interface/PositionCalc.h
Deleted:
<
<
Since the SQLite DB file is only available in releases >17X, use a local file. Change, in EgammaAnalysis/ElectronIDESSources/data/likelihoodPdfsDB.cfi

replace CondDBCommon.connect = "sqlite_file:/afs/cern.ch/user/e/emanuele/scratch0/vanilla131HLT6/src/EgammaAnalysis/ElectronIDAlgos/test/electronlikelihood.db"    
replace CondDBCommon.catalog = "file:/afs/cern.ch/user/e/emanuele/scratch0/vanilla131HLT6/src/EgammaAnalysis/ElectronIDAlgos/test/mycatalog.xml"

with:

replace CondDBCommon.connect = "sqlite_file:/afs/cern.ch/user/e/emanuele/public/electronLikelihoodDb160/electronIdLikelihood.db"    
replace CondDBCommon.catalog = "file:/afs/cern.ch/user/e/emanuele/public/electronLikelihoodDb160/likelihoodcatalog.xml"
 
Changed:
<
<

compilation in 131HLT6

>
>

Tags in 131HLT6 (obsolete!)

 
cvs co -r V00-00-04      EgammaAnalysis/ElectronIDAlgos
cvs co -r V00-00-01      EgammaAnalysis/ElectronIDESSources
Line: 132 to 114
 cvs co -r shr-8aug07 PhysicsTools/StatPatternRecognition
Added:
>
>

Run with CRAB

Since the SQLite DB file is not yet distributed on sites, it has to be exported in the CRAB InputSandBox. To do it, change, in EgammaAnalysis/ElectronIDESSources/data/likelihoodPdfsDB.cfi:

 
Changed:
<
<

Write your own Analyzer or Producer

>
>
replace CondDBCommon.connect = "sqlite_file:electronIdLikelihoodTkIsolated.db"    
replace CondDBCommon.catalog = "file:electronIdLikelihoodTkIsolatedCRAB.xml"
 
Deleted:
<
<
Examples of analyzers tested in CMSSW_160 can be found here:
  • Analyzer: /afs/cern.ch/user/e/emanuele/public/4Likelihood/LikelihoodAnalyzer160.tar.gz
  • Producer: /afs/cern.ch/user/e/emanuele/public/4Likelihood/ElectronIDProducers160.tar.gz
the last one produces a collection of references to only the electrons which satisfy cut on the likelihood output configurable by the .cfg.
 \ No newline at end of file
Added:
>
>
and, in the CRAB cfg file:

## files to be put in InputSandBox, full path or in the current directory
## (wildcard * are allowed): comma separated list
additional_input_files = /afs/cern.ch/user/e/emanuele/public/4Likelihood/PDFsSQLite/CMSSW_1_6_8/electronIdLikelihoodTkIsolated.db, 
/afs/cern.ch/user/e/emanuele/public/4Likelihood/PDFsSQLite/CMSSW_1_6_8/electronIdLikelihoodTkIsolatedCRAB.xml

Test the likelihood

Examples of analyzers tested in CMSSW_168 can be found here:

> cvs co -d emanuele/EgammaTools UserCode/emanuele/EgammaTools
> scramv1 b
> cmsRun emanuele/EgammaTools/test/testElectronIDWithLH.cfg

Revision 102008-02-21 - EmanueleDiMarco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideElectronID"

Electron Identification using Likelihood

Complete: 3
Line: 94 to 94
 cvs co -r V00-03-00 RecoEcal/EgammaCoreTools
Added:
>
>
for releases 1_6_8, 1_6_9 apply the following backportings:
cvs up -r 1.10 DataFormats/EgammaReco/interface/BasicCluster.h
cvs up -r 1.10 RecoEcal/EgammaCoreTools/interface/PositionCalc.h
  Since the SQLite DB file is only available in releases >17X, use a local file. Change, in

Revision 92008-02-13 - RobertoSalerno

Line: 1 to 1
 
META TOPICPARENT name="SWGuideElectronID"

Electron Identification using Likelihood

Changed:
<
<
Complete: 4
>
>
Complete: 3
 
Line: 135 to 135
 
  • Producer: /afs/cern.ch/user/e/emanuele/public/4Likelihood/ElectronIDProducers160.tar.gz
the last one produces a collection of references to only the electrons which satisfy cut on the likelihood output configurable by the .cfg.
Deleted:
<
<

-- EmanueleDiMarco - 08 Oct 2007

 \ No newline at end of file

Revision 82008-02-07 - EmanueleDiMarco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideElectronID"

Electron Identification using Likelihood

Complete: 4

Revision 72008-02-07 - RobertoSalerno

Line: 1 to 1
 
META TOPICPARENT name="SWGuideElectronID"

Electron Identification using Likelihood

Complete: 4
Line: 69 to 69
 

Setup of the code

Changed:
<
<

compilation in 170_preX

>
>

compilation in 17X

 
Changed:
<
<

Tag --- -------- Package -------- V00-01-01 CondCore/EgammaPlugins V02-06-02 CondFormats/DataRecord V00-02-00 CondFormats/EgammaObjects edm-06102007 EgammaAnalysis/ElectronIDAlgos edm-06102007 EgammaAnalysis/ElectronIDESSources edm-06102007 EgammaAnalysis/ElectronIDProducers
total packages: 6
>
>
cvs co -r V00-00-07 EgammaAnalysis/ElectronIDAlgos cvs co -r V00-00-04 EgammaAnalysis/ElectronIDProducers cvs co -r V00-00-03 EgammaAnalysis/ElectronIDESSources cvs co -r V00-01-01 CondCore/EgammaPlugins cvs co -r V00-02-00 CondFormats/EgammaObjects
 
Deleted:
<
<
Since the SQLite DB file is only available in releases >170_pre5, use a local file. Change, in EgammaAnalysis/ElectronIDESSources/data/likelihoodPdfsDB.cfi

replace CondDBCommon.connect = "sqlite_fip:electronIdLikelihood.db"

with:

replace CondDBCommon.connect = 
"sqlite_file:/afs/cern.ch/user/e/emanuele/public/electronLikelihoodDb170/likelihood.db"

 

compilation in 16X

Changed:
<
<

Tag --- -------- Package -------- V00-01-01 CondCore/EgammaPlugins V02-06-02 CondFormats/DataRecord V00-02-00 CondFormats/EgammaObjects V00-05-00 DataFormats/EgammaReco V00-00-04 EgammaAnalysis/ElectronIDAlgos edm-cmssw16X EgammaAnalysis/ElectronIDESSources edm-06102007 EgammaAnalysis/ElectronIDProducers V00-00-03 PhysicsTools/StatPatternRecognition V00-05-07 RecoEcal/EgammaClusterProducers V00-03-00 RecoEcal/EgammaCoreTools
>
>
cvs co -r V00-00-07 EgammaAnalysis/ElectronIDAlgos cvs co -r V00-00-04 EgammaAnalysis/ElectronIDProducers cvs co -r V00-00-03 EgammaAnalysis/ElectronIDESSources cvs co -r V00-01-01 CondCore/EgammaPlugins cvs co -r V02-06-02 CondFormats/DataRecord cvs co -r V00-02-00 CondFormats/EgammaObjects cvs co -r V00-01-03 CondFormats/PhysicsToolsObjects cvs co -r V00-05-00 DataFormats/EgammaReco cvs co -r V00-00-03 PhysicsTools/StatPatternRecognition cvs co -r V00-05-07 RecoEcal/EgammaClusterProducers cvs co -r V00-03-00 RecoEcal/EgammaCoreTools
 
Changed:
<
<
Since the SQLite DB file is only available in releases >170_pre5, use a local file.
>
>
Since the SQLite DB file is only available in releases >17X, use a local file.
 Change, in EgammaAnalysis/ElectronIDESSources/data/likelihoodPdfsDB.cfi
Line: 138 to 114
 

compilation in 131HLT6

Changed:
<
<

Tag --- -------- Package -------- V00-01-00 CondCore/EgammaPlugins V00-01-10 CondFormats/BTauObjects V02-06-02 CondFormats/DataRecord V00-01-00 CondFormats/EgammaObjects V00-05-00 DataFormats/EgammaReco V00-00-04 EgammaAnalysis/ElectronIDAlgos V00-00-01 EgammaAnalysis/ElectronIDESSources shr-8aug07 PhysicsTools/StatPatternRecognition V00-03-04 RecoEcal/EgammaClusterAlgos V00-05-07 RecoEcal/EgammaClusterProducers V00-03-00 RecoEcal/EgammaCoreTools
total packages: 11
>
>
cvs co -r V00-00-04 EgammaAnalysis/ElectronIDAlgos cvs co -r V00-00-01 EgammaAnalysis/ElectronIDESSources cvs co -r V00-05-00 DataFormats/EgammaReco cvs co -r V00-01-00 CondCore/EgammaPlugins cvs co -r V00-01-10 CondFormats/BTauObjects cvs co -r V02-06-02 CondFormats/DataRecord cvs co -r V00-01-00 CondFormats/EgammaObjects cvs co -r V00-03-04 RecoEcal/EgammaClusterAlgos cvs co -r V00-05-07 RecoEcal/EgammaClusterProducers cvs co -r V00-03-00 RecoEcal/EgammaCoreTools cvs co -r shr-8aug07 PhysicsTools/StatPatternRecognition
 

Revision 62008-02-07 - EmanueleDiMarco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideElectronID"

Electron Identification using Likelihood

Complete: 4
Line: 101 to 101
 
Changed:
<
<

compilation in 160

>
>

compilation in 16X

 
--- Tag ---    -------- Package --------  
V00-01-01      CondCore/EgammaPlugins                           
V02-06-02      CondFormats/DataRecord                           
V00-02-00      CondFormats/EgammaObjects                        
Deleted:
<
<
V00-01-03 CondFormats/PhysicsToolsObjects
 V00-05-00 DataFormats/EgammaReco
Changed:
<
<
edm-06102007 EgammaAnalysis/ElectronIDAlgos edm-06102007 EgammaAnalysis/ElectronIDESSources
>
>
V00-00-04 EgammaAnalysis/ElectronIDAlgos edm-cmssw16X EgammaAnalysis/ElectronIDESSources
 edm-06102007 EgammaAnalysis/ElectronIDProducers V00-00-03 PhysicsTools/StatPatternRecognition V00-05-07 RecoEcal/EgammaClusterProducers

Revision 52007-10-31 - EmanueleDiMarco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideElectronID"

Electron Identification using Likelihood

Complete: 4
Line: 107 to 107
 
Tag --- -------- Package -------- V00-01-01 CondCore/EgammaPlugins V02-06-02 CondFormats/DataRecord
Changed:
<
<
V00-01-00 CondFormats/EgammaObjects
>
>
V00-02-00 CondFormats/EgammaObjects V00-01-03 CondFormats/PhysicsToolsObjects
 V00-05-00 DataFormats/EgammaReco
Changed:
<
<
V00-00-04 EgammaAnalysis/ElectronIDAlgos V00-00-01 EgammaAnalysis/ElectronIDESSources shr-8aug07 PhysicsTools/StatPatternRecognition
>
>
edm-06102007 EgammaAnalysis/ElectronIDAlgos edm-06102007 EgammaAnalysis/ElectronIDESSources edm-06102007 EgammaAnalysis/ElectronIDProducers V00-00-03 PhysicsTools/StatPatternRecognition
 V00-05-07 RecoEcal/EgammaClusterProducers V00-03-00 RecoEcal/EgammaCoreTools
Changed:
<
<

total packages: 10
>
>

 
Line: 157 to 158
 

Write your own Analyzer or Producer

Deleted:
<
<
In order to get the likelihood output on a pixelMatchGsfElectron the steps are:
  • include the headers in your analyzer / producer:
#include "EgammaAnalysis/ElectronIDAlgos/interface/ElectronLikelihood.h"
#include "EgammaAnalysis/ElectronIDESSources/interface/ElectronLikelihoodESSource.h"

  • get the electrons and the algorithm:
  PixelMatchGsfElectronCollection::const_iterator electron;
  for(electron=collection->begin(); electron!=collection->end(); electron++) {
    // electron likelihood
    edm::ESHandle<ElectronLikelihood> likelihood;
    iSetup.getData( likelihood );
    likelihood->Fill( likelihood->result(&(*electron),iEvent) );
  }

  • in your cfg get the PDFs from DB and the configuration:
    # --- ESSource for Electron ID likelihood ---
    include "EgammaAnalysis/ElectronIDESSources/data/likelihoodPdfsDB.cfi"
    include "EgammaAnalysis/ElectronIDESSources/data/likelihoodESetup.cfi"
 Examples of analyzers tested in CMSSW_160 can be found here:
Changed:
<
<
  • Analyzer: /afs/cern.ch/user/e/emanuele/public/4Likelihood
  • Producer: /afs/cern.ch/user/e/emanuele/public/ElectronIDProducers160.tar.gz
>
>
  • Analyzer: /afs/cern.ch/user/e/emanuele/public/4Likelihood/LikelihoodAnalyzer160.tar.gz
  • Producer: /afs/cern.ch/user/e/emanuele/public/4Likelihood/ElectronIDProducers160.tar.gz
 the last one produces a collection of references to only the electrons which satisfy cut on the likelihood output configurable by the .cfg.

Revision 42007-10-21 - EmanueleDiMarco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideElectronID"

Electron Identification using Likelihood

Complete: 4
Line: 119 to 119
 
Added:
>
>
Since the SQLite DB file is only available in releases >170_pre5, use a local file. Change, in EgammaAnalysis/ElectronIDESSources/data/likelihoodPdfsDB.cfi

replace CondDBCommon.connect = "sqlite_file:/afs/cern.ch/user/e/emanuele/scratch0/vanilla131HLT6/src/EgammaAnalysis/ElectronIDAlgos/test/electronlikelihood.db"    
replace CondDBCommon.catalog = "file:/afs/cern.ch/user/e/emanuele/scratch0/vanilla131HLT6/src/EgammaAnalysis/ElectronIDAlgos/test/mycatalog.xml"

with:

replace CondDBCommon.connect = "sqlite_file:/afs/cern.ch/user/e/emanuele/public/electronLikelihoodDb160/electronIdLikelihood.db"    
replace CondDBCommon.catalog = "file:/afs/cern.ch/user/e/emanuele/public/electronLikelihoodDb160/likelihoodcatalog.xml"
 

compilation in 131HLT6

Revision 32007-10-18 - EmanueleDiMarco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideElectronID"

Electron Identification using Likelihood

Changed:
<
<
Complete: 2
>
>
Complete: 4
 
Line: 136 to 139
 
Added:
>
>

Write your own Analyzer or Producer

In order to get the likelihood output on a pixelMatchGsfElectron the steps are:

  • include the headers in your analyzer / producer:
#include "EgammaAnalysis/ElectronIDAlgos/interface/ElectronLikelihood.h"
#include "EgammaAnalysis/ElectronIDESSources/interface/ElectronLikelihoodESSource.h"

  • get the electrons and the algorithm:
  PixelMatchGsfElectronCollection::const_iterator electron;
  for(electron=collection->begin(); electron!=collection->end(); electron++) {
    // electron likelihood
    edm::ESHandle<ElectronLikelihood> likelihood;
    iSetup.getData( likelihood );
    likelihood->Fill( likelihood->result(&(*electron),iEvent) );
  }

  • in your cfg get the PDFs from DB and the configuration:
    # --- ESSource for Electron ID likelihood ---
    include "EgammaAnalysis/ElectronIDESSources/data/likelihoodPdfsDB.cfi"
    include "EgammaAnalysis/ElectronIDESSources/data/likelihoodESetup.cfi"

Examples of analyzers tested in CMSSW_160 can be found here:

  • Analyzer: /afs/cern.ch/user/e/emanuele/public/4Likelihood
  • Producer: /afs/cern.ch/user/e/emanuele/public/ElectronIDProducers160.tar.gz
the last one produces a collection of references to only the electrons which satisfy cut on the likelihood output configurable by the .cfg.

 -- EmanueleDiMarco - 08 Oct 2007

Revision 22007-10-18 - EmanueleDiMarco

Line: 1 to 1
 
META TOPICPARENT name="SWGuideElectronID"
Changed:
<
<

Electron Identification

>
>

Electron Identification using Likelihood

 Complete: 2

Line: 25 to 25
 
    • split by "fullclass": golden, bigbrem, narrow, showering
    • split by "class": non-showering (golden+bigbrem+narrow all together weighted by their fractions), showering
Added:
>
>
Species: only two species are currently considered:
  • Electrons: pdfs taken from pure di-electron sample, particle gun
  • Jets: QCD samples, pdfs are the weighted sum of pdf's for jet pT bins from 0-230 GeV. The weight is the product of the reconstruction efficiency as a pixelMatchGsfElectron x cross section.
 

Configuration

Configuration can be done changing the .cfi file:

  • EgammaAnalysis/ElectronIDESSources/data/likelihoodESetup.cfi
Changed:
<
<
use "class" or "fullclass" in the following lines:
>
>
In the default configuration, signal species (electrons) pdf's are split by "fullclass" and background species is not split. For the signal species, the possibilities are:
  • split by "fullclass". The configuration is:
 
    string signalWeightSplitting = "fullclass"
Added:
>
>
bool splitSignalPdfs = true
  • split by "class":
    string signalWeightSplitting = "class"
    bool splitSignalPdfs = true
  • do not split at all:
    string signalWeightSplitting = "fullclass"
    bool splitSignalPdfs = false

In principle also for background the same procedure is available. Due to the low MC statistics available in the Bigbrem/Narrow classes, right now only the unsplit pdf's are available in the DB. Configuration is:

  • do not split at all:
  string backgroundWeightSplitting = "fullclass"
Added:
>
>
bool splitBackgroundPdfs = false

Setup of the code

compilation in 170_preX

--- Tag ---    -------- Package --------                        
V00-01-01      CondCore/EgammaPlugins                           
V02-06-02      CondFormats/DataRecord                           
V00-02-00      CondFormats/EgammaObjects                        
edm-06102007   EgammaAnalysis/ElectronIDAlgos                   
edm-06102007   EgammaAnalysis/ElectronIDESSources               
edm-06102007   EgammaAnalysis/ElectronIDProducers               
---------------------------------------
total packages: 6
 
Added:
>
>
Since the SQLite DB file is only available in releases >170_pre5, use a local file. Change, in EgammaAnalysis/ElectronIDESSources/data/likelihoodPdfsDB.cfi

replace CondDBCommon.connect = "sqlite_fip:electronIdLikelihood.db"

with:

replace CondDBCommon.connect = 
"sqlite_file:/afs/cern.ch/user/e/emanuele/public/electronLikelihoodDb170/likelihood.db"

compilation in 160

--- Tag ---    -------- Package --------
V00-01-01      CondCore/EgammaPlugins
V02-06-02      CondFormats/DataRecord
V00-01-00      CondFormats/EgammaObjects
V00-05-00      DataFormats/EgammaReco
V00-00-04      EgammaAnalysis/ElectronIDAlgos
V00-00-01      EgammaAnalysis/ElectronIDESSources
shr-8aug07     PhysicsTools/StatPatternRecognition
V00-05-07      RecoEcal/EgammaClusterProducers
V00-03-00      RecoEcal/EgammaCoreTools
---------------------------------------
total packages: 10

compilation in 131HLT6

--- Tag ---    -------- Package --------
V00-01-00      CondCore/EgammaPlugins
V00-01-10      CondFormats/BTauObjects
V02-06-02      CondFormats/DataRecord
V00-01-00      CondFormats/EgammaObjects
V00-05-00      DataFormats/EgammaReco
V00-00-04      EgammaAnalysis/ElectronIDAlgos
V00-00-01      EgammaAnalysis/ElectronIDESSources
shr-8aug07     PhysicsTools/StatPatternRecognition
V00-03-04      RecoEcal/EgammaClusterAlgos
V00-05-07      RecoEcal/EgammaClusterProducers
V00-03-00      RecoEcal/EgammaCoreTools
---------------------------------------
total packages: 11
 

-- EmanueleDiMarco - 08 Oct 2007

Revision 12007-10-08 - EmanueleDiMarco

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="SWGuideElectronID"

Electron Identification

Complete: 2

Introduction

The following variables are currently used to discriminate between real and fake electrons in the likelihood:

  • Energy of closest BasicCluster to track impact point at ECAL / outermost track momentum
  • DeltaEta between SuperCluster position and track direction at vertex extrapolated to ECAL assuming no radiation
  • DeltaPhi between SuperCluster position and track direction at vertex
  • Ratio of energy in HCAL behind SuperCluster to SuperCluster energy
  • Combination in a linear Fisher discriminant of cluster shape variables:
    • Energy in 3x3 crystals / energy in 5x5 crystals
    • SigmaEtaEta cluster shape covariance
    • Lateral moment
    • Complex Zernike moment A20

Specialized pdfs are for:

  • ECAL barrel, ECAL endcap
  • electron pT < 15GeV / >15GeV
  • electron classes (only for signal). Two possibilities are allowed:
    • split by "fullclass": golden, bigbrem, narrow, showering
    • split by "class": non-showering (golden+bigbrem+narrow all together weighted by their fractions), showering

Configuration

Configuration can be done changing the .cfi file:

  • EgammaAnalysis/ElectronIDESSources/data/likelihoodESetup.cfi
use "class" or "fullclass" in the following lines:
    string signalWeightSplitting = "fullclass"
    string backgroundWeightSplitting = "fullclass"

-- EmanueleDiMarco - 08 Oct 2007

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback