CMS 3D CMS Logo

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

#include <MuonPair.h>

Inheritance diagram for MuonPair:

Public Member Functions

void copy (const MuonPair &copyPair)
 Used to copy the content of another MuonPair. More...
 
 MuonPair ()
 
 MuonPair (const MuScleFitMuon &initMu1, const MuScleFitMuon &initMu2, const MuScleFitEvent &initMuEvt)
 

Public Attributes

MuScleFitEvent event
 
MuScleFitMuon mu1
 
MuScleFitMuon mu2
 

Detailed Description

Simple class used to save the muon pairs in a root tree.
Includes the information on the run and event number.

Definition at line 13 of file MuonPair.h.

Constructor & Destructor Documentation

◆ MuonPair() [1/2]

MuonPair::MuonPair ( )
inline

Definition at line 15 of file MuonPair.h.

16  : //initialize 2 object of class muon
17  mu1(lorentzVector(0, 0, 0, 0), -1),
18  mu2(lorentzVector(0, 0, 0, 0), 1),
19  event(0, 0, 0, 0, 0, 0) {}

◆ MuonPair() [2/2]

MuonPair::MuonPair ( const MuScleFitMuon initMu1,
const MuScleFitMuon initMu2,
const MuScleFitEvent initMuEvt 
)
inline

Definition at line 21 of file MuonPair.h.

22  : mu1(initMu1), mu2(initMu2), event(initMuEvt) {}

Member Function Documentation

◆ copy()

void MuonPair::copy ( const MuonPair copyPair)
inline

Used to copy the content of another MuonPair.

Definition at line 25 of file MuonPair.h.

25  {
26  mu1 = copyPair.mu1;
27  mu2 = copyPair.mu2;
28  event = copyPair.event;
29  }

References event, mu1, and mu2.

Referenced by RootTreeHandler::writeTree().

Member Data Documentation

◆ event

MuScleFitEvent MuonPair::event

◆ mu1

MuScleFitMuon MuonPair::mu1

Definition at line 31 of file MuonPair.h.

Referenced by copy(), DiObject.DiMuon::leg1(), and RootTreeHandler::readTree().

◆ mu2

MuScleFitMuon MuonPair::mu2

Definition at line 32 of file MuonPair.h.

Referenced by copy(), DiObject.DiMuon::leg2(), and RootTreeHandler::readTree().

MuonPair::mu1
MuScleFitMuon mu1
Definition: MuonPair.h:31
lorentzVector
reco::Particle::LorentzVector lorentzVector
Definition: GenMuonPair.h:9
MuonPair::event
MuScleFitEvent event
Definition: MuonPair.h:33
MuonPair::mu2
MuScleFitMuon mu2
Definition: MuonPair.h:32