CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SeedForPhotonConversion1Leg.h
Go to the documentation of this file.
1 #ifndef SeedForPhotonConversion1Leg_H
2 #define SeedForPhotonConversion1Leg_H
3 
5 #include "PrintRecoObjects.h"
18 
20 
22 
23 //
24 // this class need to be cleaned and optimized as those in RecoTracker/TkSeedGenerator
25 //
27 public:
28  static const int cotTheta_Max = 99999;
29 
31  : theBfieldToken(iC.esConsumes()),
33  thePropagatorToken(iC.esConsumes(edm::ESInputTag("", cfg.getParameter<std::string>("propagator")))),
34  theTTRHBuilderToken(iC.esConsumes(edm::ESInputTag("", cfg.getParameter<std::string>("TTRHBuilder")))),
35  theBOFFMomentum(cfg.getParameter<double>("SeedMomentumForBOFF")) {}
36 
37  //dtor
39 
40  const TrajectorySeed* trajectorySeed(TrajectorySeedCollection& seedCollection,
41  const SeedingHitSet& hits,
42  const GlobalPoint& vertex,
43  const GlobalVector& vertexBounds,
44  float ptmin,
45  const edm::EventSetup& es,
46  float cotTheta,
47  std::stringstream& ss);
48 
49 protected:
52  const edm::EventSetup& es) const {
53  return true;
54  }
55 
56  GlobalTrajectoryParameters initialKinematic(const SeedingHitSet& hits,
57  const GlobalPoint& vertexPos,
58  const edm::EventSetup& es,
59  const float cotTheta) const;
60 
61  CurvilinearTrajectoryError initialError(const GlobalVector& vertexBounds, float ptMin, float sinTheta) const;
62 
63  const TrajectorySeed* buildSeed(TrajectorySeedCollection& seedCollection,
64  const SeedingHitSet& hits,
65  const FreeTrajectoryState& fts,
66  const edm::EventSetup& es) const;
67 
70  const TkClonerImpl& cloner) const;
71 
72 protected:
78 
79  std::stringstream* pss;
81 };
82 #endif
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > theTrackerToken
tuple cfg
Definition: looper.py:296
SeedForPhotonConversion1Leg(const edm::ParameterSet &cfg, edm::ConsumesCollector iC)
edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > theTTRHBuilderToken
constexpr float ptMin
theTrackerToken(iC.esConsumes())
BaseTrackerRecHit const * ConstRecHitPointer
Definition: SeedingHitSet.h:10
std::vector< TrajectorySeed > TrajectorySeedCollection
edm::ESGetToken< Propagator, TrackingComponentsRecord > thePropagatorToken
#define dso_hidden
Definition: Visibility.h:12
double ptmin
Definition: HydjetWrapper.h:84
bool checkHit(const TrajectoryStateOnSurface &, const SeedingHitSet::ConstRecHitPointer &hit, const edm::EventSetup &es) const
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > theBfieldToken