CMS 3D CMS Logo

Public Member Functions | Public Attributes

GenMuonPair Class Reference

#include <GenMuonPair.h>

List of all members.

Public Member Functions

void copy (const GenMuonPair &copyPair)
 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

Detailed Description

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.


Constructor & Destructor Documentation

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.

                                       :
    mu1(inputMu1),
    mu2(inputMu2)
    // ,
    // motherId(inputMotherId)
  {
    // Put this in the initialization list and root will not compile...
    // Probably some conflict with the other MuonPair class that also contains integers or
    // something even weirder...
    motherId = inputMotherId;
  }

Member Function Documentation

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().

  {
    mu1 = copyPair.mu1;
    mu2 = copyPair.mu2;
    motherId = copyPair.motherId;
  }

Member Data Documentation

Definition at line 50 of file GenMuonPair.h.

Referenced by copy(), MuScleFitMuonSelector::findGenMuFromRes(), and GenMuonPair().