56 jetTrackToken = consumes<reco::JetTracksAssociationCollection>(jetTrackTag);
58 vertexToken = consumes<reco::VertexCollection>(
vertexTag);
60 beamSpotToken = consumes<reco::BeamSpot>(
beamSpotTag);
61 usingBeamSpot = iConfig.
getParameter<
bool>(
"useBeamSpot");
65 produces<reco::JetTagCollection>();
66 produces<reco::IsolatedTauTagInfoCollection>();
88 desc.
add<
bool>(
"useBeamSpot",
false);
90 descriptions.
add(
"coneIsolationTauJetTags", desc);
100 iEvent.
getByToken(jetTrackToken,jetTracksAssociation);
102 std::unique_ptr<reco::JetTagCollection> tagCollection;
104 if (not jetTracksAssociation->
empty()) {
124 if(vertCollection.begin() != vertCollection.end())
125 myPVtmp = *(vertCollection.begin());
134 iEvent.
getByToken(beamSpotToken,recoBeamSpotHandle);
135 vertexBeamSpot = *recoBeamSpotHandle;
138 myPV = combinedVertex;
143 for (
unsigned int i = 0;
i < jetTracksAssociation->
size(); ++
i)
146 tagCollection->setValue(
i, myPair.first);
147 extCollection->push_back(myPair.second);
T getParameter(std::string const &) const
static void fillDescription(edm::ParameterSetDescription &desc)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
math::Error< dimension >::type Error
covariance error matrix (3x3)
std::vector< Vertex > VertexCollection
collection of Vertex objects
~ConeIsolation() override
std::vector< IsolatedTauTagInfo > IsolatedTauTagInfoCollection
double chi2() const
chi-squares
double z() const
z coordinate
math::XYZPoint Point
point in the space
ParameterDescriptionBase * add(U const &iLabel, T const &value)
T const * product() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Error error() const
return SMatrix
RefToBaseProd< T > makeRefToBaseProdFrom(RefToBase< T > const &iRef, Event const &iEvent)
double y0() const
y coordinate
void produce(edm::Event &, const edm::EventSetup &) override
ConeIsolation(const edm::ParameterSet &)
const_iterator begin() const
size_t tracksSize() const
number of tracks
double x0() const
x coordinate