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
public
:
21
GenMuonPair
()
22
:
mu1
(
lorentzVector
(0, 0, 0, 0), -1),
23
mu2
(
lorentzVector
(0, 0, 0, 0), 1),
24
motherId
(0)
//,
25
// statusMu(-1),
26
{}
27
28
GenMuonPair
(
const
MuScleFitMuon
& initMu1,
const
MuScleFitMuon
& initMu2,
const
int
initMotherId)
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
}
42
44
void
copy
(
const
GenMuonPair
& copyPair) {
45
mu1
= copyPair.
mu1
;
46
mu2
= copyPair.
mu2
;
47
motherId
= copyPair.
motherId
;
48
// statusMu = copyPair.statusMu;
49
}
50
51
MuScleFitMuon
mu1
;
52
MuScleFitMuon
mu2
;
53
Int_t
motherId
;
54
// Int_t statusMu;
55
56
ClassDef(
GenMuonPair
, 3)
57
};
58
ClassImp
(
GenMuonPair
);
59
60
#endif
GenMuonPair::GenMuonPair
GenMuonPair(const MuScleFitMuon &initMu1, const MuScleFitMuon &initMu2, const int initMotherId)
Definition:
GenMuonPair.h:28
ClassImp
ClassImp(GenMuonPair)
Muon.h
GenMuonPair::mu1
MuScleFitMuon mu1
Definition:
GenMuonPair.h:51
GenMuonPair::motherId
Int_t motherId
Definition:
GenMuonPair.h:53
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:44
GenMuonPair::GenMuonPair
GenMuonPair()
Definition:
GenMuonPair.h:21
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:52
Generated for CMSSW Reference Manual by
1.8.14