Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-11 16:23:16

0001 #ifndef RecoTracker_TkSeedGenerator_CosmicSeedCreator_H
0002 #define RecoTracker_TkSeedGenerator_CosmicSeedCreator_H
0003 
0004 #include "RecoTracker/TkSeedGenerator/interface/SeedCreator.h"
0005 #include "RecoTracker/TkSeedingLayers/interface/SeedComparitor.h"
0006 #include "MagneticField/Engine/interface/MagneticField.h"
0007 #include "MagneticField/Records/interface/IdealMagneticFieldRecord.h"
0008 #include "FWCore/Framework/interface/FrameworkfwdMostUsed.h"
0009 #include "FWCore/Utilities/interface/ESGetToken.h"
0010 
0011 class CosmicSeedCreator final : public SeedCreator {
0012 public:
0013   CosmicSeedCreator(const edm::ParameterSet &extra, edm::ConsumesCollector &&);
0014 
0015   ~CosmicSeedCreator() override {}
0016 
0017   // initialize the "event dependent state"
0018   void init(const TrackingRegion &region, const edm::EventSetup &es, const SeedComparitor *filter) override;
0019 
0020   // make job
0021   // fill seedCollection with the "TrajectorySeed"
0022   void makeSeed(TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits) override;
0023 
0024 private:
0025   const TrackingRegion *region = nullptr;
0026   const SeedComparitor *filter = nullptr;
0027   const MagneticField *bfield = nullptr;
0028 
0029   const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> magneticFieldESToken_;
0030 
0031   unsigned int maxseeds_;
0032 };
0033 #endif