CMS 3D CMS Logo

ParametrizedSubtractor.h
Go to the documentation of this file.
1 #ifndef __ParametrizedSubtractor_h_
2 #define __ParametrizedSubtractor_h_
3 
4 #include <vector>
5 
8 #include "TH1D.h"
9 
10 #include "TF1.h"
11 
12 class CentralityBins;
13 
15 public:
17  void setupGeometryMap(edm::Event& iEvent, const edm::EventSetup& iSetup) override;
18  void calculatePedestal(std::vector<fastjet::PseudoJet> const& coll) override;
19  void subtractPedestal(std::vector<fastjet::PseudoJet>& coll) override;
20  void calculateOrphanInput(std::vector<fastjet::PseudoJet>& orphanInput) override;
21  void offsetCorrectJets() override;
22  double getMeanAtTower(const reco::CandidatePtr& in) const override;
23  double getSigmaAtTower(const reco::CandidatePtr& in) const override;
24  double getPileUpAtTower(const reco::CandidatePtr& in) const override;
25  double getEt(const reco::CandidatePtr& in) const;
26  double getEta(const reco::CandidatePtr& in) const;
27 
28  void rescaleRMS(double s);
29  double getPU(int ieta, bool addMean, bool addSigma) const;
30  ~ParametrizedSubtractor() override { ; }
31 
35  int bin_;
36  double centrality_;
39  std::vector<TH1D*> hEta;
40  std::vector<TH1D*> hEtaMean;
41  std::vector<TH1D*> hEtaRMS;
42 
43  TF1* fPU;
46  TH1D* hC;
47 };
48 
49 #endif
ParametrizedSubtractor::hEta
std::vector< TH1D * > hEta
Definition: ParametrizedSubtractor.h:39
PileUpSubtractor::ieta
int ieta(const reco::CandidatePtr &in) const
Definition: PileUpSubtractor.cc:327
ParametrizedSubtractor::getSigmaAtTower
double getSigmaAtTower(const reco::CandidatePtr &in) const override
Definition: ParametrizedSubtractor.cc:238
PileUpSubtractor.h
edm::EDGetTokenT< reco::Centrality >
ParametrizedSubtractor::getPU
double getPU(int ieta, bool addMean, bool addSigma) const
Definition: ParametrizedSubtractor.cc:248
ParametrizedSubtractor::getEt
double getEt(const reco::CandidatePtr &in) const
Definition: ParametrizedSubtractor.cc:210
ParametrizedSubtractor::interpolate_
bool interpolate_
Definition: ParametrizedSubtractor.h:33
ParametrizedSubtractor::fMean
TF1 * fMean
Definition: ParametrizedSubtractor.h:44
ParametrizedSubtractor::subtractPedestal
void subtractPedestal(std::vector< fastjet::PseudoJet > &coll) override
Definition: ParametrizedSubtractor.cc:104
tools.TF1
TF1
Definition: tools.py:23
ParametrizedSubtractor::setupGeometryMap
void setupGeometryMap(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition: ParametrizedSubtractor.cc:47
ParametrizedSubtractor::calculatePedestal
void calculatePedestal(std::vector< fastjet::PseudoJet > const &coll) override
Definition: ParametrizedSubtractor.cc:102
ParametrizedSubtractor
Definition: ParametrizedSubtractor.h:14
alignCSCRings.s
s
Definition: alignCSCRings.py:92
Centrality.h
CentralityBins
Definition: CentralityBins.h:37
ParametrizedSubtractor::ParametrizedSubtractor
ParametrizedSubtractor(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
Definition: ParametrizedSubtractor.cc:23
ParametrizedSubtractor::rescaleRMS
void rescaleRMS(double s)
Definition: ParametrizedSubtractor.cc:17
ParametrizedSubtractor::dropZeroTowers_
bool dropZeroTowers_
Definition: ParametrizedSubtractor.h:34
ParametrizedSubtractor::bin_
int bin_
Definition: ParametrizedSubtractor.h:35
ParametrizedSubtractor::~ParametrizedSubtractor
~ParametrizedSubtractor() override
Definition: ParametrizedSubtractor.h:30
edm::ParameterSet
Definition: ParameterSet.h:36
ParametrizedSubtractor::fRMS
TF1 * fRMS
Definition: ParametrizedSubtractor.h:45
ParametrizedSubtractor::calculateOrphanInput
void calculateOrphanInput(std::vector< fastjet::PseudoJet > &orphanInput) override
Definition: ParametrizedSubtractor.cc:147
PileUpSubtractor
Definition: PileUpSubtractor.h:23
recoMuon::in
Definition: RecoMuonEnumerators.h:6
iEvent
int iEvent
Definition: GenABIO.cc:224
ParametrizedSubtractor::hEtaRMS
std::vector< TH1D * > hEtaRMS
Definition: ParametrizedSubtractor.h:41
edm::EventSetup
Definition: EventSetup.h:57
ParametrizedSubtractor::getMeanAtTower
double getMeanAtTower(const reco::CandidatePtr &in) const override
Definition: ParametrizedSubtractor.cc:233
edm::Ptr< Candidate >
ParametrizedSubtractor::fPU
TF1 * fPU
Definition: ParametrizedSubtractor.h:43
ParametrizedSubtractor::hC
TH1D * hC
Definition: ParametrizedSubtractor.h:46
ParametrizedSubtractor::centTag_
edm::EDGetTokenT< reco::Centrality > centTag_
Definition: ParametrizedSubtractor.h:38
ParametrizedSubtractor::offsetCorrectJets
void offsetCorrectJets() override
Definition: ParametrizedSubtractor.cc:149
edm::Event
Definition: Event.h:73
ParametrizedSubtractor::hEtaMean
std::vector< TH1D * > hEtaMean
Definition: ParametrizedSubtractor.h:40
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
ParametrizedSubtractor::sumRecHits_
bool sumRecHits_
Definition: ParametrizedSubtractor.h:32
ParametrizedSubtractor::getEta
double getEta(const reco::CandidatePtr &in) const
Definition: ParametrizedSubtractor.cc:226
ParametrizedSubtractor::getPileUpAtTower
double getPileUpAtTower(const reco::CandidatePtr &in) const override
Definition: ParametrizedSubtractor.cc:243
ParametrizedSubtractor::centrality_
double centrality_
Definition: ParametrizedSubtractor.h:36
ParametrizedSubtractor::cbins_
const CentralityBins * cbins_
Definition: ParametrizedSubtractor.h:37