1 |
#ifndef TSCBLBuilderWithPropagator_H
|
2 |
#define TSCBLBuilderWithPropagator_H
|
3 |
|
4 |
#include "TrackingTools/PatternTools/interface/TrajectoryStateClosestToBeamLineBuilder.h"
|
5 |
#include "TrackingTools/GeomPropagators/interface/Propagator.h"
|
6 |
#include "DataFormats/GeometryCommonDetAlgo/interface/DeepCopyPointerByClone.h"
|
7 |
#include "MagneticField/Engine/interface/MagneticField.h"
|
8 |
|
9 |
/**
|
10 |
* This class builds a TrajectoryStateClosestToBeamLine given an original
|
11 |
* FreeTrajectoryState. This new state is then
|
12 |
* defined at the point of closest approach to the beam line.
|
13 |
* It is to be used when a specific propagator has to be used.
|
14 |
*/
|
15 |
|
16 |
class TSCBLBuilderWithPropagator : public TrajectoryStateClosestToBeamLineBuilder
|
17 |
{
|
18 |
public:
|
19 |
|
20 |
/// constructor with default geometrical propagator
|
21 |
TSCBLBuilderWithPropagator(const MagneticField* field);
|
22 |
|
23 |
/// constructor with user-supplied propagator
|
24 |
TSCBLBuilderWithPropagator(const Propagator& u);
|
25 |
|
26 |
virtual ~TSCBLBuilderWithPropagator(){};
|
27 |
|
28 |
virtual TrajectoryStateClosestToBeamLine operator()
|
29 |
(const FTS& originalFTS, const reco::BeamSpot & beamSpot) const;
|
30 |
|
31 |
private:
|
32 |
DeepCopyPointerByClone<Propagator> thePropagator;
|
33 |
|
34 |
};
|
35 |
#endif
|