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::auto_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;
136 Vertex::Point bspoint(vertexBeamSpot.x0(),vertexBeamSpot.y0(),myPVtmp.
z());
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);
150 iEvent.
put(extCollection);
151 iEvent.
put(tagCollection);
T getParameter(std::string const &) const
static void fillDescription(edm::ParameterSetDescription &desc)
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
virtual void produce(edm::Event &, const edm::EventSetup &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< IsolatedTauTagInfo > IsolatedTauTagInfoCollection
double chi2() const
chi-squares
double z() const
y coordinate
math::XYZPoint Point
point in the space
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Error error() const
return SMatrix
ConeIsolation(const edm::ParameterSet &)
size_t tracksSize() const
number of tracks