1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef RecoTauTag_ConeIsolation
#define RecoTauTag_ConeIsolation
/** \class ConeIsolation
* EDProducer of the tagged TauJet with the ConeIsolationAlgorithm.
* It returns two collections: base collection is the JetTag, and extended Collection which is the IsolatedTauTagInfo.
* The method implemented in the IsolatedTauTagInfo class are used to compute the discriminator variable.
* A trick is used to link the IsolatedTauTagInfo to a smart reference to the JetTag.
* \author Simone Gennai
*/
// system include files
#include <memory>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/global/EDProducer.h"
#include "ConeIsolationAlgorithm.h"
#include "DataFormats/VertexReco/interface/VertexFwd.h"
class ConeIsolation : public edm::global::EDProducer<> {
public:
explicit ConeIsolation(const edm::ParameterSet&);
static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
private:
edm::InputTag jetTrackTag;
edm::EDGetTokenT<reco::JetTracksAssociationCollection> jetTrackToken;
edm::InputTag vertexTag;
edm::EDGetTokenT<reco::VertexCollection> vertexToken;
edm::InputTag beamSpotTag;
edm::EDGetTokenT<reco::BeamSpot> beamSpotToken;
bool usingBeamSpot;
ConeIsolationAlgorithm m_algo;
};
#endif
|