CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
GenMuonPair Class Reference

#include <GenMuonPair.h>

Inheritance diagram for GenMuonPair:

Public Member Functions

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

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 19 of file GenMuonPair.h.

Constructor & Destructor Documentation

◆ GenMuonPair() [1/2]

GenMuonPair::GenMuonPair ( )
inline

Definition at line 21 of file GenMuonPair.h.

22  : mu1(lorentzVector(0, 0, 0, 0), -1),
23  mu2(lorentzVector(0, 0, 0, 0), 1),
24  motherId(0) //,
25  // statusMu(-1),
26  {}

◆ GenMuonPair() [2/2]

GenMuonPair::GenMuonPair ( const MuScleFitMuon initMu1,
const MuScleFitMuon initMu2,
const int  initMotherId 
)
inline

Definition at line 28 of file GenMuonPair.h.

29  : // const int initMotherId, const int initStatusMu) :
30  mu1(initMu1),
31  mu2(initMu2),
32  motherId(initMotherId) //,
33  // statusMu(initStatusMu)
34  // ,
35  // motherId(initMotherId)
36  {
37  // Put this in the initialization list and root will not compile...
38  // Probably some conflict with the other MuonPair class that also contains integers or
39  // something even weirder...
40  /* motherId = initMotherId; */
41  }

Member Function Documentation

◆ copy()

void GenMuonPair::copy ( const GenMuonPair copyPair)
inline

Used to copy the content of another GenMuonPair.

Definition at line 44 of file GenMuonPair.h.

44  {
45  mu1 = copyPair.mu1;
46  mu2 = copyPair.mu2;
47  motherId = copyPair.motherId;
48  // statusMu = copyPair.statusMu;
49  }

References motherId, mu1, and mu2.

Referenced by RootTreeHandler::writeTree().

Member Data Documentation

◆ motherId

Int_t GenMuonPair::motherId

Definition at line 53 of file GenMuonPair.h.

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

◆ mu1

MuScleFitMuon GenMuonPair::mu1

◆ mu2

MuScleFitMuon GenMuonPair::mu2
GenMuonPair::mu2
MuScleFitMuon mu2
Definition: GenMuonPair.h:52
GenMuonPair::motherId
Int_t motherId
Definition: GenMuonPair.h:53
GenMuonPair::mu1
MuScleFitMuon mu1
Definition: GenMuonPair.h:51
lorentzVector
reco::Particle::LorentzVector lorentzVector
Definition: GenMuonPair.h:9