template<typename RecContainer = std::vector<RecJet>, typename GenContainer = std::vector<GenJet>>
struct DAS::JMEmatching< RecContainer, GenContainer >
Function that performs matching between an input list of reconstructed level jets and a list of generator level jets, based on their angular distance. The JetMET matching algorithm is used for the procedure.
JetMET matching algorithm (to what we understand):
- Allow all possible pairs between gen and rec jets
- Discard pairs with DR larger than R/2
- Sort by ascending DR (smaller to larger)
- Keep pairs that are uniquely defined
According to a page on the TWiki, the matching radius should be taken as half of the cone size radius.