ClusterMET calculation tool for JETM derivations
This tool is designed to perform a simplified MET calculation that avoids the use of METMaker. This MET calculation uses CaloCalTopoClusters that are not available in JETM1 DAODs, and thus the MET must be calculated at the derivation level and saved to event info.
The general form of the calculation is a sum of all clusters, followed by the removal of clusters within R < 0.2 of electrons/muons. The lepton momentum replaces the removed cluster, and pileup is added back into the area of the removed clusters. The addition of pileup to the replacement leptons differs from METMaker, and the lepton selection of R<0.2 is used instead of ghost association.
Local testing on JETM1 and JETM3 AODs has been successful and DAODs of these types have been produced. As only two floats are added per event (clusterMETx and clusterMETy), the effect on the final file size is small. The results of this MET have been compared to a similar calculation performed directly on DAODs at the analysis level agree well.
The draft flag is to ensure review from the JETM team before the request is sent for full review.