skkwan / phase2-l1Calo-analyzer

0 stars 2 forks source link

Include quality bits in digitized clusters sent to the Correlator #14

Closed skkwan closed 6 months ago

skkwan commented 7 months ago

Also, I see that the egamma digitized clusters sent to the Correlator: https://github.com/cms-l1t-offline/cmssw/blob/l1t-integration-CMSSW_13_2_0_pre3/DataFormats/L1TCalorimeterPhase2/interface/DigitizedClusterCorrelator.h

Currently, do not encode any quality bit. This is a showstopper to start using them in the emulator since any flag used in the GT decision must be propagated. (e.g. looseTkEleId)

This was the previous correlator digitized cluster format: image

The correlator digitized cluster format has been updated.

image

image

skkwan commented 7 months ago
skkwan commented 6 months ago

Checks for one event for DigitizedClusterCorrelator:

One event: event 58098 in root://cms-xrd-global.cern.ch///store/mc/Phase2Spring23DIGIRECOMiniAOD/DoubleElectron_FlatPt-1To100-gun/GEN-SIM-DIGI-RAW-MINIAOD/PU200_Trk1GeV_131X_mcRun4_realistic_v5-v1/30000/0083e06c-959e-4ea5-9190-fd73667fcc00.root

These are the two gen electrons:

>>> Corrected gen electron pt/eta/phi: (20.7481, -1.31399, -0.228769) to 20.7481, -1.31816, -0.191478 with ecal_pos eta/phi -1.31816, -0.191478
>>> Corrected gen electron pt/eta/phi: (20.7481, 1.31399, 2.91282) to 20.7481, 1.31021, 2.87553 with ecal_pos eta/phi 1.31021, 2.87553

Corresponding to these deltaR matched GCT clusters:

--> Matched GCT cluster 16 eta: -1.31823 phi: -0.200709 with genElectron 20.7481 eta: -1.31816 phi: -0.191478.  iso: 0.09375 et2x5: 9.5 et5x5: 9.5 is_ss: 1 is_looseTkss: 1 is_iso: 1 is_looseTkiso: 1
--> Matched GCT cluster 11 eta: 1.30077 phi: 2.90598 with genElectron 20.7481 eta: 1.31021 phi: 2.87553.  iso: 0.318182 et2x5: 7 et5x5: 7 is_ss: 1 is_looseTkss: 1 is_iso: 1 is_looseTkiso: 1

Which correspond to these two digitized clusters:

>> > Correlator digitized cluster found with pT in GeV: 16 crystal eta 9 crystal phi 48 iso flags 3 shower shape flags 3 passes iso, looseTkiso, passes ss, looseTkss 1 1 1 1, realEta: -1.32696, real Phi: -0.209439
>> > Correlator digitized cluster found with pT in GeV: 11 crystal eta 159 crystal phi 106 iso flags 3 shower shape flags 3 passes iso, looseTkiso, passes ss, looseTkss 1 1 1 1, realEta: 1.29204, real Phi: 2.89725

Checking some non-leading clusters in the event: this GCT cluster

GCT Cluster found: pT 9.5, eta 0.14841, phi -1.00356,  with flags: is_ss 0,is_iso 1, is_looseTkss 1, is_looseTkiso 1

corresponds to this digitized cluster, and their flags agree:

>> > Correlator digitized cluster found with pT in GeV: 9.5 crystal eta 93 crystal phi 2 iso flags 3 shower shape flags 2 passes iso, looseTkiso, passes ss, looseTkss 1 1 0 1, realEta: 0.13968, real Phi: -1.01229