CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/RecoHI/HiMuonAlgos/interface/HICFTSfromL1orL2.h

Go to the documentation of this file.
00001 #ifndef HICFTSfromL1orL2_H
00002 #define HICFTSfromL1orL2_H
00003 
00004 //CommonDet
00005 #include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"
00006 #include "TrackingTools/TrajectoryState/interface/FreeTrajectoryState.h"
00007 
00008 // Muon trigger
00009 
00010 #include "DataFormats/L1GlobalMuonTrigger/interface/L1MuGMTReadoutRecord.h"
00011 #include "DataFormats/L1GlobalMuonTrigger/interface/L1MuRegionalCand.h"
00012 #include "DataFormats/L1GlobalMuonTrigger/interface/L1MuGMTCand.h"
00013 
00014 // L2MuonReco
00015 
00016 #include "DataFormats/TrackReco/interface/Track.h"
00017 #include "DataFormats/TrackReco/interface/TrackFwd.h"
00018 #include "DataFormats/RecoCandidate/interface/RecoChargedCandidate.h"
00019 #include "DataFormats/RecoCandidate/interface/RecoChargedCandidateFwd.h"
00020 #include "DataFormats/Candidate/interface/Candidate.h"
00021 #include "TrackingTools/TransientTrack/interface/TransientTrack.h"
00022 #include "DataFormats/TrackReco/interface/Track.h"
00023 
00024 #include "MagneticField/Engine/interface/MagneticField.h"
00025 
00026 //CLHEP includes
00027 #include <CLHEP/Vector/LorentzVector.h>
00028 //#include "CLHEP/Units/GlobalPhysicalConstants.h"
00029 #include "CLHEP/Vector/ThreeVector.h"
00030 #include <cmath>
00031 #include <stdlib.h>
00032 #include <string>
00033 #include <iostream>
00034 #include <vector>
00035 #include <algorithm>
00036 
00037 
00038 //-----------------------------------------------------------------------------
00039 namespace cms {
00040 class HICFTSfromL1orL2
00041 {
00042 
00043   public:
00044 
00045     HICFTSfromL1orL2(const MagneticField * mf){field = mf;}
00046     virtual ~HICFTSfromL1orL2(){}
00047     std::vector<FreeTrajectoryState> createFTSfromL1(std::vector<L1MuGMTExtendedCand>&);
00048     std::vector<FreeTrajectoryState> createFTSfromL2(const reco::RecoChargedCandidateCollection& rc);
00049     std::vector<FreeTrajectoryState> createFTSfromStandAlone(const reco::TrackCollection& rc);
00050     std::vector<FreeTrajectoryState> createFTSfromL2(const reco::TrackCollection& rc);
00051     std::vector<FreeTrajectoryState> createFTSfromL1orL2(std::vector<L1MuGMTExtendedCand>& gmt, const reco::RecoChargedCandidateCollection& recmuons);
00052     
00053   private:
00054     FreeTrajectoryState FTSfromL1(const L1MuGMTExtendedCand& gmt);
00055     FreeTrajectoryState FTSfromL2(const reco::RecoChargedCandidate& gmt);
00056     FreeTrajectoryState FTSfromStandAlone(const reco::Track& gmt);
00057     
00058     const MagneticField * field;
00059 };
00060 }
00061 #endif
00062