25 #include <boost/regex.hpp>
52 jetTrackSrc = iConfig.
getParameter<
string>(
"JetTrackSrc");
57 produces<reco::JetTagCollection>();
58 produces<reco::TauMassTagInfoCollection>();
80 std::auto_ptr<JetTagCollection> tagCollection;
81 std::auto_ptr<TauMassTagInfoCollection> extCollection(
new TauMassTagInfoCollection() );
85 iEvent.
getByLabel(m_ecalBClSrc,
"islandBarrelBasicClusters", barrelBasicClusterHandle);
88 iEvent.
getByLabel(m_ecalBClSrc,
"islandEndcapBasicClusters", endcapBasicClusterHandle);
90 if (isolatedTaus->empty()) {
96 for (
unsigned int i = 0;
i < isolatedTaus->size(); ++
i)
98 IsolatedTauTagInfoRef tauRef(isolatedTaus,
i);
99 const Jet &
jet = *(tauRef->jet());
101 pair<double,TauMassTagInfo> jetTauPair;
102 if (jetDir.eta() < 1.2)
103 jetTauPair = m_algo->tag(iEvent, iSetup, tauRef, barrelBasicClusterHandle);
105 jetTauPair = m_algo->tag(iEvent, iSetup, tauRef, endcapBasicClusterHandle);
106 tagCollection->setValue(
i, jetTauPair.first );
107 extCollection->push_back( jetTauPair.second );
111 iEvent.
put( tagCollection );
112 iEvent.
put( extCollection );
virtual void produce(edm::Event &, const edm::EventSetup &)
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
Base class for all types of Jets.
JetFloatAssociation::Container JetTagCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual double px() const
x coordinate of momentum vector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
virtual double pz() const
z coordinate of momentum vector
virtual double py() const
y coordinate of momentum vector
InvariantMass(const edm::ParameterSet &)