11 _useKDTree(conf.getParameter<bool>(
"useKDTree")),
12 _debug(conf.getUntrackedParameter<bool>(
"debug",
false)) {}
34 if( elem1->
type() > elem2->
type() ) {
48 clusterref->positionREP().Eta(),
49 clusterref->positionREP().Phi() );
50 if( dist > 0.3 ) dist = -1.0;
54 std::cout <<
" Here a link has been established" 55 <<
" between a GSF track an HGCal with dist " const REPPoint & positionREP() const
trajectory position in (rho, eta, phi) base
Abstract base class for a PFBlock element (track, cluster...)
reconstructed track used as an input to particle flow
static double computeDist(double eta1, double phi1, double eta2, double phi2, bool etaPhi=true)
computes a chisquare
const PFClusterRef & clusterRef() const
double testLink(const reco::PFBlockElement *, const reco::PFBlockElement *) const override
const GsfPFRecTrack & GsftrackPF() const
const reco::PFTrajectoryPoint & extrapolatedPoint(unsigned layerid) const
bool isValid() const
is this point valid ?
GSFAndHGCalLinker(const edm::ParameterSet &conf)
#define DEFINE_EDM_PLUGIN(factory, type, name)
A PFTrack holds several trajectory points, which basically contain the position and momentum of a tra...
LayerType
Define the different layers where the track can be propagated.