CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
ParametrizedSubtractor Class Reference

#include <ParametrizedSubtractor.h>

Inheritance diagram for ParametrizedSubtractor:
PileUpSubtractor

Public Member Functions

void calculateOrphanInput (std::vector< fastjet::PseudoJet > &orphanInput) override
 
void calculatePedestal (std::vector< fastjet::PseudoJet > const &coll) override
 
double getEt (const reco::CandidatePtr &in) const
 
double getEta (const reco::CandidatePtr &in) const
 
double getMeanAtTower (const reco::CandidatePtr &in) const override
 
double getPileUpAtTower (const reco::CandidatePtr &in) const override
 
double getPU (int ieta, bool addMean, bool addSigma) const
 
double getSigmaAtTower (const reco::CandidatePtr &in) const override
 
void offsetCorrectJets () override
 
 ParametrizedSubtractor (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
 
void rescaleRMS (double s)
 
void setupGeometryMap (edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
void subtractPedestal (std::vector< fastjet::PseudoJet > &coll) override
 
 ~ParametrizedSubtractor () override
 
- Public Member Functions inherited from PileUpSubtractor
virtual double getCone (double cone, double eta, double phi, double &et, double &pu)
 
int getN (const reco::CandidatePtr &in) const
 
int getNwithJets (const reco::CandidatePtr &in) const
 
virtual double getPileUpEnergy (int ijet) const
 
int ieta (const reco::CandidatePtr &in) const
 
int iphi (const reco::CandidatePtr &in) const
 
 PileUpSubtractor (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
 
virtual void reset (std::vector< edm::Ptr< reco::Candidate > > &input, std::vector< fastjet::PseudoJet > &towers, std::vector< fastjet::PseudoJet > &output)
 
virtual void setDefinition (JetDefPtr const &jetDef)
 
virtual ~PileUpSubtractor ()
 

Public Attributes

int bin_
 
const CentralityBinscbins_
 
double centrality_
 
edm::EDGetTokenT< reco::CentralitycentTag_
 
bool dropZeroTowers_
 
TF1 * fMean
 
TF1 * fPU
 
TF1 * fRMS
 
TH1D * hC
 
std::vector< TH1D * > hEta
 
std::vector< TH1D * > hEtaMean
 
std::vector< TH1D * > hEtaRMS
 
bool interpolate_
 
bool sumRecHits_
 

Additional Inherited Members

- Public Types inherited from PileUpSubtractor
typedef std::shared_ptr< fastjet::GhostedAreaSpec > ActiveAreaSpecPtr
 
typedef std::shared_ptr< fastjet::ClusterSequence > ClusterSequencePtr
 
typedef std::shared_ptr< fastjet::JetDefinition > JetDefPtr
 
typedef std::shared_ptr< fastjet::RangeDefinition > RangeDefPtr
 
- Protected Attributes inherited from PileUpSubtractor
int activeAreaRepeats
 
std::vector< HcalDetIdallgeomid_
 
bool doAreaFastjet_
 
bool doRhoFastjet_
 
std::map< int, double > emean_
 
std::map< int, double > esigma_
 
ActiveAreaSpecPtr fjActiveArea_
 
ClusterSequencePtr fjClusterSeq_
 
std::vector< fastjet::PseudoJet > * fjInputs_
 
JetDefPtr fjJetDefinition_
 
std::vector< fastjet::PseudoJet > * fjJets_
 
std::vector< fastjet::PseudoJet > fjOriginalInputs_
 
CaloGeometry const * geo_
 
std::map< int, int > geomtowers_
 
double ghostArea
 
double ghostEtaMax
 
int ietamax_
 
int ietamin_
 
std::vector< edm::Ptr< reco::Candidate > > * inputs_
 
std::vector< double > jetOffset_
 
double jetPtMin_
 
double nSigmaPU_
 
std::map< int, int > ntowersWithJets_
 
double puPtMin_
 
double radiusPU_
 
bool reRunAlgo_
 

Detailed Description

Definition at line 14 of file ParametrizedSubtractor.h.

Constructor & Destructor Documentation

◆ ParametrizedSubtractor()

ParametrizedSubtractor::ParametrizedSubtractor ( const edm::ParameterSet iConfig,
edm::ConsumesCollector &&  iC 
)

Definition at line 23 of file ParametrizedSubtractor.cc.

24  : PileUpSubtractor(iConfig, std::move(iC)),
25  dropZeroTowers_(iConfig.getUntrackedParameter<bool>("dropZeroTowers", true)),
26  cbins_(nullptr) {
28  iConfig.getUntrackedParameter<edm::InputTag>("centTag", edm::InputTag("hiCentrality", "", "RECO")));
29 
30  interpolate_ = iConfig.getParameter<bool>("interpolate");
31  sumRecHits_ = iConfig.getParameter<bool>("sumRecHits");
32 
33  std::string ifname = "RecoHI/HiJetAlgos/data/PU_DATA.root";
34  TFile* inf = new TFile(edm::FileInPath(ifname).fullPath().data());
35  fPU = (TF1*)inf->Get("fPU");
36  fMean = (TF1*)inf->Get("fMean");
37  fRMS = (TF1*)inf->Get("fRMS");
38  hC = (TH1D*)inf->Get("hC");
39 
40  for (int i = 0; i < 40; ++i) {
41  hEta.push_back((TH1D*)inf->Get(Form("hEta_%d", i)));
42  hEtaMean.push_back((TH1D*)inf->Get(Form("hEtaMean_%d", i)));
43  hEtaRMS.push_back((TH1D*)inf->Get(Form("hEtaRMS_%d", i)));
44  }
45 }

References centTag_, data, fMean, fPU, fRMS, contentValuesFiles::fullPath, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hC, hEta, hEtaMean, hEtaRMS, mps_fire::i, dqmiodatasetharvest::inf, HLT_FULL_cff::InputTag, interpolate_, AlCaHLTBitMon_QueryRunRegistry::string, and sumRecHits_.

◆ ~ParametrizedSubtractor()

ParametrizedSubtractor::~ParametrizedSubtractor ( )
inlineoverride

Definition at line 30 of file ParametrizedSubtractor.h.

30 { ; }

Member Function Documentation

◆ calculateOrphanInput()

void ParametrizedSubtractor::calculateOrphanInput ( std::vector< fastjet::PseudoJet > &  orphanInput)
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 145 of file ParametrizedSubtractor.cc.

145 { orphanInput = *fjInputs_; }

References PileUpSubtractor::fjInputs_.

◆ calculatePedestal()

void ParametrizedSubtractor::calculatePedestal ( std::vector< fastjet::PseudoJet > const &  coll)
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 100 of file ParametrizedSubtractor.cc.

100 { return; }

◆ getEt()

double ParametrizedSubtractor::getEt ( const reco::CandidatePtr in) const

Definition at line 208 of file ParametrizedSubtractor.cc.

208  {
209  const CaloTower* ctc = dynamic_cast<const CaloTower*>(in.get());
210  const GlobalPoint& pos = geo_->getPosition(ctc->id());
211  double energy = ctc->emEnergy() + ctc->hadEnergy();
212 
213  if (false) {
214  energy = 0;
215  const std::vector<DetId>& hitids = ctc->constituents();
216  for (unsigned int i = 0; i < hitids.size(); ++i) {
217  }
218  }
219 
220  double et = energy * sin(pos.theta());
221  return et;
222 }

References CaloTower::constituents(), CaloTower::emEnergy(), HCALHighEnergyHPDFilter_cfi::energy, EgHLTOffHistBins_cfi::et, PileUpSubtractor::geo_, CaloGeometry::getPosition(), CaloTower::hadEnergy(), mps_fire::i, CaloTower::id(), recoMuon::in, and funct::sin().

Referenced by offsetCorrectJets(), and subtractPedestal().

◆ getEta()

double ParametrizedSubtractor::getEta ( const reco::CandidatePtr in) const

Definition at line 224 of file ParametrizedSubtractor.cc.

224  {
225  const CaloTower* ctc = dynamic_cast<const CaloTower*>(in.get());
226  const GlobalPoint& pos = geo_->getPosition(ctc->id());
227  double eta = pos.eta();
228  return eta;
229 }

References PVValHelper::eta, PileUpSubtractor::geo_, CaloGeometry::getPosition(), CaloTower::id(), and recoMuon::in.

◆ getMeanAtTower()

double ParametrizedSubtractor::getMeanAtTower ( const reco::CandidatePtr in) const
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 231 of file ParametrizedSubtractor.cc.

231  {
232  int it = ieta(in);
233  return getPU(it, true, false);
234 }

References getPU(), PileUpSubtractor::ieta(), and recoMuon::in.

◆ getPileUpAtTower()

double ParametrizedSubtractor::getPileUpAtTower ( const reco::CandidatePtr in) const
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 241 of file ParametrizedSubtractor.cc.

241  {
242  int it = ieta(in);
243  return getPU(it, true, true);
244 }

References getPU(), PileUpSubtractor::ieta(), and recoMuon::in.

◆ getPU()

double ParametrizedSubtractor::getPU ( int  ieta,
bool  addMean,
bool  addSigma 
) const

Definition at line 246 of file ParametrizedSubtractor.cc.

246  {
247  //double e = hEta[bin_]->GetBinContent(hEta[bin_]->FindBin(ieta));
248  //double c = fPU->Eval(centrality_);
249 
250  double em = hEtaMean[bin_]->GetBinContent(hEtaMean[bin_]->FindBin(ieta));
251  double cm = fMean->Eval(centrality_);
252 
253  double er = hEtaRMS[bin_]->GetBinContent(hEtaRMS[bin_]->FindBin(ieta));
254  double cr = fRMS->Eval(centrality_);
255 
256  if (interpolate_) {
257  double n = 0;
258  int hbin = 40 - bin_;
259  double centerweight = (centrality_ - hC->GetBinCenter(hbin));
260  double lowerweight = (centrality_ - hC->GetBinLowEdge(hbin));
261  double upperweight = (centrality_ - hC->GetBinLowEdge(hbin + 1));
262 
263  em *= lowerweight * upperweight;
264  er *= lowerweight * upperweight;
265  n += lowerweight * upperweight;
266 
267  if (bin_ > 0) {
268  em += upperweight * centerweight * hEtaMean[bin_]->GetBinContent(hEtaMean[bin_ - 1]->FindBin(ieta));
269  er += upperweight * centerweight * hEtaRMS[bin_]->GetBinContent(hEtaRMS[bin_ - 1]->FindBin(ieta));
270  n += upperweight * centerweight;
271  }
272 
273  if (bin_ < 39) {
274  em += lowerweight * centerweight * hEtaMean[bin_]->GetBinContent(hEtaMean[bin_ + 1]->FindBin(ieta));
275  er += lowerweight * centerweight * hEtaRMS[bin_]->GetBinContent(hEtaRMS[bin_ + 1]->FindBin(ieta));
276  n += lowerweight * centerweight;
277  }
278  em /= n;
279  er /= n;
280  }
281 
282  // return e*c;
283  return addMean * em * cm + addSigma * nSigmaPU_ * er * cr;
284 }

References bin_, centrality_, fMean, fRMS, hC, hEtaMean, hEtaRMS, PileUpSubtractor::ieta(), interpolate_, dqmiodumpmetadata::n, and PileUpSubtractor::nSigmaPU_.

Referenced by getMeanAtTower(), getPileUpAtTower(), getSigmaAtTower(), offsetCorrectJets(), and subtractPedestal().

◆ getSigmaAtTower()

double ParametrizedSubtractor::getSigmaAtTower ( const reco::CandidatePtr in) const
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 236 of file ParametrizedSubtractor.cc.

236  {
237  int it = ieta(in);
238  return getPU(it, false, true);
239 }

References getPU(), PileUpSubtractor::ieta(), and recoMuon::in.

◆ offsetCorrectJets()

void ParametrizedSubtractor::offsetCorrectJets ( )
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 147 of file ParametrizedSubtractor.cc.

147  {
148  LogDebug("PileUpSubtractor") << "The subtractor correcting jets...\n";
149  jetOffset_.clear();
150 
151  using namespace reco;
152 
153  (*fjInputs_) = fjOriginalInputs_;
156 
157  if (false) {
158  const fastjet::JetDefinition& def = fjClusterSeq_->jet_def();
159  if (!doAreaFastjet_ && !doRhoFastjet_) {
160  fastjet::ClusterSequence newseq(*fjInputs_, def);
161  (*fjClusterSeq_) = newseq;
162  } else {
163  fastjet::ClusterSequenceArea newseq(*fjInputs_, def, *fjActiveArea_);
164  (*fjClusterSeq_) = newseq;
165  }
166 
167  (*fjJets_) = fastjet::sorted_by_pt(fjClusterSeq_->inclusive_jets(jetPtMin_));
168  }
169 
170  jetOffset_.reserve(fjJets_->size());
171 
172  vector<fastjet::PseudoJet>::iterator pseudojetTMP = fjJets_->begin(), jetsEnd = fjJets_->end();
173  for (; pseudojetTMP != jetsEnd; ++pseudojetTMP) {
174  int ijet = pseudojetTMP - fjJets_->begin();
175  jetOffset_[ijet] = 0;
176 
177  std::vector<fastjet::PseudoJet> towers = sorted_by_pt(fjClusterSeq_->constituents(*pseudojetTMP));
178 
179  double newjetet = 0.;
180  for (vector<fastjet::PseudoJet>::const_iterator ito = towers.begin(), towEnd = towers.end(); ito != towEnd; ++ito) {
181  const reco::CandidatePtr& originalTower = (*inputs_)[ito->user_index()];
182  int it = ieta(originalTower);
183  double Original_Et = originalTower->et();
184 
185  if (sumRecHits_) {
186  Original_Et = getEt(originalTower);
187  }
188 
189  double etnew = Original_Et - getPU(it, true, true);
190  if (etnew < 0.)
191  etnew = 0;
192  newjetet = newjetet + etnew;
193  jetOffset_[ijet] += Original_Et - etnew;
194  }
195 
196  if (sumRecHits_) {
197  double mScale = newjetet / pseudojetTMP->Et();
198  int cshist = pseudojetTMP->cluster_hist_index();
199  pseudojetTMP->reset(pseudojetTMP->px() * mScale,
200  pseudojetTMP->py() * mScale,
201  pseudojetTMP->pz() * mScale,
202  pseudojetTMP->e() * mScale);
203  pseudojetTMP->set_cluster_hist_index(cshist);
204  }
205  }
206 }

References spu::def(), PileUpSubtractor::doAreaFastjet_, PileUpSubtractor::doRhoFastjet_, PileUpSubtractor::fjActiveArea_, PileUpSubtractor::fjClusterSeq_, PileUpSubtractor::fjInputs_, PileUpSubtractor::fjJets_, PileUpSubtractor::fjOriginalInputs_, getEt(), getPU(), PileUpSubtractor::ieta(), PileUpSubtractor::jetOffset_, PileUpSubtractor::jetPtMin_, LogDebug, PileUpSubtractor::nSigmaPU_, rescaleRMS(), subtractPedestal(), sumRecHits_, and HLT_FULL_cff::towers.

◆ rescaleRMS()

void ParametrizedSubtractor::rescaleRMS ( double  s)

Definition at line 17 of file ParametrizedSubtractor.cc.

17  {
18  for (std::map<int, double>::iterator iter = esigma_.begin(); iter != esigma_.end(); ++iter) {
19  iter->second = s * (iter->second);
20  }
21 }

References alignCSCRings::s.

Referenced by offsetCorrectJets().

◆ setupGeometryMap()

void ParametrizedSubtractor::setupGeometryMap ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 47 of file ParametrizedSubtractor.cc.

47  {
48  LogDebug("PileUpSubtractor") << "The subtractor setting up geometry...\n";
49 
50  // The function below that is commented out was deleted from
51  // DataFormats/HeavyIonEvent/src/Centrality.cc
52  // in June 2015. See comments associated with that commit.
53  // if(!cbins_) getCentralityBinsFromDB(iSetup);
54 
56  iEvent.getByToken(centTag_, cent);
57 
58  centrality_ = cent->EtHFhitSum();
59  bin_ = 40 - hC->FindBin(centrality_);
60  if (bin_ > 39)
61  bin_ = 39;
62  if (bin_ < 0)
63  bin_ = 0;
64 
65  if (!geo_) {
67  iSetup.get<CaloGeometryRecord>().get(pG);
68  geo_ = pG.product();
69  std::vector<DetId> alldid = geo_->getValidDetIds();
70 
71  int ietaold = -10000;
72  ietamax_ = -10000;
73  ietamin_ = 10000;
74  for (std::vector<DetId>::const_iterator did = alldid.begin(); did != alldid.end(); did++) {
75  if ((*did).det() == DetId::Hcal) {
76  HcalDetId hid = HcalDetId(*did);
77  allgeomid_.push_back(*did);
78 
79  if (hid.ieta() != ietaold) {
80  ietaold = hid.ieta();
81  geomtowers_[hid.ieta()] = 1;
82  if (hid.ieta() > ietamax_)
83  ietamax_ = hid.ieta();
84  if (hid.ieta() < ietamin_)
85  ietamin_ = hid.ieta();
86  } else {
87  geomtowers_[hid.ieta()]++;
88  }
89  }
90  }
91  }
92 
93  for (int i = ietamin_; i < ietamax_ + 1; i++) {
94  emean_[i] = 0.;
95  esigma_[i] = 0.;
96  ntowersWithJets_[i] = 0;
97  }
98 }

References PileUpSubtractor::allgeomid_, bin_, centrality_, centTag_, PileUpSubtractor::emean_, PileUpSubtractor::esigma_, reco::Centrality::EtHFhitSum(), PileUpSubtractor::geo_, PileUpSubtractor::geomtowers_, edm::EventSetup::get(), get, CaloGeometry::getValidDetIds(), hC, DetId::Hcal, mps_fire::i, HcalDetId::ieta(), PileUpSubtractor::ietamax_, PileUpSubtractor::ietamin_, iEvent, LogDebug, PileUpSubtractor::ntowersWithJets_, and edm::ESHandle< T >::product().

◆ subtractPedestal()

void ParametrizedSubtractor::subtractPedestal ( std::vector< fastjet::PseudoJet > &  coll)
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 102 of file ParametrizedSubtractor.cc.

102  {
103  if (false) {
104  return;
105  } else {
106  LogDebug("PileUpSubtractor") << "The subtractor subtracting pedestals...\n";
107 
108  int it = -100;
109  vector<fastjet::PseudoJet> newcoll;
110 
111  for (vector<fastjet::PseudoJet>::iterator input_object = coll.begin(), fjInputsEnd = coll.end();
112  input_object != fjInputsEnd;
113  ++input_object) {
114  reco::CandidatePtr const& itow = (*inputs_)[input_object->user_index()];
115 
116  it = ieta(itow);
117  iphi(itow);
118 
119  double Original_Et = itow->et();
120  if (sumRecHits_) {
121  Original_Et = getEt(itow);
122  }
123 
124  double etnew = Original_Et - getPU(it, true, true);
125  float mScale = etnew / input_object->Et();
126  if (etnew < 0.)
127  mScale = 0.;
128 
129  math::XYZTLorentzVectorD towP4(input_object->px() * mScale,
130  input_object->py() * mScale,
131  input_object->pz() * mScale,
132  input_object->e() * mScale);
133 
134  int index = input_object->user_index();
135  input_object->reset(towP4.px(), towP4.py(), towP4.pz(), towP4.energy());
136  input_object->set_user_index(index);
137  if (etnew > 0. && dropZeroTowers_)
138  newcoll.push_back(*input_object);
139  }
140  if (dropZeroTowers_)
141  coll = newcoll;
142  }
143 }

References dropZeroTowers_, getEt(), getPU(), PileUpSubtractor::ieta(), PileUpSubtractor::iphi(), LogDebug, and sumRecHits_.

Referenced by offsetCorrectJets().

Member Data Documentation

◆ bin_

int ParametrizedSubtractor::bin_

Definition at line 35 of file ParametrizedSubtractor.h.

Referenced by getPU(), and setupGeometryMap().

◆ cbins_

const CentralityBins* ParametrizedSubtractor::cbins_

Definition at line 37 of file ParametrizedSubtractor.h.

◆ centrality_

double ParametrizedSubtractor::centrality_

Definition at line 36 of file ParametrizedSubtractor.h.

Referenced by getPU(), and setupGeometryMap().

◆ centTag_

edm::EDGetTokenT<reco::Centrality> ParametrizedSubtractor::centTag_

Definition at line 38 of file ParametrizedSubtractor.h.

Referenced by ParametrizedSubtractor(), and setupGeometryMap().

◆ dropZeroTowers_

bool ParametrizedSubtractor::dropZeroTowers_

Definition at line 34 of file ParametrizedSubtractor.h.

Referenced by subtractPedestal().

◆ fMean

TF1* ParametrizedSubtractor::fMean

Definition at line 44 of file ParametrizedSubtractor.h.

Referenced by getPU(), and ParametrizedSubtractor().

◆ fPU

TF1* ParametrizedSubtractor::fPU

Definition at line 43 of file ParametrizedSubtractor.h.

Referenced by ParametrizedSubtractor().

◆ fRMS

TF1* ParametrizedSubtractor::fRMS

Definition at line 45 of file ParametrizedSubtractor.h.

Referenced by getPU(), and ParametrizedSubtractor().

◆ hC

TH1D* ParametrizedSubtractor::hC

Definition at line 46 of file ParametrizedSubtractor.h.

Referenced by getPU(), ParametrizedSubtractor(), and setupGeometryMap().

◆ hEta

std::vector<TH1D*> ParametrizedSubtractor::hEta

Definition at line 39 of file ParametrizedSubtractor.h.

Referenced by ParametrizedSubtractor().

◆ hEtaMean

std::vector<TH1D*> ParametrizedSubtractor::hEtaMean

Definition at line 40 of file ParametrizedSubtractor.h.

Referenced by getPU(), and ParametrizedSubtractor().

◆ hEtaRMS

std::vector<TH1D*> ParametrizedSubtractor::hEtaRMS

Definition at line 41 of file ParametrizedSubtractor.h.

Referenced by getPU(), and ParametrizedSubtractor().

◆ interpolate_

bool ParametrizedSubtractor::interpolate_

Definition at line 33 of file ParametrizedSubtractor.h.

Referenced by getPU(), and ParametrizedSubtractor().

◆ sumRecHits_

bool ParametrizedSubtractor::sumRecHits_
ParametrizedSubtractor::hEta
std::vector< TH1D * > hEta
Definition: ParametrizedSubtractor.h:39
CaloTower::emEnergy
double emEnergy() const
Definition: CaloTower.h:130
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
HLT_FULL_cff.towers
towers
Definition: HLT_FULL_cff.py:36379
PileUpSubtractor::ieta
int ieta(const reco::CandidatePtr &in) const
Definition: PileUpSubtractor.cc:325
PileUpSubtractor::iphi
int iphi(const reco::CandidatePtr &in) const
Definition: PileUpSubtractor.cc:336
mps_fire.i
i
Definition: mps_fire.py:428
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
CaloGeometry::getPosition
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
Definition: CaloGeometry.cc:50
contentValuesFiles.fullPath
fullPath
Definition: contentValuesFiles.py:64
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
reco::Centrality::EtHFhitSum
double EtHFhitSum() const
Definition: Centrality.h:21
math::XYZTLorentzVectorD
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:14
pos
Definition: PixelAliasList.h:18
DetId::Hcal
Definition: DetId.h:28
ParametrizedSubtractor::getPU
double getPU(int ieta, bool addMean, bool addSigma) const
Definition: ParametrizedSubtractor.cc:246
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
ParametrizedSubtractor::getEt
double getEt(const reco::CandidatePtr &in) const
Definition: ParametrizedSubtractor.cc:208
CaloTower::id
CaloTowerDetId id() const
Definition: CaloTower.h:123
PileUpSubtractor::doRhoFastjet_
bool doRhoFastjet_
Definition: PileUpSubtractor.h:65
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:102
PileUpSubtractor::allgeomid_
std::vector< HcalDetId > allgeomid_
Definition: PileUpSubtractor.h:79
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
edm::Handle< reco::Centrality >
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
PileUpSubtractor::fjActiveArea_
ActiveAreaSpecPtr fjActiveArea_
Definition: PileUpSubtractor.h:75
edm::FileInPath
Definition: FileInPath.h:61
alignCSCRings.s
s
Definition: alignCSCRings.py:92
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
PVValHelper::eta
Definition: PVValidationHelpers.h:70
PileUpSubtractor::doAreaFastjet_
bool doAreaFastjet_
Definition: PileUpSubtractor.h:64
CaloTower::hadEnergy
double hadEnergy() const
Definition: CaloTower.h:131
PileUpSubtractor::PileUpSubtractor
PileUpSubtractor(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
Definition: PileUpSubtractor.cc:20
edm::ESHandle< CaloGeometry >
CaloTower::constituents
const std::vector< DetId > & constituents() const
Definition: CaloTower.h:124
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
ParametrizedSubtractor::rescaleRMS
void rescaleRMS(double s)
Definition: ParametrizedSubtractor.cc:17
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
ParametrizedSubtractor::dropZeroTowers_
bool dropZeroTowers_
Definition: ParametrizedSubtractor.h:34
Point3DBase< float, GlobalTag >
PileUpSubtractor::geo_
CaloGeometry const * geo_
Definition: PileUpSubtractor.h:76
ParametrizedSubtractor::bin_
int bin_
Definition: ParametrizedSubtractor.h:35
PileUpSubtractor::jetOffset_
std::vector< double > jetOffset_
Definition: PileUpSubtractor.h:85
HcalDetId::ieta
constexpr int ieta() const
get the cell ieta
Definition: HcalDetId.h:155
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
PileUpSubtractor::fjOriginalInputs_
std::vector< fastjet::PseudoJet > fjOriginalInputs_
Definition: PileUpSubtractor.h:60
ParametrizedSubtractor::fRMS
TF1 * fRMS
Definition: ParametrizedSubtractor.h:45
PileUpSubtractor::fjJets_
std::vector< fastjet::PseudoJet > * fjJets_
Definition: PileUpSubtractor.h:59
recoMuon::in
Definition: RecoMuonEnumerators.h:6
HcalDetId
Definition: HcalDetId.h:12
PileUpSubtractor::geomtowers_
std::map< int, int > geomtowers_
Definition: PileUpSubtractor.h:80
iEvent
int iEvent
Definition: GenABIO.cc:224
ParametrizedSubtractor::hEtaRMS
std::vector< TH1D * > hEtaRMS
Definition: ParametrizedSubtractor.h:41
CaloTower
Definition: CaloTower.h:26
PileUpSubtractor::esigma_
std::map< int, double > esigma_
Definition: PileUpSubtractor.h:82
reco::Centrality
Definition: Centrality.h:11
EgHLTOffHistBins_cfi.et
et
Definition: EgHLTOffHistBins_cfi.py:8
get
#define get
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::Ptr< Candidate >
PileUpSubtractor::fjInputs_
std::vector< fastjet::PseudoJet > * fjInputs_
Definition: PileUpSubtractor.h:58
ParametrizedSubtractor::fPU
TF1 * fPU
Definition: ParametrizedSubtractor.h:43
eostools.move
def move(src, dest)
Definition: eostools.py:511
PileUpSubtractor::ietamin_
int ietamin_
Definition: PileUpSubtractor.h:78
CaloGeometry::getValidDetIds
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
Definition: CaloGeometry.cc:75
dqmiodatasetharvest.inf
inf
Definition: dqmiodatasetharvest.py:38
PileUpSubtractor::ietamax_
int ietamax_
Definition: PileUpSubtractor.h:77
PileUpSubtractor::nSigmaPU_
double nSigmaPU_
Definition: PileUpSubtractor.h:73
PileUpSubtractor::jetPtMin_
double jetPtMin_
Definition: PileUpSubtractor.h:66
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
ParametrizedSubtractor::hC
TH1D * hC
Definition: ParametrizedSubtractor.h:46
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
ParametrizedSubtractor::centTag_
edm::EDGetTokenT< reco::Centrality > centTag_
Definition: ParametrizedSubtractor.h:38
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
spu::def
int def(FILE *, FILE *, int)
Definition: SherpackUtilities.cc:14
PileUpSubtractor::ntowersWithJets_
std::map< int, int > ntowersWithJets_
Definition: PileUpSubtractor.h:81
ParametrizedSubtractor::hEtaMean
std::vector< TH1D * > hEtaMean
Definition: ParametrizedSubtractor.h:40
edm::InputTag
Definition: InputTag.h:15
PileUpSubtractor::emean_
std::map< int, double > emean_
Definition: PileUpSubtractor.h:83
ParametrizedSubtractor::sumRecHits_
bool sumRecHits_
Definition: ParametrizedSubtractor.h:32
PileUpSubtractor::fjClusterSeq_
ClusterSequencePtr fjClusterSeq_
Definition: PileUpSubtractor.h:56
reco::Candidate::et
virtual double et() const =0
transverse energy
ParametrizedSubtractor::centrality_
double centrality_
Definition: ParametrizedSubtractor.h:36
ParametrizedSubtractor::cbins_
const CentralityBins * cbins_
Definition: ParametrizedSubtractor.h:37