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

21  :
22  mu1(lorentzVector(0,0,0,0)),
23  mu2(lorentzVector(0,0,0,0)),
24  motherId(0)
25  {}
Int_t motherId
Definition: GenMuonPair.h:50
reco::Particle::LorentzVector lorentzVector
Definition: GenMuonPair.h:8
lorentzVector mu1
Definition: GenMuonPair.h:48
lorentzVector mu2
Definition: GenMuonPair.h:49
GenMuonPair::GenMuonPair ( const lorentzVector inputMu1,
const lorentzVector inputMu2,
const int  inputMotherId 
)
inline

Definition at line 27 of file GenMuonPair.h.

References motherId.

28  :
29  mu1(inputMu1),
30  mu2(inputMu2)
31  // ,
32  // motherId(inputMotherId)
33  {
34  // Put this in the initialization list and root will not compile...
35  // Probably some conflict with the other MuonPair class that also contains integers or
36  // something even weirder...
37  motherId = inputMotherId;
38  }
Int_t motherId
Definition: GenMuonPair.h:50
lorentzVector mu1
Definition: GenMuonPair.h:48
lorentzVector mu2
Definition: GenMuonPair.h:49

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

42  {
43  mu1 = copyPair.mu1;
44  mu2 = copyPair.mu2;
45  motherId = copyPair.motherId;
46  }
Int_t motherId
Definition: GenMuonPair.h:50
lorentzVector mu1
Definition: GenMuonPair.h:48
lorentzVector mu2
Definition: GenMuonPair.h:49

Member Data Documentation

Int_t GenMuonPair::motherId

Definition at line 50 of file GenMuonPair.h.

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

lorentzVector GenMuonPair::mu1
lorentzVector GenMuonPair::mu2