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()) {
94 tagCollection = std::make_unique<reco::JetTagCollection>(
prod);
96 tagCollection = std::make_unique<reco::JetTagCollection>();
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);
static void fillDescription(edm::ParameterSetDescription &desc)
T getParameter(std::string const &) const
double z() const
z coordinate
math::Error< dimension >::type Error
covariance error matrix (3x3)
std::vector< Vertex > VertexCollection
collection of Vertex objects
const_iterator begin() const
size_t tracksSize() const
number of tracks
Error error() const
return SMatrix
double x0() const
x coordinate
~ConeIsolation() override
std::vector< IsolatedTauTagInfo > IsolatedTauTagInfoCollection
math::XYZPoint Point
point in the space
double y0() const
y coordinate
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
double chi2() const
chi-squares
RefToBaseProd< T > makeRefToBaseProdFrom(RefToBase< T > const &iRef, Event const &iEvent)
void produce(edm::Event &, const edm::EventSetup &) override
ConeIsolation(const edm::ParameterSet &)