test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 22 of file GenMuonPair.h.

22  :
23  mu1(lorentzVector(0,0,0,0),-1),
24  mu2(lorentzVector(0,0,0,0),1),
25  motherId(0)//,
26  // statusMu(-1),
27  {}
MuScleFitMuon mu1
Definition: GenMuonPair.h:54
Int_t motherId
Definition: GenMuonPair.h:56
reco::Particle::LorentzVector lorentzVector
Definition: GenMuonPair.h:9
MuScleFitMuon mu2
Definition: GenMuonPair.h:55
GenMuonPair::GenMuonPair ( const MuScleFitMuon initMu1,
const MuScleFitMuon initMu2,
const int  initMotherId 
)
inline

Definition at line 29 of file GenMuonPair.h.

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

Member Function Documentation

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

47  {
48  mu1 = copyPair.mu1;
49  mu2 = copyPair.mu2;
50  motherId = copyPair.motherId;
51  // statusMu = copyPair.statusMu;
52  }
MuScleFitMuon mu1
Definition: GenMuonPair.h:54
Int_t motherId
Definition: GenMuonPair.h:56
MuScleFitMuon mu2
Definition: GenMuonPair.h:55

Member Data Documentation

Int_t GenMuonPair::motherId

Definition at line 56 of file GenMuonPair.h.

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

MuScleFitMuon GenMuonPair::mu1
MuScleFitMuon GenMuonPair::mu2