CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackProducerAlgorithm.h
Go to the documentation of this file.
1 #ifndef TrackProducerAlgorithm_h
2 #define TrackProducerAlgorithm_h
3 
21 
22 class MagneticField;
23 class TrackingGeometry;
24 class TrajectoryFitter;
25 class Propagator;
26 class Trajectory;
29 
30 
31 template <class T>
33 public:
34  typedef std::vector<T> TrackCollection;
35  typedef std::pair<Trajectory*, std::pair<T*,PropagationDirection> > AlgoProduct;
36  typedef std::vector< AlgoProduct > AlgoProductCollection;
38  typedef edm::AssociationMap<edm::OneToOne<std::vector<T>,std::vector<VertexConstraint> > >
40  public:
41 
44  conf_(conf),
45  algoName_(conf_.getParameter<std::string>( "AlgorithmName" )),
46  algo_(reco::TrackBase::algoByName(algoName_)),
48  {
49  if (conf_.exists("reMatchSplitHits"))
50  reMatchSplitHits_=conf_.getParameter<bool>("reMatchSplitHits");
51  }
52 
55 
57  void runWithCandidate(const TrackingGeometry *,
58  const MagneticField *,
60  const TrajectoryFitter *,
61  const Propagator *,
63  const reco::BeamSpot&,
65 
67  void runWithTrack(const TrackingGeometry *,
68  const MagneticField *,
69  const TrackCollection&,
70  const TrajectoryFitter *,
71  const Propagator *,
73  const reco::BeamSpot&,
75 
77  void runWithMomentum(const TrackingGeometry *,
78  const MagneticField *,
80  const TrajectoryFitter *,
81  const Propagator *,
83  const reco::BeamSpot&,
85 
88  void runWithVertex(const TrackingGeometry *,
89  const MagneticField *,
91  const TrajectoryFitter *,
92  const Propagator *,
94  const reco::BeamSpot&,
96 
100  const MagneticField *,
102  const TrajectoryFitter *,
103  const Propagator *,
105  const reco::BeamSpot&,
107 
109  bool buildTrack(const TrajectoryFitter *,
110  const Propagator *,
114  const TrajectorySeed&,
115  float,
116  const reco::BeamSpot&,
117  SeedRef seedRef = SeedRef(),
118  int qualityMask=0,
119  signed char nLoops=0);
120 
121  private:
123  std::string algoName_;
126 
129  const TrackingGeometry * theG,
130  const MagneticField * theMF);
131 
132 };
133 
134 #include "RecoTracker/TrackProducer/interface/TrackProducerAlgorithm.icc"
135 
136 template <> bool
138  const Propagator *,
139  AlgoProductCollection& ,
142  const TrajectorySeed&,
143  float,
144  const reco::BeamSpot&,
145  SeedRef seedRef,
146  int qualityMask,
147  signed char nLoops);
148 
149 
150 template <> bool
152  const Propagator *,
153  AlgoProductCollection& ,
156  const TrajectorySeed&,
157  float,
158  const reco::BeamSpot&,
159  SeedRef seedRef,
160  int qualityMask,
161  signed char nLoops);
162 
163 #endif
T getParameter(std::string const &) const
std::vector< TrackCandidate > TrackCandidateCollection
edm::AssociationMap< edm::OneToOne< std::vector< T >, std::vector< VertexConstraint > > > VtxConstraintAssociationCollection
bool exists(std::string const &parameterName) const
checks if a parameter exists
TrackProducerAlgorithm(const edm::ParameterSet &conf)
Constructor.
std::vector< AlgoProduct > AlgoProductCollection
std::vector< ConstRecHitPointer > RecHitContainer
bool buildTrack(const TrajectoryFitter *, const Propagator *, AlgoProductCollection &, TransientTrackingRecHit::RecHitContainer &, TrajectoryStateOnSurface &, const TrajectorySeed &, float, const reco::BeamSpot &, SeedRef seedRef=SeedRef(), int qualityMask=0, signed char nLoops=0)
Construct Tracks to be put in the event.
TrackAlgorithm
track algorithm
Definition: TrackBase.h:82
void runWithMomentum(const TrackingGeometry *, const MagneticField *, const TrackMomConstraintAssociationCollection &, const TrajectoryFitter *, const Propagator *, const TransientTrackingRecHitBuilder *, const reco::BeamSpot &, AlgoProductCollection &)
Run the Final Fit taking TrackMomConstraintAssociation as input (Refitter with momentum constraint) ...
TrajectoryStateOnSurface getInitialState(const T *theT, TransientTrackingRecHit::RecHitContainer &hits, const TrackingGeometry *theG, const MagneticField *theMF)
std::pair< Trajectory *, std::pair< T *, PropagationDirection > > AlgoProduct
tuple conf
Definition: dbtoconf.py:185
void runWithVertex(const TrackingGeometry *, const MagneticField *, const VtxConstraintAssociationCollection &, const TrajectoryFitter *, const Propagator *, const TransientTrackingRecHitBuilder *, const reco::BeamSpot &, AlgoProductCollection &)
void runWithTrackParameters(const TrackingGeometry *, const MagneticField *, const TrackParamConstraintAssociationCollection &, const TrajectoryFitter *, const Propagator *, const TransientTrackingRecHitBuilder *, const reco::BeamSpot &, AlgoProductCollection &)
reco::TrackBase::TrackAlgorithm algo_
edm::RefToBase< TrajectorySeed > SeedRef
void runWithCandidate(const TrackingGeometry *, const MagneticField *, const TrackCandidateCollection &, const TrajectoryFitter *, const Propagator *, const TransientTrackingRecHitBuilder *, const reco::BeamSpot &, AlgoProductCollection &)
Run the Final Fit taking TrackCandidates as input.
long double T
std::vector< T > TrackCollection
void runWithTrack(const TrackingGeometry *, const MagneticField *, const TrackCollection &, const TrajectoryFitter *, const Propagator *, const TransientTrackingRecHitBuilder *, const reco::BeamSpot &, AlgoProductCollection &)
Run the Final Fit taking Tracks as input (for Refitter)