CMS 3D CMS Logo

NjettinessAdder.h
Go to the documentation of this file.
1 #ifndef NjettinessAdder_h
2 #define NjettinessAdder_h
3 
4 #include <memory>
12 #include "fastjet/contrib/Njettiness.hh"
13 
15 public:
17  NormalizedMeasure = 0, // (beta,R0)
20  NormalizedCutoffMeasure, // (beta,R0,Rcutoff)
21  UnnormalizedCutoffMeasure, // (beta,Rcutoff)
22  GeometricCutoffMeasure, // (beta,Rcutoff)
24  };
26  KT_Axes = 0,
28  AntiKT_Axes, // (axAxesR0)
34  OnePass_AntiKT_Axes, // (axAxesR0)
40  };
41 
42  explicit NjettinessAdder(const edm::ParameterSet& iConfig);
43 
44  ~NjettinessAdder() override {}
45 
46  void produce(edm::Event& iEvent, const edm::EventSetup& iSetup) override;
47  float getTau(unsigned num, const edm::Ptr<reco::Jet>& object) const;
48 
49 private:
52  std::vector<unsigned> Njets_;
53 
54  // Measure definition :
56  double beta_;
57  double R0_;
58  double Rcutoff_;
59 
60  // Axes definition :
61  unsigned axesDefinition_;
62  int nPass_;
63  double akAxesR0_;
64 
65  std::unique_ptr<fastjet::contrib::Njettiness> routine_;
66 };
67 
68 #endif
unsigned measureDefinition_
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
unsigned axesDefinition_
std::unique_ptr< fastjet::contrib::Njettiness > routine_
int iEvent
Definition: GenABIO.cc:224
std::vector< unsigned > Njets_
float getTau(unsigned num, const edm::Ptr< reco::Jet > &object) const
edm::InputTag src_
NjettinessAdder(const edm::ParameterSet &iConfig)
edm::EDGetTokenT< edm::View< reco::Jet > > src_token_
~NjettinessAdder() override