Utility to loop over CaloCell contained in a Jet. More...
#include <JetCellAccessor.h>
Utility to loop over CaloCell contained in a Jet.
JetCaloCell defines iterators over the cells in a Jet. Currently it supports only CaloCluster constituents and it relies on the availability of a CaloClusterCellLink in the constituents. Any constituent type able to return such CaloClusterCellLink could benefit from this accessor.
It also uses the prefetch utilities in the hope of improving performances.
usage : jet::JetCellAccessor::const_iterator it = jet::JetCellAccessor::begin(jet); jet::JetCellAccessor::const_iterator itE = jet::JetCellAccessor::end(jet); for( ;it!=itE; it++) { e += it->e()*it.weight(); }