Skip to content

when 0 egamma (analysisElectron/Photon) were there, actually we were keeping all GSF TP

When 0 egamma (analysisElectron/Photon) were there, actually we were keeping all GSF TP due to early exit

As this

ToolSvc.PHYSLITEPhotonGSFTPThinningTool              INFO Processed 30759 GSF tracks, of which 91 were retained

does not square with this (we should see much larger reduction) image

Lets fix it.

Basically , if nEgamma=0 (which is hard in AOD but AnalysisEgammas I assume are actually "selected") we were not thinning (early exit).

ping @amete as a use of the new monitoring ;) @jcatmore for info , and @gmarchio (althoug his in vacations) also for info.

basically

if (nEgammas == 0)
    return StatusCode::SUCCESS;

goes and we do

if(nEgamma!=0){
//keep things (default is keep nothing)
....
}

//thinning always applied  
Edited by Christos Anastopoulos

Merge request reports