CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/MuonAnalysis/MomentumScaleCalibration/interface/GenMuonPair.h

Go to the documentation of this file.
00001 #ifndef GenMuonPair_h
00002 #define GenMuonPair_h
00003 
00004 #include <TObject.h>
00005 #include "DataFormats/Candidate/interface/Particle.h"
00006 // #include "MuonAnalysis/MomentumScaleCalibration/interface/BaseMuonPair.h"
00007 
00008 typedef reco::Particle::LorentzVector lorentzVector;
00009 
00018 class GenMuonPair : public TObject
00019 {
00020 public:
00021   GenMuonPair() :
00022     mu1(lorentzVector(0,0,0,0)),
00023     mu2(lorentzVector(0,0,0,0)),
00024     motherId(0)
00025   {}
00026 
00027   GenMuonPair(const lorentzVector & inputMu1, const lorentzVector & inputMu2,
00028               const int inputMotherId) :
00029     mu1(inputMu1),
00030     mu2(inputMu2)
00031     // ,
00032     // motherId(inputMotherId)
00033   {
00034     // Put this in the initialization list and root will not compile...
00035     // Probably some conflict with the other MuonPair class that also contains integers or
00036     // something even weirder...
00037     motherId = inputMotherId;
00038   }
00039 
00041   void copy(const GenMuonPair & copyPair)
00042   {
00043     mu1 = copyPair.mu1;
00044     mu2 = copyPair.mu2;
00045     motherId = copyPair.motherId;
00046   }
00047 
00048   lorentzVector mu1;
00049   lorentzVector mu2;
00050   Int_t motherId;
00051 
00052   ClassDef(GenMuonPair, 1)
00053 };
00054 ClassImp(GenMuonPair)
00055 
00056 #endif