Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-10-14 01:44:35

0001 #ifndef CosmicRegionalSeedGenerator_h
0002 #define CosmicRegionalSeedGenerator_h
0003 
0004 //
0005 // Class:           CosmicRegionalSeedGenerator
0006 
0007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0008 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0009 #include "FWCore/Framework/interface/Event.h"
0010 #include "FWCore/Framework/interface/EventSetup.h"
0011 #include "FWCore/Utilities/interface/InputTag.h"
0012 #include "FWCore/Framework/interface/ESHandle.h"
0013 
0014 #include "DataFormats/Common/interface/Handle.h"
0015 #include "DataFormats/Math/interface/Vector3D.h"
0016 #include "DataFormats/TrackReco/interface/Track.h"
0017 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0018 
0019 #include "RecoTracker/TkTrackingRegions/interface/TrackingRegionProducer.h"
0020 #include "RecoTracker/TkTrackingRegions/interface/GlobalTrackingRegion.h"
0021 #include "RecoTracker/SpecialSeedGenerators/interface/CosmicTrackingRegion.h"
0022 
0023 #include "DataFormats/HLTReco/interface/TriggerObject.h"
0024 #include "FWCore/Common/interface/TriggerNames.h"
0025 #include "DataFormats/HLTReco/interface/TriggerEvent.h"
0026 #include "TrackingTools/Records/interface/TrackingComponentsRecord.h"
0027 #include "TrackingTools/GeomPropagators/interface/StateOnTrackerBound.h"
0028 #include "RecoTracker/MeasurementDet/interface/MeasurementTrackerEvent.h"
0029 
0030 // Math
0031 #include "Math/GenVector/VectorUtil.h"
0032 #include "Math/GenVector/PxPyPzE4D.h"
0033 
0034 //Geometry
0035 #include "DataFormats/JetReco/interface/CaloJetCollection.h"
0036 #include "DataFormats/MuonReco/interface/MuonFwd.h"
0037 #include "DataFormats/RecoCandidate/interface/RecoChargedCandidateFwd.h"
0038 #include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
0039 #include "FWCore/Framework/interface/ConsumesCollector.h"
0040 #include "Geometry/CommonDetUnit/interface/GeomDet.h"
0041 #include "Geometry/CommonDetUnit/interface/PixelGeomDetUnit.h"
0042 #include "Geometry/Records/interface/IdealGeometryRecord.h"
0043 #include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
0044 #include "Geometry/TrackerGeometryBuilder/interface/StripGeomDetUnit.h"
0045 #include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
0046 #include "TrackingTools/GeomPropagators/interface/Propagator.h"
0047 
0048 class CosmicRegionalSeedGenerator : public TrackingRegionProducer {
0049 public:
0050   explicit CosmicRegionalSeedGenerator(const edm::ParameterSet& conf, edm::ConsumesCollector&& iC);
0051 
0052   ~CosmicRegionalSeedGenerator() override {}
0053 
0054   std::vector<std::unique_ptr<TrackingRegion> > regions(const edm::Event& event,
0055                                                         const edm::EventSetup& es) const override;
0056 
0057 private:
0058   float ptMin_;
0059   float rVertex_;
0060   float zVertex_;
0061   float deltaEta_;
0062   float deltaPhi_;
0063 
0064   std::string regionBase_;
0065 
0066   edm::ESGetToken<Propagator, TrackingComponentsRecord> propagatorToken_;
0067   edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> magfieldToken_;
0068 
0069   edm::InputTag recoMuonsCollection_;
0070   edm::InputTag recoTrackMuonsCollection_;
0071   edm::InputTag recoL2MuonsCollection_;
0072   edm::EDGetTokenT<reco::CaloJetCollection> recoCaloJetsToken_;
0073   edm::EDGetTokenT<reco::MuonCollection> recoMuonsToken_;
0074   edm::EDGetTokenT<reco::TrackCollection> recoTrackMuonsToken_;
0075   edm::EDGetTokenT<reco::RecoChargedCandidateCollection> recoL2MuonsToken_;
0076   edm::EDGetTokenT<MeasurementTrackerEvent> measurementTrackerEventToken_;
0077 
0078   bool doJetsExclusionCheck_;
0079   double deltaRExclusionSize_;
0080   double jetsPtMin_;
0081   edm::InputTag recoCaloJetsCollection_;
0082 };
0083 
0084 #endif