uzzielperez / multiphoton-analysis

Generic multiphoton analyzer and analysis scripts
0 stars 0 forks source link

Local Testing for GEN only #14

Open uzzielperez opened 4 years ago

uzzielperez commented 4 years ago

Consider changing flags for local testing. There should be one for GEN-only and the one that went through the full chain i.e. similar to centrally-produced samples going through detector simulation). See runner file. This flag then gets called in the source file for the analyzer. If analyzer runs on sample that didn't go through the full chain, an ERROR is produced saying there are no photons and this is related to the ID settings which are only run on reco photons.

uzzielperez commented 4 years ago

Another issue is when I ran through an AODSIM sample this error is thrown:


----- Begin Fatal Exception 03-Jun-2020 05:55:32 CDT-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 1 lumi: 1 event: 1 stream: 0
   [1] Running path 'p'
   [2] Prefetching for module nPhotonAnalyzer/'demo'
   [3] Calling method for module VersionedPhotonIdProducer/'egmPhotonIDs'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for a container with elements of type: reco::Photon
Looking for module label: slimmedPhotons
Looking for productInstanceName: 

Must double check if I'm getting the right labels in the config file for this or check the source file if I'm accessing a collection not found in GEN-only samples.