54 jetTrackToken = consumes<reco::JetTracksAssociationCollection>(jetTrackTag);
56 vertexToken = consumes<reco::VertexCollection>(
vertexTag);
58 beamSpotToken = consumes<reco::BeamSpot>(
beamSpotTag);
59 usingBeamSpot = iConfig.getParameter<
bool>(
"useBeamSpot");
61 produces<reco::JetTagCollection>();
62 produces<reco::IsolatedTauTagInfoCollection>();
74 desc.add<
bool>(
"useBeamSpot",
false);
76 descriptions.
add(
"coneIsolationTauJetTags",
desc);
86 std::unique_ptr<reco::JetTagCollection> tagCollection;
88 if (not jetTracksAssociation->
empty()) {
90 tagCollection = std::make_unique<reco::JetTagCollection>(
prod);
92 tagCollection = std::make_unique<reco::JetTagCollection>();
108 if (vertCollection.begin() != vertCollection.end())
109 myPVtmp = *(vertCollection.begin());
118 vertexBeamSpot = *recoBeamSpotHandle;
121 myPV = combinedVertex;
126 for (
unsigned int i = 0;
i < jetTracksAssociation->
size(); ++
i) {
127 pair<float, IsolatedTauTagInfo> myPair =
129 tagCollection->setValue(
i, myPair.first);
130 extCollection->push_back(myPair.second);
static void fillDescription(edm::ParameterSetDescription &desc)
T getParameter(std::string const &) const
double z() const
z coordinate
edm::EDGetTokenT< reco::VertexCollection > vertexToken
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken
math::Error< dimension >::type Error
covariance error matrix (3x3)
std::vector< Vertex > VertexCollection
collection of Vertex objects
const_iterator begin() const
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
size_t tracksSize() const
number of tracks
std::pair< float, reco::IsolatedTauTagInfo > tag(const reco::JetTracksAssociationRef &jetTracks, const reco::Vertex &pv) const
Error error() const
return SMatrix
double x0() const
x coordinate
ConeIsolationAlgorithm m_algo
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)
ConeIsolation(const edm::ParameterSet &)
edm::EDGetTokenT< reco::JetTracksAssociationCollection > jetTrackToken