57 usingBeamSpot = iConfig.
getParameter<
bool>(
"useBeamSpot");
61 produces<reco::JetTagCollection>();
62 produces<reco::IsolatedTauTagInfoCollection>();
86 iEvent.
getByLabel(jetTrackSrc,jetTracksAssociation);
88 std::auto_ptr<reco::JetTagCollection> tagCollection;
89 std::auto_ptr<reco::IsolatedTauTagInfoCollection> extCollection(
new reco::IsolatedTauTagInfoCollection() );
90 if (not jetTracksAssociation->empty()) {
110 if(vertCollection.begin() != vertCollection.end())
111 myPVtmp = *(vertCollection.begin());
120 iEvent.
getByLabel(beamSpotProducer,recoBeamSpotHandle);
121 vertexBeamSpot = *recoBeamSpotHandle;
122 Vertex::Point bspoint(vertexBeamSpot.x0(),vertexBeamSpot.y0(),myPVtmp.
z());
124 myPV = combinedVertex;
129 for (
unsigned int i = 0;
i < jetTracksAssociation->size(); ++
i)
132 tagCollection->setValue(
i, myPair.first);
133 extCollection->push_back(myPair.second);
136 iEvent.
put(extCollection);
137 iEvent.
put(tagCollection);
T getParameter(std::string const &) 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.
double chi2() const
chi-squares
double z() const
y coordinate
math::XYZPoint Point
point in the space
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Error error() const
return SMatrix
ConeIsolation(const edm::ParameterSet &)
size_t tracksSize() const
number of tracks