CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::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  {}
MuScleFitMuon mu1
Definition: GenMuonPair.h:51
Int_t motherId
Definition: GenMuonPair.h:53
reco::Particle::LorentzVector lorentzVector
Definition: GenMuonPair.h:9
MuScleFitMuon mu2
Definition: GenMuonPair.h:52
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  }
MuScleFitMuon mu1
Definition: GenMuonPair.h:51
Int_t motherId
Definition: GenMuonPair.h:53
MuScleFitMuon mu2
Definition: GenMuonPair.h:52

Member Function Documentation

void GenMuonPair::copy ( const GenMuonPair copyPair)
inline

Used to copy the content of another GenMuonPair.

Definition at line 44 of file GenMuonPair.h.

References motherId, mu1, and mu2.

Referenced by RootTreeHandler::writeTree().

44  {
45  mu1 = copyPair.mu1;
46  mu2 = copyPair.mu2;
47  motherId = copyPair.motherId;
48  // statusMu = copyPair.statusMu;
49  }
MuScleFitMuon mu1
Definition: GenMuonPair.h:51
Int_t motherId
Definition: GenMuonPair.h:53
MuScleFitMuon mu2
Definition: GenMuonPair.h:52

Member Data Documentation

Int_t GenMuonPair::motherId

Definition at line 53 of file GenMuonPair.h.

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

MuScleFitMuon GenMuonPair::mu1
MuScleFitMuon GenMuonPair::mu2