Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
8
typedef
reco::Particle::LorentzVector
lorentzVector
;
9
18
class
GenMuonPair
:
public
TObject
19
{
20
public
:
21
GenMuonPair
() :
22
mu1
(
lorentzVector
(0,0,0,0)),
23
mu2
(
lorentzVector
(0,0,0,0)),
24
motherId
(0)
25
{}
26
27
GenMuonPair
(
const
lorentzVector
& inputMu1,
const
lorentzVector
& inputMu2,
28
const
int
inputMotherId) :
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
}
39
41
void
copy
(
const
GenMuonPair
& copyPair)
42
{
43
mu1
= copyPair.
mu1
;
44
mu2
= copyPair.
mu2
;
45
motherId
= copyPair.
motherId
;
46
}
47
48
lorentzVector
mu1
;
49
lorentzVector
mu2
;
50
Int_t
motherId
;
51
52
ClassDef(
GenMuonPair
, 1)
53
};
54
ClassImp(
GenMuonPair
)
55
56
#endif
GenMuonPair::GenMuonPair
GenMuonPair(const lorentzVector &inputMu1, const lorentzVector &inputMu2, const int inputMotherId)
Definition:
GenMuonPair.h:27
GenMuonPair::motherId
Int_t motherId
Definition:
GenMuonPair.h:50
lorentzVector
reco::Particle::LorentzVector lorentzVector
Definition:
GenMuonPair.h:8
GenMuonPair::mu1
lorentzVector mu1
Definition:
GenMuonPair.h:48
GenMuonPair::mu2
lorentzVector mu2
Definition:
GenMuonPair.h:49
GenMuonPair::copy
void copy(const GenMuonPair ©Pair)
Used to copy the content of another GenMuonPair.
Definition:
GenMuonPair.h:41
GenMuonPair::GenMuonPair
GenMuonPair()
Definition:
GenMuonPair.h:21
GenMuonPair
Definition:
GenMuonPair.h:18
reco::Particle::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Particle.h:25
Particle.h
Generated for CMSSW Reference Manual by
1.8.5