#include <GenMuonPair.h>
Public Member Functions | |
void | copy (const GenMuonPair ©Pair) |
Used to copy the content of another GenMuonPair. More... | |
GenMuonPair () | |
GenMuonPair (const MuScleFitMuon &initMu1, const MuScleFitMuon &initMu2, const int initMotherId) | |
Public Attributes | |
Int_t | motherId |
MuScleFitMuon | mu1 |
MuScleFitMuon | mu2 |
For simplicity we use a different class than for reco used to save the gen muon pairs in a root tree.
The reason is that there is no need for a map in this case as there is only one collection of generated muons.
Additionally we want to save the motherId (we could have done using one of the unsigned int in the MuonPair class, but this way the name of the datamember is more explicative).
If it will be needed, it will be straightforward to migrate also the genMuons to use the MuonPair class.
Definition at line 19 of file GenMuonPair.h.
|
inline |
Definition at line 22 of file GenMuonPair.h.
|
inline |
Definition at line 29 of file GenMuonPair.h.
|
inline |
Used to copy the content of another GenMuonPair.
Definition at line 46 of file GenMuonPair.h.
References motherId, mu1, and mu2.
Referenced by RootTreeHandler::writeTree().
Int_t GenMuonPair::motherId |
Definition at line 56 of file GenMuonPair.h.
Referenced by copy(), and MuScleFitMuonSelector::findGenMuFromRes().
MuScleFitMuon GenMuonPair::mu1 |
Definition at line 54 of file GenMuonPair.h.
Referenced by copy(), MuScleFitMuonSelector::findGenMuFromRes(), and RootTreeHandler::readTree().
MuScleFitMuon GenMuonPair::mu2 |
Definition at line 55 of file GenMuonPair.h.
Referenced by copy(), MuScleFitMuonSelector::findGenMuFromRes(), and RootTreeHandler::readTree().