Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:30

0001 #ifndef MuonPair_h
0002 #define MuonPair_h
0003 
0004 #include <TObject.h>
0005 #include "MuonAnalysis/MomentumScaleCalibration/interface/Muon.h"
0006 #include "MuonAnalysis/MomentumScaleCalibration/interface/Event.h"
0007 
0008 /**
0009  * Simple class used to save the muon pairs in a root tree. <br>
0010  * Includes the information on the run and event number.
0011  */
0012 
0013 class MuonPair : public TObject {
0014 public:
0015   MuonPair()
0016       :  //initialize 2 object of class muon
0017         mu1(lorentzVector(0, 0, 0, 0), -1),
0018         mu2(lorentzVector(0, 0, 0, 0), 1),
0019         event(0, 0, 0, 0, 0, 0) {}
0020 
0021   MuonPair(const MuScleFitMuon& initMu1, const MuScleFitMuon& initMu2, const MuScleFitEvent& initMuEvt)
0022       : mu1(initMu1), mu2(initMu2), event(initMuEvt) {}
0023 
0024   /// Used to copy the content of another MuonPair
0025   void copy(const MuonPair& copyPair) {
0026     mu1 = copyPair.mu1;
0027     mu2 = copyPair.mu2;
0028     event = copyPair.event;
0029   }
0030 
0031   MuScleFitMuon mu1;
0032   MuScleFitMuon mu2;
0033   MuScleFitEvent event;
0034 
0035   ClassDef(MuonPair, 4)
0036 };
0037 ClassImp(MuonPair);
0038 
0039 #endif