CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SeedFromConsecutiveHits.h
Go to the documentation of this file.
1 #ifndef SeedFromConsecutiveHits_H
2 #define SeedFromConsecutiveHits_H
3 
21 
24 
26 #include <boost/shared_ptr.hpp>
27 
29 
30 public:
32 
34  const GlobalPoint& vertexPos, const GlobalError& vertexErr,
35  const edm::EventSetup& es, float ptMin, double theBOFFMomentum=-1.0)
36  {
37  GlobalTrackingRegion region( ptMin, vertexPos, sqrt(vertexErr.cxx()), sqrt(vertexErr.czz()) );
38  SeedFromConsecutiveHitsCreator creator("PropagatorWithMaterial",theBOFFMomentum);
39  theSeed.clear();
40  creator.trajectorySeed(theSeed, hits, region, es);
41  }
42 
44 
45  bool isValid() {return theSeed.size()>0 ; }
46 
47  TrajectorySeed const & TrajSeed(){ return theSeed.back(); }
48 
49 private:
51 };
52 
53 #endif
edm::OwnVector< TrackingRecHit > recHitContainer
TrajectorySeedCollection theSeed
TrajectorySeed const & TrajSeed()
virtual const TrajectorySeed * trajectorySeed(TrajectorySeedCollection &seedCollection, const SeedingHitSet &ordered, const TrackingRegion &region, const edm::EventSetup &es)
std::vector< TrajectorySeed > TrajectorySeedCollection
T sqrt(T t)
Definition: SSEVec.h:28
SeedFromConsecutiveHits(const SeedingHitSet &hits, const GlobalPoint &vertexPos, const GlobalError &vertexErr, const edm::EventSetup &es, float ptMin, double theBOFFMomentum=-1.0)