Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:26:57

0001 #ifndef RecoMuon_L2MuonSeedGenerator_L2MuonSeedGenerator_H
0002 #define RecoMuon_L2MuonSeedGenerator_L2MuonSeedGenerator_H
0003 
0004 //-------------------------------------------------
0005 //
0006 /**  \class L2MuonSeedGenerator
0007  * 
0008  *   L2 muon seed generator:
0009  *   Transform the L1 informations in seeds for the
0010  *   L2 muon reconstruction
0011  *
0012  *
0013  *
0014  *   \author  A.Everett, R.Bellan
0015  *
0016  *    ORCA's author: N. Neumeister 
0017  */
0018 //
0019 //--------------------------------------------------
0020 
0021 #include "FWCore/Framework/interface/stream/EDProducer.h"
0022 #include "FWCore/Utilities/interface/InputTag.h"
0023 
0024 // Data Formats
0025 #include "DataFormats/MuonSeed/interface/L2MuonTrajectorySeed.h"
0026 #include "DataFormats/MuonSeed/interface/L2MuonTrajectorySeedCollection.h"
0027 #include "DataFormats/TrajectoryState/interface/PTrajectoryStateOnDet.h"
0028 #include "DataFormats/MuonDetId/interface/DTChamberId.h"
0029 #include "DataFormats/MuonDetId/interface/CSCDetId.h"
0030 #include "DataFormats/L1GlobalMuonTrigger/interface/L1MuGMTExtendedCand.h"
0031 #include "DataFormats/L1GlobalMuonTrigger/interface/L1MuGMTReadoutCollection.h"
0032 #include "DataFormats/L1GlobalMuonTrigger/interface/L1MuRegionalCand.h"
0033 #include "DataFormats/L1Trigger/interface/L1MuonParticle.h"
0034 #include "DataFormats/L1Trigger/interface/L1MuonParticleFwd.h"
0035 #include "DataFormats/Common/interface/Handle.h"
0036 #include "DataFormats/GeometrySurface/interface/BoundCylinder.h"
0037 #include "DataFormats/Math/interface/deltaR.h"
0038 
0039 #include "CLHEP/Vector/ThreeVector.h"
0040 
0041 #include "Geometry/CommonDetUnit/interface/GeomDetEnumerators.h"
0042 
0043 class MuonServiceProxy;
0044 class MeasurementEstimator;
0045 class TrajectorySeed;
0046 class TrajectoryStateOnSurface;
0047 
0048 namespace edm {
0049   class ParameterSet;
0050   class Event;
0051   class EventSetup;
0052 }  // namespace edm
0053 
0054 class L2MuonSeedGenerator : public edm::stream::EDProducer<> {
0055 public:
0056   /// Constructor
0057   explicit L2MuonSeedGenerator(const edm::ParameterSet &);
0058 
0059   /// Destructor
0060   ~L2MuonSeedGenerator() override;
0061 
0062   void produce(edm::Event &, const edm::EventSetup &) override;
0063 
0064 private:
0065   edm::InputTag theSource;
0066   edm::InputTag theL1GMTReadoutCollection;
0067   edm::InputTag theOfflineSeedLabel;
0068   std::string thePropagatorName;
0069 
0070   edm::EDGetTokenT<L1MuGMTReadoutCollection> gmtToken_;
0071   edm::EDGetTokenT<l1extra::L1MuonParticleCollection> muCollToken_;
0072   edm::EDGetTokenT<edm::View<TrajectorySeed> > offlineSeedToken_;
0073 
0074   const double theL1MinPt;
0075   const double theL1MaxEta;
0076   const unsigned theL1MinQuality;
0077   const bool useOfflineSeed;
0078   const bool useUnassociatedL1;
0079 
0080   /// the event setup proxy, it takes care the services update
0081   MuonServiceProxy *theService;
0082 
0083   MeasurementEstimator *theEstimator;
0084 
0085   const TrajectorySeed *associateOfflineSeedToL1(edm::Handle<edm::View<TrajectorySeed> > &,
0086                                                  std::vector<int> &,
0087                                                  TrajectoryStateOnSurface &);
0088 };
0089 
0090 #endif