21 produces<reco::CaloJetCollection>();
50 std::vector<CaloJetRef> tau_jets;
52 const size_t n_jets = tau_jets.size();
56 vector<TinyTrack> good_tracks;
57 for (TrackCollection::const_iterator itrk = tracksHandle->begin(); itrk != tracksHandle->end(); ++itrk) {
65 trk.
phi = itrk->phi();
66 trk.
eta = itrk->eta();
67 double dz = itrk->dz(beam_spot);
69 good_tracks.push_back(trk);
76 if (!good_tracks.empty())
77 for (
size_t i = 0;
i < n_jets; ++
i) {
82 for (vector<TinyTrack>::const_iterator itrk = good_tracks.begin(); itrk != good_tracks.end(); ++itrk) {
85 float deta = new_jet_dir.eta() - itrk->eta;
93 new_tau_jets->push_back(new_jet);
L2TauPixelTrackMatch(const edm::ParameterSet &)
constexpr double deltaPhi(double phi1, double phi2)
void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
T getParameter(std::string const &) const
Jets made from CaloTowers.
edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > m_jetSrc
void setVertex(const Point &vertex) override
set vertex
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
edm::EDGetTokenT< reco::TrackCollection > m_trackSrc
~L2TauPixelTrackMatch() override
Abs< T >::type abs(const T &t)
XYZPointD XYZPoint
point in space with cartesian internal representation
edm::EDGetTokenT< reco::BeamSpot > m_beamSpotTag
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects