CMS 3D CMS Logo

TrackMerger.h
Go to the documentation of this file.
16 
17 #include "DuplicateTrackType.h"
18 
20 public:
22  ~TrackMerger();
23 
24  void init(const edm::EventSetup &iSetup);
25 
26  TrackCandidate merge(const reco::Track &inner, const reco::Track &outer, DuplicateTrackType duplicateType) const;
27 
28 private:
32  bool debug_;
40 
41  void addSecondTrackHits(std::vector<const TrackingRecHit *> &hits, const reco::Track &outer) const;
42  void sortByHitPosition(const GlobalVector &v,
43  const std::vector<const TrackingRecHit *> &hits,
44  TrackCandidate::RecHitContainer &ownHits) const;
45 
47  public:
49  bool operator()(const TransientTrackingRecHit::RecHitPointer &hit1,
50  const TransientTrackingRecHit::RecHitPointer &hit2) const;
51 
52  private:
54  };
55  class MomentumSort {
56  public:
58  bool operator()(const TrackingRecHit *hit1, const TrackingRecHit *hit2) const;
59 
60  private:
63  };
64 };
edm::ESHandle< TrackerTopology > theTrkTopo
Definition: TrackMerger.h:35
const TrackerGeometry * geom_
Definition: TrackMerger.h:62
static const char dir_[]
std::string theBuilderName
Definition: TrackMerger.h:33
int merge(int argc, char *argv[])
Definition: DiMuonVmerge.cc:27
int init
Definition: HydjetWrapper.h:66
GlobalMomentumSort(const GlobalVector &dir)
Definition: TrackMerger.h:48
edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > builderToken_
Definition: TrackMerger.h:38
DuplicateTrackType
bool useInnermostState_
Definition: TrackMerger.h:31
std::shared_ptr< TrackingRecHit const > RecHitPointer
#define dso_hidden
Definition: Visibility.h:12
MomentumSort(const GlobalVector &dir, const TrackerGeometry *geometry)
Definition: TrackMerger.h:57
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition: TrackMerger.h:37
edm::ESHandle< TransientTrackingRecHitBuilder > theBuilder
Definition: TrackMerger.h:34
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geometryToken_
Definition: TrackMerger.h:36
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoToken_
Definition: TrackMerger.h:39
edm::ESHandle< MagneticField > theMagField
Definition: TrackMerger.h:30
edm::ESHandle< TrackerGeometry > theGeometry
Definition: TrackMerger.h:29