CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GenMuonPair.h
Go to the documentation of this file.
1 #ifndef GenMuonPair_h
2 #define GenMuonPair_h
3 
4 #include <TObject.h>
6 // #include "MuonAnalysis/MomentumScaleCalibration/interface/BaseMuonPair.h"
7 
9 
18 class GenMuonPair : public TObject
19 {
20 public:
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 
50  Int_t motherId;
51 
52  ClassDef(GenMuonPair, 1)
53 };
54 ClassImp(GenMuonPair)
55 
56 #endif
GenMuonPair(const lorentzVector &inputMu1, const lorentzVector &inputMu2, const int inputMotherId)
Definition: GenMuonPair.h:27
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
void copy(const GenMuonPair &copyPair)
Used to copy the content of another GenMuonPair.
Definition: GenMuonPair.h:41
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Particle.h:25