CMS 3D CMS Logo

TrackMerger.h
Go to the documentation of this file.
11 
12 #include "DuplicateTrackType.h"
13 
15  public:
16  TrackMerger(const edm::ParameterSet &iConfig) ;
17  ~TrackMerger();
18 
19  void init(const edm::EventSetup &iSetup) ;
20 
21  TrackCandidate merge(const reco::Track &inner, const reco::Track &outer, DuplicateTrackType duplicateType) const;
22  private:
26  bool debug_;
30 
31  void addSecondTrackHits(std::vector<const TrackingRecHit *>& hits, const reco::Track& outer) const;
32  void sortByHitPosition(const GlobalVector& v, const std::vector<const TrackingRecHit *>& hits, TrackCandidate::RecHitContainer& ownHits) const;
33 
35  public:
37  bool operator()(const TransientTrackingRecHit::RecHitPointer &hit1, const TransientTrackingRecHit::RecHitPointer &hit2) const ;
38  private:
40  };
41  class MomentumSort {
42  public:
43  MomentumSort(const GlobalVector &dir, const TrackerGeometry *geometry) : dir_(dir), geom_(geometry) {}
44  bool operator()(const TrackingRecHit *hit1, const TrackingRecHit *hit2) const ;
45  private:
48  };
49 };
edm::ESHandle< TrackerTopology > theTrkTopo
Definition: TrackMerger.h:29
#define dso_hidden
const TrackerGeometry * geom_
Definition: TrackMerger.h:47
static const char dir_[]
std::string theBuilderName
Definition: TrackMerger.h:27
int init
Definition: HydjetWrapper.h:67
GlobalMomentumSort(const GlobalVector &dir)
Definition: TrackMerger.h:36
DuplicateTrackType
bool useInnermostState_
Definition: TrackMerger.h:25
std::shared_ptr< TrackingRecHit const > RecHitPointer
MomentumSort(const GlobalVector &dir, const TrackerGeometry *geometry)
Definition: TrackMerger.h:43
edm::ESHandle< TransientTrackingRecHitBuilder > theBuilder
Definition: TrackMerger.h:28
dbl *** dir
Definition: mlp_gen.cc:35
edm::ESHandle< MagneticField > theMagField
Definition: TrackMerger.h:24
edm::ESHandle< TrackerGeometry > theGeometry
Definition: TrackMerger.h:23
def merge(dictlist, TELL=False)
Definition: MatrixUtil.py:191