54 jetTrackToken = consumes<reco::JetTracksAssociationCollection>(jetTrackTag);
56 vertexToken = consumes<reco::VertexCollection>(
vertexTag);
58 beamSpotToken = consumes<reco::BeamSpot>(
beamSpotTag);
59 usingBeamSpot = iConfig.
getParameter<
bool>(
"useBeamSpot");
63 produces<reco::JetTagCollection>();
64 produces<reco::IsolatedTauTagInfoCollection>();
78 desc.
add<
bool>(
"useBeamSpot",
false);
80 descriptions.
add(
"coneIsolationTauJetTags", desc);
88 iEvent.getByToken(jetTrackToken, jetTracksAssociation);
90 std::unique_ptr<reco::JetTagCollection> tagCollection;
92 if (not jetTracksAssociation->
empty()) {
112 if (vertCollection.begin() != vertCollection.end())
113 myPVtmp = *(vertCollection.begin());
121 iEvent.getByToken(beamSpotToken, recoBeamSpotHandle);
122 vertexBeamSpot = *recoBeamSpotHandle;
125 myPV = combinedVertex;
130 for (
unsigned int i = 0;
i < jetTracksAssociation->
size(); ++
i) {
131 pair<float, IsolatedTauTagInfo> myPair =
133 tagCollection->setValue(
i, myPair.first);
134 extCollection->push_back(myPair.second);