55 produces<reco::JetTagCollection>().setBranchAlias(modulname);
57 produces<reco::TauImpactParameterInfoCollection>().setBranchAlias(infoBranchName);
72 std::unique_ptr<JetTagCollection> tagCollection;
73 auto extCollection = std::make_unique<TauImpactParameterInfoCollection>();
74 if (not isolatedTaus->empty()) {
76 tagCollection = std::make_unique<JetTagCollection>(prod);
78 tagCollection = std::make_unique<JetTagCollection>();
91 reco::VertexCollection::const_iterator iVertex;
93 for (iVertex = vertCollection.begin(); iVertex != vertCollection.end(); iVertex++) {
104 Vertex dummyPV(p, e, 1, 1, 1);
108 for (
unsigned int i = 0;
i < isolatedTaus->size(); ++
i) {
110 std::pair<float, TauImpactParameterInfo> ipInfo =
algo->
tag(tauRef, PV);
111 tagCollection->setValue(
i, ipInfo.first);
112 extCollection->push_back(ipInfo.second);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
#define DEFINE_FWK_MODULE(type)
math::Error< dimension >::type Error
covariance error matrix (3x3)
std::vector< Vertex > VertexCollection
collection of Vertex objects
void setTransientTrackBuilder(const TransientTrackBuilder *)
math::XYZPoint Point
point in the space
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
ImpactParameter(const edm::ParameterSet &)
T const * product() const
edm::InputTag jetTrackSrc
ImpactParameterAlgorithm * algo
T getParameter(std::string const &) const
RefToBaseProd< T > makeRefToBaseProdFrom(RefToBase< T > const &iRef, Event const &iEvent)
~ImpactParameter() override
std::pair< float, reco::TauImpactParameterInfo > tag(const reco::IsolatedTauTagInfoRef &, const reco::Vertex &)
void produce(edm::Event &, const edm::EventSetup &) override