#include <GenMuonPair.h>
Public Member Functions | |
void | copy (const GenMuonPair ©Pair) |
Used to copy the content of another GenMuonPair. | |
GenMuonPair () | |
GenMuonPair (const lorentzVector &inputMu1, const lorentzVector &inputMu2, const int inputMotherId) | |
Public Attributes | |
Int_t | motherId |
lorentzVector | mu1 |
lorentzVector | 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 18 of file GenMuonPair.h.
GenMuonPair::GenMuonPair | ( | ) | [inline] |
Definition at line 21 of file GenMuonPair.h.
: mu1(lorentzVector(0,0,0,0)), mu2(lorentzVector(0,0,0,0)), motherId(0) {}
GenMuonPair::GenMuonPair | ( | const lorentzVector & | inputMu1, |
const lorentzVector & | inputMu2, | ||
const int | inputMotherId | ||
) | [inline] |
Definition at line 27 of file GenMuonPair.h.
References motherId.
void GenMuonPair::copy | ( | const GenMuonPair & | copyPair | ) | [inline] |
Used to copy the content of another GenMuonPair.
Definition at line 41 of file GenMuonPair.h.
References motherId, mu1, and mu2.
Referenced by RootTreeHandler::writeTree().
Int_t GenMuonPair::motherId |
Definition at line 50 of file GenMuonPair.h.
Referenced by copy(), MuScleFitMuonSelector::findGenMuFromRes(), and GenMuonPair().
Definition at line 48 of file GenMuonPair.h.
Referenced by copy(), MuScleFitMuonSelector::findGenMuFromRes(), and RootTreeHandler::readTree().
Definition at line 49 of file GenMuonPair.h.
Referenced by copy(), MuScleFitMuonSelector::findGenMuFromRes(), and RootTreeHandler::readTree().