CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HiFJRhoProducer.h
Go to the documentation of this file.
1 #ifndef HiJetBackground_HiFJRhoProducer_h
2 #define HiJetBackground_HiFJRhoProducer_h
3 
4 // system include files
5 #include <memory>
6 #include <sstream>
7 #include <string>
8 #include <vector>
9 
10 // user include files
13 
16 
19 
21 
22 //
23 // class declaration
24 //
25 
27 public:
28  explicit HiFJRhoProducer(const edm::ParameterSet&);
29  ~HiFJRhoProducer() override;
30 
31  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
32 
33 private:
34  void beginStream(edm::StreamID) override;
35  void produce(edm::Event&, const edm::EventSetup&) override;
36  void endStream() override;
37 
38  double calcMedian(std::vector<double>& v);
39  double calcMd(const reco::Jet* jet);
40  bool isPackedCandidate(const reco::Candidate* candidate);
41 
42  // ----------member data ---------------------------
43  //input
45 
46  //members
47  edm::InputTag src_; // input kt jet source
48  unsigned int nExcl_; //Number of leading jets to exclude
49  double etaMaxExcl_; //max eta for jets to exclude
50  double ptMinExcl_; //min pt for excluded jets
51  unsigned int nExcl2_; //Number of leading jets to exclude in 2nd eta region
52  double etaMaxExcl2_; //max eta for jets to exclude in 2nd eta region
53  double ptMinExcl2_; //min pt for excluded jets in 2nd eta region
54  std::vector<double> etaRanges; //eta boundaries for rho calculation regions
56 };
57 
58 #endif
HiFJRhoProducer(const edm::ParameterSet &)
double calcMedian(std::vector< double > &v)
edm::InputTag src_
Base class for all types of Jets.
Definition: Jet.h:20
std::vector< double > etaRanges
void beginStream(edm::StreamID) override
bool isPackedCandidate(const reco::Candidate *candidate)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
unsigned int nExcl_
~HiFJRhoProducer() override
void produce(edm::Event &, const edm::EventSetup &) override
double calcMd(const reco::Jet *jet)
edm::EDGetTokenT< edm::View< reco::Jet > > jetsToken_
void endStream() override
unsigned int nExcl2_