Main Page
Namespaces
Classes
Package Documentation
src
MuonAnalysis
MomentumScaleCalibration
interface
GenMuonPair.h
Go to the documentation of this file.
1
#ifndef GenMuonPair_h
2
#define GenMuonPair_h
3
4
#include <TObject.h>
5
#include "
DataFormats/Candidate/interface/Particle.h
"
6
// #include "MuonAnalysis/MomentumScaleCalibration/interface/BaseMuonPair.h"
7
#include "
MuonAnalysis/MomentumScaleCalibration/interface/Muon.h
"
8
9
typedef
reco::Particle::LorentzVector
lorentzVector
;
10
19
class
GenMuonPair
:
public
TObject
20
{
21
public
:
22
GenMuonPair
() :
23
mu1
(
lorentzVector
(0,0,0,0),-1),
24
mu2
(
lorentzVector
(0,0,0,0),1),
25
motherId
(0)
//,
26
// statusMu(-1),
27
{}
28
29
GenMuonPair
(
const
MuScleFitMuon
& initMu1,
const
MuScleFitMuon
& initMu2,
30
const
int
initMotherId) :
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
}
44
46
void
copy
(
const
GenMuonPair
& copyPair)
47
{
48
mu1
= copyPair.
mu1
;
49
mu2
= copyPair.
mu2
;
50
motherId
= copyPair.
motherId
;
51
// statusMu = copyPair.statusMu;
52
}
53
54
MuScleFitMuon
mu1
;
55
MuScleFitMuon
mu2
;
56
Int_t
motherId
;
57
// Int_t statusMu;
58
59
ClassDef(
GenMuonPair
, 3)
60
};
61
ClassImp
(
GenMuonPair
);
62
63
#endif
GenMuonPair::GenMuonPair
GenMuonPair(const MuScleFitMuon &initMu1, const MuScleFitMuon &initMu2, const int initMotherId)
Definition:
GenMuonPair.h:29
ClassImp
ClassImp(GenMuonPair)
Muon.h
GenMuonPair::mu1
MuScleFitMuon mu1
Definition:
GenMuonPair.h:54
GenMuonPair::motherId
Int_t motherId
Definition:
GenMuonPair.h:56
lorentzVector
reco::Particle::LorentzVector lorentzVector
Definition:
GenMuonPair.h:9
MuScleFitMuon
Definition:
Muon.h:14
GenMuonPair::copy
void copy(const GenMuonPair ©Pair)
Used to copy the content of another GenMuonPair.
Definition:
GenMuonPair.h:46
GenMuonPair::GenMuonPair
GenMuonPair()
Definition:
GenMuonPair.h:22
GenMuonPair
Definition:
GenMuonPair.h:19
reco::Particle::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Particle.h:21
Particle.h
GenMuonPair::mu2
MuScleFitMuon mu2
Definition:
GenMuonPair.h:55
Generated for CMSSW Reference Manual by
1.8.11