Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-22 02:39:55

0001 #ifndef SeedGeneratorForCosmics_H
0002 #define SeedGeneratorForCosmics_H
0003 
0004 /** \class CombinatorialSeedGeneratorFromPixel
0005  *  A concrete regional seed generator providing seeds constructed 
0006  *  from combinations of hits in pairs of pixel layers 
0007  */
0008 #include "DataFormats/TrajectorySeed/interface/TrajectorySeedCollection.h"
0009 #include "RecoTracker/TkTrackingRegions/interface/GlobalTrackingRegion.h"
0010 //#include "RecoTracker/SpecialSeedGenerators/interface/SeedGeneratorFromLayerPairs.h"
0011 #include "FWCore/Framework/interface/EventSetup.h"
0012 #include "FWCore/Framework/interface/ConsumesCollector.h"
0013 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0014 #include "DataFormats/TrackerRecHit2D/interface/SiStripMatchedRecHit2DCollection.h"
0015 #include "DataFormats/TrackerRecHit2D/interface/SiStripRecHit2DCollection.h"
0016 #include "RecoTracker/TkHitPairs/interface/CosmicHitPairGenerator.h"
0017 #include "MagneticField/Engine/interface/MagneticField.h"
0018 #include "MagneticField/Records/interface/IdealMagneticFieldRecord.h"
0019 #include "TrackingTools/TrajectoryState/interface/TrajectoryStateTransform.h"
0020 #include "TrackingTools/MaterialEffects/interface/PropagatorWithMaterial.h"
0021 #include "TrackingTools/KalmanUpdators/interface/KFUpdator.h"
0022 #include "TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHit.h"
0023 #include "TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHitBuilder.h"
0024 #include "RecoPixelVertexing/PixelTriplets/interface/CosmicHitTripletGenerator.h"
0025 class PixelSeedLayerPairs;
0026 class GeometricSearchTracker;
0027 class TrackerRecoGeometryRecord;
0028 
0029 class SeedGeneratorForCosmics {
0030 public:
0031   typedef TrajectoryStateOnSurface TSOS;
0032   SeedGeneratorForCosmics(const edm::ParameterSet &conf, edm::ConsumesCollector);
0033 
0034   void run(const SiStripRecHit2DCollection &collstereo,
0035            const SiStripRecHit2DCollection &collrphi,
0036            const SiStripMatchedRecHit2DCollection &collmatched,
0037            const edm::EventSetup &c,
0038            TrajectorySeedCollection &);
0039 
0040 private:
0041   void init(const SiStripRecHit2DCollection &collstereo,
0042             const SiStripRecHit2DCollection &collrphi,
0043             const SiStripMatchedRecHit2DCollection &collmatched,
0044             const edm::EventSetup &c);
0045 
0046   bool seeds(TrajectorySeedCollection &output, const TrackingRegion &region);
0047 
0048   int32_t maxSeeds_;
0049   GlobalTrackingRegion region;
0050   CosmicHitPairGenerator *thePairGenerator;
0051   CosmicHitTripletGenerator *theTripletGenerator;
0052   edm::ESHandle<MagneticField> magfield;
0053   edm::ESHandle<TrackerGeometry> tracker;
0054 
0055   const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> theMagfieldToken;
0056   const edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> theTrackerToken;
0057   const edm::ESGetToken<GeometricSearchTracker, TrackerRecoGeometryRecord> theSearchTrackerToken;
0058   const edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> theTTopoToken;
0059 
0060   KFUpdator *theUpdator;
0061   PropagatorWithMaterial *thePropagatorAl;
0062   PropagatorWithMaterial *thePropagatorOp;
0063   std::string geometry;
0064   std::string hitsforseeds;
0065   float seedpt;
0066   OrderedHitPairs HitPairs;
0067   OrderedHitTriplets HitTriplets;
0068 
0069   //***top-bottom
0070   bool positiveYOnly;
0071   bool negativeYOnly;
0072   //***
0073 };
0074 #endif